/* Reset básico */
:root {
  --color_primario: #F9FAFB;
  --color_secundario: #C9A227;
  --color_secundario_suave: #dcbd58;
  --color_terciario: #2563EB;
  --color_terciario_suave: #1b6786;
  --color_azul_suave: rgba(77, 131, 152, 0.16);
  --color_fondo_gris: #F2F2F2;
  --texto_oscuro: #333333;
  --Montserrat: 'Montserrat', sans-serif;
  --Anton: 'Anton', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--Montserrat);
}

p {
  font-size: 1.3rem;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color_secundario);
  transition: all 0.3s ease;
  width: 100%;
}

.header-transparent {
  position: fixed;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

/* Helper to center the content */
.header-transparent .nav-container {
  display: flex;
  justify-content: space-between;
}

/* The Pill Style for the Menu */
.header-transparent .main-nav ul {
  background-color: rgba(50, 50, 50, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 20px;
  margin: 0;
}

.header-transparent .main-nav a {
  color: white;
  font-size: 0.95rem;
  font-weight: 300;
}

.header-transparent .main-nav a:hover {
  color: var(--color_secundario);
}

.nav-container {
  width: 100%;
}

.terms,
.commercial {
  font-size: 13px;
}

.btn-form-contact {
  background-color: var(--color_primario);
  border: 0px;
  padding: 10px 20px;
  color: var(--texto_oscuro);
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px;
  font-size: 12px;
}

.btn-primary {
  background-color: var(--color_secundario);
  border: 1px solid;
  padding: 10px 20px;
  color: var(--color_primario);
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  font-size: 1.2rem;
}

.separator {
  border: none;
  height: 1px;
  width: 80%;
  background: linear-gradient(90deg,
      transparent,
      #D4AF37,
      transparent);
}

.contact-info {
  display: flex;
  justify-content: space-around;
  padding: 7px;
  background-color: var(--color_primario);
  color: var(--texto_oscuro);
  display: flex;
  width: 100%;
  gap: 20px;
  align-items: center;
}

.phone,
.email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.icon-phone,
.icon-email {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.socials {
  display: flex;
}

.social-icon-svg {
  height: 20px;
  width: 20px;
}

.socials a {
  color: var(--texto_oscuro);
  text-decoration: none;
  margin-left: 5px;
}

/* Navegación */

.img_logo {
  height: 150px;
  width: 150px;
  transition: all 0.4s ease;
  /* Ensure smooth transition */
}

.logo-hidden {
  transform: translateY(-200%);
  opacity: 0;
}

.main-nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0px 20px;
  background-color: white;
}

.shop-area,
.student-area {
  border: 0.5px solid #fff;
  padding: 7px;
  border-radius: 15px;
}

.main-nav a {
  font-size: var(--fuente_de_letra);
  text-decoration: none;
  color: var(--texto_oscuro);
  font-weight: bold;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color_secundario);
}

/* Hero */
/* Hero */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
  text-align: center;
  color: var(--color_primario);
  height: 100vh;
  overflow: hidden;
}

/* CAROUSEL BACKGROUND */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 2;
  /* Encima de las imágenes */
}

.hero-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroCarousel 24s infinite;
  /* 4 imágenes * 6s cada una */
  z-index: 1;
}

/* Animación de fade cruzado */
/* Ciclo total: 24s
   Cada imagen visible aprox 6s (25% del tiempo)
   Fade in/out rápido (e.g., 5% del ciclo = 1.2s)
   Wait visible ~15%
*/

