/* ================================================================= */
/* Reset y configuración base                                       */
/* ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================================================= */
/* Variables de Color y Tipografía                                   */
/* ================================================================= */
:root {
  --color-bg: #f5f5f5;           /* Fondo general */
  --color-text: #2e3c51;         /* Texto principal */
  --color-primary: #36455a;      /* Encabezados y secciones */
  --color-accent: #cbb084;       /* Acento para botones y enlaces */
  --color-white: #ffffff;
  
  --transition-speed: 0.3s;
  /* Montserrat para títulos y Merriweather para el cuerpo */
  --font-title: 'Roboto', sans-serif;
  --font-body: 'Roboto', serif;
}

/* ================================================================= */
/* Modo Noche                                                        */
/* ================================================================= */
.night-mode {
  --color-bg: #1f3b5a;
  --color-text: #e2e2e2;
  --color-primary: #2a3f54;
  --color-accent: #cbb084;
}

/* ================================================================= */
/* Estilos Generales                                                  */
/* ================================================================= */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ================================================================= */
/* Encabezado                                                         */
/* ================================================================= */
.header {
  background-color: var(--color-primary);
  padding: 1rem 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-icon {
  width: 40px;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
}
.header-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  margin-left: 1rem;
  transition: color var(--transition-speed);
}
.header-nav a:hover {
  color: var(--color-accent);
}

/* ================================================================= */
/* Página de Pagos: Información y Formulario de Pago                 */
/* ================================================================= */
.main-content {
  padding: 3rem 0;
}
.payment-info {
  text-align: center;
}
.page-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.important-message {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================= */
/* Métodos de Pago                                                  */
/* ================================================================= */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .payment-methods {
    flex-direction: row;
    justify-content: space-between;
  }
}
.method {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
  flex: 1;
}
.method-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}
.method-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.method-warning {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Botones de Pago */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}
.mercado-btn {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.mercado-btn:hover {
  background-color: #b49a6f;
}
.transferencia-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.transferencia-btn:hover {
  background-color: #2a374b;
}

/* ================================================================= */
/* Sección de Seguridad del Pago                                      */
/* ================================================================= */
.security {
  padding: 2rem 0;
  text-align: center;
}
.security-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.security-description {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text);
}

/* ================================================================= */
/* Pie de Página                                                      */
/* ================================================================= */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 0;
  text-align: center;
}
.footer-container p {
  font-size: 0.9rem;
}
.footer-container a {
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 0.5rem;
}
.footer-container a:hover {
  text-decoration: underline;
}

/* ================================================================= */
/* Estilos Responsivos y Extras                                       */
/* ================================================================= */
/* Switch para Modo Noche */
.switch-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: var(--color-accent);
}
.switch input:checked + .slider:before {
  transform: translateX(26px);
}
.switch-text {
  font-size: 0.9rem;
  color: var(--color-white);
}

/* Botón flotante "Agendar Consulta" */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 50;
  transition: transform var(--transition-speed);
}
.floating-cta:hover {
  transform: scale(1.05);
}

/* ================================================================= */
/* Sección Hero                                                       */
/* ================================================================= */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-secondary);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(203, 176, 132, 0.15);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white, #ffffff);
  padding: 0 15px;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--color-accent);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================= */
/* Sección de Agendamiento (Calendly, Contacto y FAQ)                 */
/* ================================================================= */
.appointment {
  padding: 80px 0;
}
.appointment-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}
.calendly-widget {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.calendly-widget iframe {
  width: 100%;
  height: 600px; /* Altura ajustada de 700px a 600px */
  border: none;
}
.appointment-info {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background-color: var(--color-white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.appointment-info h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-secondary);
}
.appointment-info ul {
  list-style: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
.appointment-info ul li {
  margin-bottom: 10px;
}

/* ================================================================= */
/* FAQ                                                                */
/* ================================================================= */
.faq-item {
  background-color: var(--color-white);
  padding: 15px;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.faq-item h4 {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: var(--font-title);
}
.faq-item p {
  color: var(--color-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.faq-question {
  cursor: pointer;
}
.faq-question:hover {
  color: var(--color-accent);
}
.faq-answer {
  display: none;
  margin-top: 10px;
}

/* ================================================================= */
/* Sección "Nosotros"                                                 */
/* ================================================================= */
.about {
  padding: 80px 0;
  background-color: var(--color-bg);
  color: var(--color-text);
}
.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.about-text {
  flex: 1;
  min-width: 280px;
}
.about-img {
  flex: 1;
  min-width: 280px;
  text-align: center;
}
.about-img img {
  max-width: 40%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ================================================================= */
/* Testimonios                                                        */
/* ================================================================= */
.testimonios {
  padding: 80px 0;
  background-color: var(--color-bg);
  text-align: center;
  position: relative;
}
.swiper-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.swiper-slide {
  background-color: var(--color-white);
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.testimonio-content {
  max-width: 600px;
  margin: 0 auto;
}
.testimonio-content img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--color-accent);
}
.testimonio-content p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--color-text);
  font-family: var(--font-body);
}
.testimonio-content h4 {
  font-size: 1rem;
  color: var(--color-secondary);
  margin-top: 10px;
  font-family: var(--font-title);
}

/* ================================================================= */
/* Pie de Página                                                      */
/* ================================================================= */
.footer {
  background-color: var(--color-primary);
  text-align: center;
  padding: 30px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-white);
}
.footer-social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-icon img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s;
}
.social-icon:hover img {
  transform: scale(1.2);
}

/* ================================================================= */
/* Botón flotante de WhatsApp                                         */
/* ================================================================= */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
}
.whatsapp-float {
  width: 60px;
  height: 60px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float img {
  width: 35px;
  height: 35px;
}
.whatsapp-message {
  position: absolute;
  right: 75px;
  bottom: 15px;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.2);
}

/* ================================================================= */
/* Menú móvil                                                         */
/* ================================================================= */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background-color: var(--color-secondary);
    width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    transition: left var(--transition-speed);
  }
  .nav-menu.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
  .appointment-layout {
    flex-direction: column;
    align-items: center;
  }
  .calendly-widget iframe {
    height: 600px;
  }
}
