/* ====== CONTACTO: ESTILO SOBRIO Y ELEGANTE ====== */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #222;
}


/*   --- PRELOADER ---   */
/* Fondo blanco pantalla completa */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

/* Barra superior con degradado morado-azul */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #7f00ff, #00c6ff);
  animation: loadProgress 2.5s ease-out forwards;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Logo centrado */
.logo-container {
  text-align: center;
}

.logo {
  width: 140px;
  height: auto;
  animation: fadeIn 1.2s ease-in-out;
}

/* Animaciones */
@keyframes loadProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}





/* HERO ACTUALIZADO */

/* ====== CONTACT HERO MODERNO SIN IMAGEN ====== */

.contact-hero {
  position: relative;
  height: 72vh;
  display: flex;
  align-items: start;
  justify-content: center;
  padding-top: 120px; /* 100px de espacio libre + 80px para menú */
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #510a83, #005dc0);
  overflow: hidden;
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  z-index: 1;
}

.contact-hero::before {
  top: 30px;
  left: 30px;
  border-color: #ffffff33;
}

.contact-hero::after {
  bottom: 30px;
  right: 30px;
  border-color: #ffffff33;
}

.contact-hero .shape {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  z-index: 0;
}

.contact-hero .shape.one {
  top: -40px;
  right: -40px;
}

.contact-hero .shape.two {
  bottom: -40px;
  left: -40px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #271747;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 16px;
  color: #555;
}


.formulario-titulo {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #2c1c50;
  margin-bottom: 30px;
  padding: 0 20px;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.contact-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.contact-hero-content p {
  font-size: 1.25rem;
  color: #e6e6e6;
  margin-bottom: 2rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: #fff;
  color: #6A0DAD;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: #e0e0e0;
  color: #007BFF;
}

@media (max-width: 768px) {
  .contact-hero {
    height: auto;
    padding: 7rem 2rem 6rem;
  }

  .contact-hero-content h1 {
    font-size: 2.4rem;
  }

  .contact-hero-content p {
    font-size: 1.1rem;
  }

  .btn-cta {
    font-size: 0.95rem;
  }
}

/* FORMULARIO */
#formulario-contacto {
  background: #edf0f7;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.formulario-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 900px;
  margin: auto;
}

.right-panel {
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.step {
  text-align: center;
}

.step .circle {
  transition: all 1s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ccc;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: white;
}

.step.active .circle {
  background: white;
  color: #4b2e83;
  border: 2px solid #4b2e83;
}

.step.completed .circle {
  background: #4b2e83;
  color: white;
  border-color: #4b2e83;
}

.connector {
  font-size: 20px;
  color: #999;
  margin: 0 10px;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.form-step.active {
  display: flex;
}

input,
select,
textarea {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-color: #f0f0f5;
  transition: border 0.3s;
}

label {
  font-weight: 600;
  margin-top: 10px;
}

.form-privacidad {
  font-size: 14px;
  color: #666;
  margin-top: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: #4b2e83;
}

#activity-counter {
  font-size: 14px;
  color: #666;
  text-align: right;
}

.buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

button {
  background: linear-gradient(135deg, #4b2e83, #5a6dee);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: linear-gradient(135deg, #5a6dee, #4b2e83);
}

@media (max-width: 768px) {
  .formulario-wrapper {
    padding: 10px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }
}


/* INFO DE CONTACTO */
.timeline-contact-section {
  padding: 80px 30px;
  background: #f0f4fb;
  font-family: 'Poppins', sans-serif;
}

.contact-timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-timeline-header h2 {
  font-size: 2.5rem;
  color: #4b2e83;
  margin-bottom: 10px;
}

.contact-timeline-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
}

.timeline-track {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.timeline-step {
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 220px;
}

.timeline-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4b2e83, #5a6dee);
  color: white;
  border-radius: 50%;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-icon:hover {
  transform: scale(1.1);
}

.timeline-content {
  margin-top: 20px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 5px;
}

.timeline-content p {
  font-size: 1rem;
  color: #4b2e83;
  font-weight: 600;
  margin: 5px 0;
}

.timeline-content a {
  color: #4b2e83;
  text-decoration: none;
}

.timeline-content span {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .timeline-track {
    flex-direction: column;
    align-items: center;
  }
}


/* HORARIO Y CIERRE */
.contact-final-enhanced {
  background: #f7f8fc;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.contact-hours {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.contact-info-box {
  background: white;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}

.contact-info-box:hover {
  transform: translateY(-5px);
}

.contact-info-box i {
  font-size: 32px;
  color: #4b2e83;
  flex-shrink: 0;
}

.contact-info-box h4 {
  margin: 0;
  font-size: 18px;
  color: #4b2e83;
  font-weight: 600;
}

.contact-info-box p {
  margin: 5px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.contact-quote blockquote {
  font-size: 20px;
  font-style: italic;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}

.contact-quote i {
  color: #c3b6ea;
  font-size: 24px;
  margin: 0 8px;
}

@media (max-width: 768px) {
  .contact-info-box {
    max-width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .contact-info-box i {
    margin-bottom: 10px;
  }
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .form-group {
    flex-direction: column;
  }

  .contact-hero h1 {
    font-size: 2.2rem;
  }

  .contact-hero p,
  .contact-form-section h2,
  .contact-final blockquote {
    font-size: 1rem;
  }
}





/*   --- BOTON WHATSAPP ---   */

/* Botón flotante */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px; /* antes 24px */
  border-radius: 50%;
  width: 70px;     /* antes 60px */
  height: 70px;    /* antes 60px */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Chat desplegable */
.chat-popup {
  position: fixed;
  bottom: 100px;   /* ajustado por el nuevo tamaño del botón */
  right: 20px;
  width: 320px;    /* antes 300px */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  font-family: sans-serif;
  opacity: 0;
}

.chat-message {
  background-color: #f1f1f1;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

/* Encabezado del chat */
.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

/* Cuerpo del chat */
.chat-body {
  padding: 15px;
}

.chat-body p {
  margin-bottom: 10px;
}

/* Enlace de WhatsApp */
.whatsapp-link {
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.whatsapp-link i {
  margin-right: 8px;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
}

/* Animación fade */
.whatsapp-fade-in {
  animation: fadeIn 0.4s ease forwards;
  display: flex !important;
}

.whatsapp-fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes whatsapp-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsapp-fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}