@keyframes heroCarousel {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  4% {
    opacity: 1;
  }

  25% {
    opacity: 1;
    transform: scale(1.05);
  }

  /* Efecto zoom suave */
  29% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Delays escalonados */
.hero-carousel img:nth-child(2) {
  animation-delay: 0s;
}

/* Ajuste por el div overlay que es child 1 */
.hero-carousel img:nth-child(3) {
  animation-delay: 6s;
}

.hero-carousel img:nth-child(4) {
  animation-delay: 12s;
}

.hero-carousel img:nth-child(5) {
  animation-delay: 18s;
}

/* HERO TEXT STYLING */
.hero-text {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-text h1 {
  font-family: var(--Anton);
  color: white;
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.gold-line-horizontal {
  width: 80px;
  height: 4px;
  background-color: var(--color_secundario);
  margin: 0 auto 2rem auto;
  border-radius: 2px;
}

/* Style for "Doble Certificación" */
.hero-text p:nth-of-type(1) {
  font-family: var(--Montserrat);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color_secundario);
  /* Gold */
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Style for Institution Name */
.hero-text p:nth-of-type(2) {
  font-family: var(--Montserrat);
  font-size: 1.2rem;
  font-weight: 300;
  color: #f0f0f0;
  letter-spacing: 1px;
  margin-bottom: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p:nth-of-type(1) {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero-text p:nth-of-type(2) {
    font-size: 1rem;
  }
}

/* CARRUSEL DE LOGOS */
.companys {
  width: 100%;
  height: 6rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Pista */
.companys-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  /* separación uniforme */
  width: max-content;
  animation: scroll 40s linear infinite;
}

/* Logos */
.companys-img,
.companys-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logos grandes */
.companys-img {
  height: 80px;
  width: 120px;
}

.companys-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;

  /* Efecto transparencia elegante */
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Icono pequeño */
.companys-icon img {
  width: 30px;
  height: 30px;
  opacity: 0.4;
}

/* Hover: resalta sin romper el diseño */
.companys-img img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Animación */
@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* Animación */
@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------------ */

/* GALLERY SECTION (Master) - FLEXBOX */
.master-gallery-section {
  padding: 5rem 2rem;
  background-color: white;
}

.gallery-title-container {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-title-container h2 {
  font-family: var(--Anton);
  font-size: 3rem;
  color: var(--texto_oscuro);
  margin-bottom: 0.5rem;
}

.gallery-title-container p {
  color: #666;
  font-size: 1.2rem;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  flex: 1 1 280px;
  /* Base width */
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  z-index: 2;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gallery-card:hover .card-bg {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem;
  transition: background 0.3s ease;
}

.gallery-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.25);
  /* Se aclara ligeramente al hover */
}

.card-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-card h3 {
  font-family: var(--Anton);
  font-size: 2.2rem;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Specific styling to make items look good in flex flow */
.gallery-card:nth-child(1) {
  flex: 1 1 500px;
}

/* Wider item */
.gallery-card:nth-child(4) {
  flex: 1 1 500px;
}

a.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Wider item */


/* ESTADISTICAS */

/* SECCIÓN ESTADÍSTICAS (Nuevo) */
.stats-section {
  width: 100%;
  padding: 5rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(201, 162, 39, 0.15);
  /* Color dorado suave */
  border-color: rgba(201, 162, 39, 0.3);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 162, 39, 0.1);
  /* Dorado muy claro */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--color_secundario);
}

.stat-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.stat-number {
  font-family: var(--Anton);
  font-size: 3.5rem;
  line-height: 1;
  background: linear-gradient(45deg, var(--texto_oscuro) 0%, var(--color_secundario) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-direction: row;
    padding: 1.5rem;
    text-align: left;
    justify-content: flex-start;
  }

  .stat-icon {
    margin-bottom: 0;
    width: 50px;
    height: 50px;
  }

  .stat-number {
    font-size: 2.5rem;
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------------ */
/* SECCION DE QUIENES SOMOS */

.about-section {
  padding: 5rem 2rem;
}

.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* TEXTO */
.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* IMAGEN */
.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .about-text {
    text-align: center;
  }
}

/* ------------------------------------------------------------------ */
/* TESTIMONIOS */

.testimonials-section {
  padding: 5rem 2rem;
  background-color: #f7f7f7;
  text-align: center;
}

.carousel-container {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease;
}

/* TARJETA */
.testimonial-card {
  min-width: 320px;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* VIDEO */
.testimonial-video img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* TEXTO */
.testimonial-text {
  margin-top: 0.5rem;
  padding: 1.5rem;
  text-align: left;
}

.testimonial-text p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.testimonial-text span {
  display: block;
  margin-top: 0.8rem;
  font-weight: bold;
  font-size: 0.9rem;
}

/* BOTONES */
.carousel-btn {
  background: #c7a14a;
  border: none;
  color: white;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-btn:hover {
  background: #b18e3f;
}

.prev {
  margin-right: 1rem;
}

ƒ .next {
  margin-left: 1rem;
}


/* ------------------------------------------------------------------ */
/* SECCION MASTER INTERNATIONAL */

.master-container {
  padding: 5rem 1rem;
  background-color: var(--color_primario);
  /* #F9FAFB */
  display: flex;
  justify-content: center;
}

.master-card {
  display: flex;
  background: #fff;
  max-width: 1200px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  /* Sombra suave y amplia */
}

/* Columna Izquierda (Imágenes) */
.master-images {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.master-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.master-images img:nth-child(1) {
  /* Primera imagen */
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  z-index: 2;
}

.master-images img:nth-child(2) {
  /* Segunda imagen */
  margin-left: -20%;
  /* Superposición ligera */
  width: 120%;
  /* Compensar */
}

.master-card:hover .master-images img {
  transform: scale(1.05);
}

/* Columna Derecha (Info) */
.master-info {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* Para el blob decorativo */
}

.master-info h2 {
  font-family: var(--Anton);
  font-size: 2.5rem;
  color: var(--texto_oscuro);
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Línea dorada ya existente .gold-line-horizontal */
.gold-line-horizontal {
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color_secundario);
  margin-bottom: 1.5rem;
}


.master-info-subtitle {
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.master-info-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2.5rem;
}

.master-info-text strong {
  color: var(--color_secundario_suave);
  /* Resaltar palabras clave en dorado/oscuro */
}

/* Grid de iconos (Info General) */
.master-info-general {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.master-info-general>div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.master-info-svg {
  width: 50px;
  height: 50px;
  background-color: var(--color_azul_suave);
  /* O dorado muy suave */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.master-info-svg svg {
  width: 24px;
  height: 24px;
  fill: var(--color_terciario_suave);
  /* O color secundario */
}

.master-info-general p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--texto_oscuro);
  margin: 0;
  /* Override global p margin */
  line-height: 1.2;
}

/* Blob decorativo (reutilizando clase o creando específica aquí) */
.blob-2 {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--color_secundario);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .master-card {
    flex-direction: column;
  }

  .master-images {
    height: 300px;
    /* Altura fija en móvil */
  }

  /* Resetear clip-path en móvil si se desea, o ajustarlo */
  .master-images img:nth-child(1) {
    clip-path: none;
  }

  .master-images img:nth-child(2) {
    margin-left: 0;
    width: 100%;
  }

  .master-info {
    padding: 2.5rem;
  }

  .master-info h2 {
    font-size: 2rem;
  }
}

/* ------------------------------------------------------------------ */

.values {
  background-color: rgba(77, 131, 152, 0.16);
  padding: 2rem;
  text-align: center;
}

.values h1 {
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
}

.values-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 5rem;
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Listas */
.values-wrapper ul {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  border-radius: 16px;
  min-width: 280px;
}

/* Ítems */
.values-wrapper li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  color: #333;
  line-height: 1.5;
}

/* Icono tipo check */
.values-wrapper li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--color_secundario);
  font-size: 1rem;
  font-weight: bold;
}

/* Último item sin margen */
.values-wrapper li:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .values-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .values-wrapper ul {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------------ */
/* VENTANA DE IA */

/* CONTENEDOR GENERAL */
#ia-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* BOTÓN */
#ia-chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color_secundario);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ia-chat-button svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* VENTANA CHAT */
#ia-chat-window {
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
}

/* OCULTO */
.hidden {
  display: none;
}

/* HEADER */
.ia-chat-header {
  background: var(--color_secundario);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#ia-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* MENSAJES */
.ia-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow-y: auto;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: 300px;
}

.ia-message {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.ia-bot {
  background: #f1f1f1;
  align-self: flex-start;
}

/* INPUT */
.ia-chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
}

.ia-chat-input input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.ia-chat-input button {
  background: var(--color_secundario);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.ia-user {
  background: #111;
  color: #fff;
  align-self: flex-end;
  word-wrap: break-word;
  width: fit-content;
}

.ia-chat-subtext-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ia-chat-subtext {
  font-size: 0.6rem;
  color: #7a7878;
  margin-bottom: 10px;
}

.ia-chat-subtext-link {
  color: #7a7878;
}

/*EFECTO DE CARGA*/

.ia-message.ia-bot {
  background: #f1f0f0;
  color: #000;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  display: inline-block;
  max-width: 80%;
  position: relative;
}

/* Efecto escribiendo: 3 puntitos animados */
.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #555;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* SECCION DE INFORMACIÓN DETALLADA */

.info-section {
  padding: 5rem 2rem;
}

.info-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* FORMULARIO */
.info-form form {
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background-color: var(--color_primario);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.info-form input[type="text"],
.info-form input[type="email"],
.info-form input[type="tel"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.info-form input:focus {
  outline: none;
  border-color: #c7a14a;
  /* dorado elegante */
}

.checkbox {
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.info-form button {
  margin-top: 1rem;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #c7a14a;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.info-form button:hover {
  background-color: #b18e3f;
}

/* TEXTO */
.info-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--Anton);
}

.info-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .info-wrapper {
    grid-template-columns: 1fr;
  }

  .info-text {
    text-align: center;
  }
}

/* ABOUT US */
.about-us {
  padding: 3rem 2rem;
}

.about-us-tittle {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

.about-us-content-reverse,
.about-us-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* INVERTIMOS COLUMNAS */
.about-us-content-reverse {
  direction: rtl;
}

/* RESTAURAR DIRECCIÓN DEL TEXTO */
.about-us-content-reverse>* {
  direction: ltr;
}

/* CONTENEDOR DE IMAGEN */
.about-image {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  /* CUADRADO PERFECTO */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

/* IMAGEN */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* CLAVE PARA QUE NO SE DEFORME */
  object-position: center;
  display: block;
}

.highlight {
  color: var(--color_secundario);
}

/* .btn-master:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
} */

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-us-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    margin: 0 auto;
  }
}


/* FOOTER*/

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e6d3a3;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content p {
  color: #6b5a2a;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #b89b5e;
  margin: 0 0.75rem;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #8c7340;
}

.footer-link-devnav {
  text-decoration: none;
  color: green;
  font-size: 17px;
}

/* ------------------------------------------------------------------ */
/* MENÚ HAMBURGUESA Y RESPONSIVE */

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
}

.hamburger-btn .bar {
  width: 100%;
  height: 3px;
  background-color: #4f4f4f;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Animación del botón hamburguesa */
.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* Media Queries para Responsive */

@media (max-width: 900px) {

  /* Header y Top Bar más compactos */
  .top-bar {
    display: none;
    /* Opcional: Ocultar barra superior en móvil para ahorrar espacio */
  }

  .img_logo {
    height: 120px;
    width: auto;
  }

  /* Menú Hamburguesa Visible */
  .hamburger-btn {
    display: flex;
  }

  /* Menú de navegación móvil */
  .main-nav .nav-menu {
    position: fixed;
    top: 60px;
    /* Ajustar según altura del header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: 0.4s ease;
    z-index: 999;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }

  .main-nav .nav-menu.active {
    left: 0;
  }

  .main-nav .nav-menu li {
    margin: 0.8rem 0;
  }

  .main-nav .nav-menu a {
    font-size: 1.2rem;
  }

  /* Ajustes Generales de Secciones */

  /* Hero */
  .hero {
    padding: 80px 20px;
    background-position: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  /* Master Card */
  .master-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .master-images img {
    height: 300px;
  }

  .cuadro-decorative,
  .cuadro-decorative2 {
    display: none;
    /* Ocultar decoraciones en móvil para limpiar */
  }

  .master-info h2 {
    font-size: 2rem;
    text-align: center;
  }

  .master-info-text {
    text-align: left;
  }

  .master-info-general {
    gap: 1rem;
  }

  .master-info-general>div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Stats */
  .numbers {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 1rem;
    gap: 2rem;
  }

  /* About Us */
  .about-us-content,
  .about-us-content-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-us-content-reverse {
    direction: ltr;
    /* Resetear dirección para que stackee normal */
  }

  .about-image {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Values / Incluye */
  .values-wrapper {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .values-wrapper ul {
    width: 100%;
    max-width: 400px;
  }

  /* Info Form */
  .info-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-text {
    text-align: center;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  /* Ajustes para móviles pequeños */

  .numbers {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .master-info h2 {
    font-size: 1.8rem;
  }

  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
  }

  .ia-chat-window {
    width: 90%;
    right: 5%;
    bottom: 90px;
  }
}

/* ------------------------------------------------------------------ */
/* PREGUNTAS FRECUENTES (FAQ) */

.faq-section {
  padding: 5rem 2rem;
  background-color: #f9f9f9;
  /* Color de fondo suave para diferenciar */
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  font-family: var(--Anton);
  font-size: 3rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.faq-item {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
  border-radius: 8px;
  /* Bordes suaves */
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--Montserrat);
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question:hover {
  background-color: #f0f0f0;
}

.faq-question.active {
  color: #C9A227;
  /* Dorado al estar activo */
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
  /* Girar icono a X */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: white;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-family: var(--Montserrat);
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-title {
    font-size: 2.2rem;
  }
}


/* ------------------------------------------------------------------ */
/* PROPUESTA DE VALOR */

.value-proposition {
  padding: 5rem 2rem;
  background-color: #fff;
  overflow: hidden;
  /* Para animaciones que salen del viewport */
}

.vp-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Columna Izquierda */
.vp-left {
  position: sticky;
  top: 100px;
  /* Se queda fijo al scrollear si la columna derecha es muy larga */
}

.vp-subtitle {
  display: block;
  font-family: var(--Montserrat);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #C9A227;
  /* Dorado */
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.vp-title {
  font-family: var(--Anton);
  font-size: 3.5rem;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.vp-description {
  font-family: var(--Montserrat);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  max-width: 90%;
}

/* Columna Derecha */
.vp-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vp-item {
  padding: 1.5rem 0;
  transition: transform 0.3s ease;
}

.vp-item:hover {
  transform: translateX(10px);
  /* Pequeño desplazamiento al hover */
}

.vp-item h3 {
  font-family: var(--Montserrat);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}

.vp-item p {
  font-family: var(--Montserrat);
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1.5rem;
}

.vp-item hr {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  width: 100%;
  transition: width 0.3s ease, background 0.3s ease;
}

.vp-item:hover hr {
  background: #C9A227;
  /* Línea dorada al hover */
  width: 100%;
  /* Podrías animar el ancho si quisieras */
}

/* Responsive */
@media (max-width: 900px) {
  .vp-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .vp-left {
    position: static;
    /* No sticky en móvil */
    text-align: center;
    margin-bottom: 2rem;
  }

  .vp-description {
    margin: 0 auto;
  }

  .vp-title {
    font-size: 2.5rem;
  }
}


/* ------------------------------------------------------------------ */
/* WIDGET REDES SOCIALES */

#social-widget {
  position: fixed;
  bottom: 100px;
  /* Encima del chat de IA (bottom: 20px + height: 60px + gap: 20px) */
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

#social-widget-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s;
}

#social-widget-button:hover {
  background: #555;
  transform: scale(1.05);
}

#social-widget-button.active {
  transform: rotate(45deg);
  background: #d32f2f;
}

/* OPCIONES (ICONOS) */
#social-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

#social-options.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  display: flex;
  /* Mantener layout para la animación */
}

.social-option {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.social-option:hover {
  transform: scale(1.1);
}

.social-option svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* COLORES CORPORATIVOS */
.whatsapp {
  background: #25D366;
}

.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.facebook {
  background: #1877F2;
}

/* Ajuste móvil */
@media (max-width: 480px) {
  #social-widget {
    bottom: 90px;
    right: 20px;
  }
}

/* Module Navigation */
.module-navigation {
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--Montserrat);
}

.module-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texto_oscuro);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}

.module-nav-link:hover {
  color: var(--color_secundario);
  transform: translateX(5px);
}

.module-nav-link.prev:hover {
  transform: translateX(-5px);
}

.module-nav-link span {
  font-size: 1.2rem;
}

/* Ajuste titulo master para movil */
@media (max-width: 768px) {
  .gallery-title-container {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .gallery-title-container h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .gallery-title-container p {
    font-size: 1rem;
  }
}