/* Reset básico */
:root {
  --color_primario: #F9FAFB;
  --color_secundario: #C9A227; 
  --color_secundario_suave: #dcbd58;
  --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);
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color_secundario);
  color: white;
}

.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.input-field {
  padding: 8px;
  border: none;
  border-radius: 4px;
  min-width: 150px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-checboxs {
  display: flex;
  flex-direction: column;
}

.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: bold;
  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: 10px;
  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: 1rem;
}

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

.socials {
  display: flex;
}

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

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

/* Navegación */

.img_logo {
  height: 90px;
  width: 100px;
}

.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;
}

.student-area {
  border: 0px solid #196a85;
  padding: 8px;
  border-radius: 20px;
  background-color: var(--color_secundario);
}

.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 {
  display: flex;
  justify-content: center;
  align-items: center;

  background-image:
    linear-gradient(
      90deg,
      rgba(212, 175, 55, 0.25) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(212, 175, 55, 0.25) 100%
    ),
    url(../assets/foto_graduadas_02.jpg);

  background-size: cover;
  background-position: 50% 30%;
  background-repeat: no-repeat;

  padding: 120px 20px;
  text-align: center;
  color: var(--color_primario);
}


.hero-text h1 {
  font-family: var(--Anton);
  font-size: 3.8rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

/* 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%);
  }
}

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

.master-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.master-card {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* IMÁGENES */
.master-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.master-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;

  /* Estilo elegante */
  filter: brightness(0.95);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.master-images img:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* INFO */
.master-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.master-info p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.btn-master {
  text-decoration: none;
  color: var(--color_primario);
  background-color: var(--color_secundario);
  padding: 1rem;
  border-radius: 15px;
  width: fit-content;
  margin-top: 1rem;
}


/* ESTADISTICAS */

/* SECCIÓN NÚMEROS */
.numbers {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 4rem 2rem;
  text-align: center;
}

/* Cada bloque */
.numbers > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Número grande */
.numbers-tittle {
  font-size: 3rem;
  font-weight: 600;
  color: var(--color_secundario);
  line-height: 1;
}

/* Texto descriptivo */
.numbers-amount {
  font-size: 1rem;
  color: var(--texto_oscuro);
  letter-spacing: 0.5px;
  font-weight: bold;
}

@media (max-width: 900px) {
  .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .numbers {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
  }

  .numbers-tittle {
    font-size: 2.5rem;
  }
}

/* ------------------------------------------------------------------ */
/* 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 DE PROFESORADO */

.values {
  background-color: var(--color_fondo_gris);
  padding: 3rem 2rem;
  text-align: center;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ------------------------------------------------------------------ */
/* 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;
  }
}

/* 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;
}