/* ==========================
   RESET BÁSICO
   ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   TIPOGRAFÍA Y COLORES
   ========================== */
body {
  font-family: sans-serif;
  line-height: 1.5;
  color: #4B494A;
}

/* ==========================
   ENCABEZADO / MENÚ
   ========================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1C5A85; /* Azul principal */
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Verde de WhatsApp */
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 32px;
    line-height: 60px;
    z-index: 1000; /* Asegura que esté encima de todo */
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* Verde más oscuro al pasar el mouse */
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        line-height: 50px;
        bottom: 10px;
        right: 10px;
    }
}

/* Ícono de menú hamburguesa */
.menu-icon {
  display: none;    /* Oculto en pantallas grandes */
  cursor: pointer;
}
.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  background-color: #fff;
}

/* Barra de navegación */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.navbar a.active {
  text-decoration: underline;
  font-weight: bold;
}
.navbar a:hover {
  color: #3A7E32; /* Verde en hover */
}

/* ==========================
   BOTÓN PRIMARIO
   ========================== */
.btn-primario {
  display: inline-block;
  padding: 0.75rem 1.2rem;
  background-color: #1C5A85; /* Azul principal */
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
	font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn-primario:hover {
  background-color: #582A85; /* Morado */
}

/* ==========================
   SECCIÓN HERO
   ========================== */
.hero {
  width: 100%;
  min-height: 80vh; /* Ajusta la altura mínima */
  position: relative;
  background-color: #e2e2e2; /* color de fondo si no carga la imagen */
  overflow: hidden;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0,0,0,0.3);  descomenta si deseas oscurecer */
  pointer-events: none;
}
.hero-content {
  position: relative; /* para quedar encima de .overlay */
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
}
.hero-image {
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* ==========================
   ROTACIÓN DE PALABRAS
   ========================== */
.dynamic-word {
  transition: opacity 0.8s ease;
}
.hidden {
  opacity: 0; /* Fade out */
}

/* ==========================
   EJEMPLOS DE SECCIONES
   ========================== */
.servicios, .contacto {
  padding: 3rem 2rem;
  text-align: center;
}
.servicios h2, .contacto h2 {
  color: #000;
}

/* ==========================
   PIE DE PÁGINA
   ========================== */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #f1f1f1;
  font-size: 0.9rem;
  color: #333;
}

/* ==========================
   RESPONSIVE
   ========================== */
/* Ocultar barra y mostrar icono hamburguesa en móviles */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  .navbar {
    position: absolute;
    top: 70px; /* debajo del header */
    right: 0;
    width: 200px;
    background-color: #1C5A85;
    display: none;
    padding: 1rem;
    border-radius: 0 0 0 8px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }
  .navbar a {
    font-weight: normal;
  }
  .navbar.open {
    display: block;
  }
}

/* Sección Principal de “Clientes que confían…” */
.section-clients {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 1200px;  /* Limita el ancho en pantallas grandes */
  margin: 0 auto;     /* Centra el contenido */
}

/* Título principal */
.section-clients h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 2rem;
}

/* Contenedor para logo y frases */
.center-content {
  margin-bottom: 2rem; /* Espacio extra debajo */
}

/* Logo principal */
.clients-logo {
  max-width: 180px; /* Ajusta según desees */
  height: auto;
}

/* Frases extra */
.inspiring-phrase {
  font-style: italic;
  color: #1C5A85;      /* Azul institucional */
  font-weight: bold;   /* Negrita */
  margin: 1rem 0 0.5rem 0;
}
.trusted-phrase {
  font-style: italic;
  color: #4B494A;      /* Gris oscuro */
  margin-top: 0;       /* Ajusta si quieres */
}

/* Fila de empresas */
.client-row {
  display: flex;
  flex-wrap: wrap;           /* Para que en pantallas pequeñas se apilen */
  justify-content: center;   /* Centra los bloques */
  gap: 2rem;                 /* Espacio horizontal entre cada empresa */
  margin-bottom: 2rem;
}

/* Bloque individual de cada empresa */
.client {
  flex: 0 1 150px;   /* Ancho mínimo ~150px */
  text-align: center;
}
.client h3 {
  margin-bottom: 0.5rem;
  color: #1C5A85;  /* Azul */
}
.client-icon {
  max-width: 60px;  /* Ajusta según necesites */
  height: auto;
}

/* Línea de ciudades */
.locations {
  margin: 1rem 0 2rem 0;
  font-style: italic;
  color: #4B494A; /* Gris oscuro */
}

/* Secciones de consultoría */
.section-clients h3 {
  font-size: 1.3rem;
  color: #000;
  margin: 2rem 0 1rem 0;
  text-align: left;     /* Si prefieres alineado a la izquierda en la lista */
}

/* Listas con checks (palomitas) */
.section-clients ul {
  list-style: none;     /* Oculta el bullet estándar */
  text-align: left;     /* Alineado a la izquierda */
  max-width: 800px;     /* Limita el ancho de texto */
  margin: 0 auto 2rem;  /* Centra la lista, añade espacio */
  padding: 0;
}
.section-clients ul li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;  /* Deja espacio a la izquierda para el check */
}

/* Insertamos un check (✓) como pseudo-elemento */
.section-clients ul li::before {
  content: "✓";              /* El check */
  color: #3A7E32;            /* Verde (o #582A85 si prefieres morado) */
  font-weight: bold;
  position: absolute;
  left: 0;                   /* Alineado a la izquierda del li */
  top: 0;                    /* Ajusta vertical si necesitas */
}

/* Responsivo: en pantallas pequeñas */
@media (max-width: 768px) {
  .client-row {
    gap: 1rem;
  }
  .client {
    flex: 1 1 100px; /* Se apilan en una o dos columnas */
  }
}

/* LISTA CON CHECK (palomitas) */
/* Aplica a cualquier <ul class="check-list"> */
.check-list {
  list-style: none;        /* Quitamos el bullet por defecto */
  max-width: 800px;        /* Limita el ancho de texto */
  margin: 0 auto 2rem;     /* Centrado + espacio inferior */
  padding: 0;
  text-align: left;        /* Alineado a la izquierda */
}

.check-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;      /* Espacio para el check */
}

/* Pseudo-elemento con el check ✓ */
.check-list li::before {
  content: "✓";
  color: #3A7E32;          /* Verde o #582A85 si deseas morado */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}




.w3-third > * { /* Selecciona los elementos hijos directos del div  */
    margin-left: auto;
    margin-right: auto;
}

/* ───────── Separador institucional ───────── */
.section-separator{
  /* ❶ tamaño y posición */
  width: 75%;              /* 3/4 del contenedor */
  height: 2px;             /* grosor de la línea */
  margin: 4rem auto;       /* espacio vertical & centrado */

  /* ❷ color + efecto degradado en los extremos */
  background: linear-gradient(
                to right,
                transparent 0%,
                #A8A8A8 20%,   /* gris institucional sólido en el centro */
                #A8A8A8 80%,
                transparent 100%
              );

  border: none;            /* elimina el borde por defecto del <hr> */
  position: relative;
  overflow: visible;
}

/* ❸ adorna con un punto (o diamante) en el centro */
.section-separator::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);  /* rombo */
  width: 10px;
  height: 10px;
  background:#A8A8A8;       /* mismo gris */
  border-radius:2px;        /* puntas ligeramente suavizadas */
}

.logo{
  display:flex;
  align-items:center;      /* centra verticalmente el logo en el header */
}

.logo-img{
  max-height:48px;         /* controla la altura; ajusta a tu gusto */
  width:auto;              /* mantiene la proporción original */
}

/* ────── Separador elegante entre secciones ────── */
.section-separator{
  width: 75%;
  height: 2px;
  margin: 4rem auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    #A8A8A8 20%,
    #A8A8A8 80%,
    transparent 100%
  );
  border: none;
  position: relative;
}
.section-separator::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #A8A8A8;
  border-radius: 2px;
}

/* ────── Tarjetas de Taller ────── */
.taller-card img{
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.taller-card{
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.taller-card .w3-container{
  padding: 1.5rem;
}

/* ────── Botón dentro de tarjetas ────── */
.btn-taller{
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: #1C5A85;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-taller:hover{
  background-color: #3A7E32; /* Verde institucional en hover */
}

/* Separador elegante */
.section-separator {
  width: 75%;
  height: 2px;
  margin: 4rem auto;
  background: linear-gradient(
    to right,
    transparent 0%,
    #A8A8A8 20%,
    #A8A8A8 80%,
    transparent 100%
  );
  border: none;
  position: relative;
}

.section-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #A8A8A8;
  border-radius: 2px;
}

/* Tarjetas de talleres */
.taller-card img {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.taller-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.taller-card .w3-container {
  padding: 1.5rem;
}

/* Botón de contacto en tarjeta */
.btn-taller {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: #1C5A85;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-taller:hover {
  background-color: #3A7E32;
}

/* Semicírculo decorativo */
.semi-circle {
  position: absolute;
  top: -100px;
  right: -150px;
  width: 400px;
  height: 200px;
  background: #e0e0e0; /* gris muy claro */
  border-bottom-left-radius: 400px;
  border-bottom-right-radius: 400px;
  z-index: 1; /* detrás del contenido */
}

/* Imagen del curso */
.cursos-section img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ────── Botón de contacto ────── */
.btn-contacto {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background-color: #1C5A85; /* Azul institucional */
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-contacto:hover {
  background-color: #3A7E32; /* Verde institucional en hover */
}

/* ────── Formulario de contacto ────── */
.contacto-formulario input,
.contacto-formulario textarea {
  font-size: 1rem;
}

/* ────── Animación fade-in para mensaje de éxito ────── */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transición de la palabra dinámica */
.dynamic-word {
  transition: opacity 0.5s ease;
}

.hidden {
  opacity: 0;
}

/* ────── Animación de fade-in para el título del Hero ────── */
.fade-in-start {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.5s;
}

/* Definición de la animación */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ────── Estilo para Modal de Aviso de Privacidad ────── */
.modal-aviso {
  display: none; /* Oculto inicialmente */
  position: fixed;
  z-index: 10001; /* Más alto que todo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* Fondo oscuro semitransparente */
}

/* Contenedor interno */
.modal-content-aviso {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Botón de cerrar */
.close-aviso {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-aviso:hover {
  color: #000;
}

/* Animación para la aparición del Modal */
.modal-content-aviso {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);

  /* Animación inicial */
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.5s ease;
}

/* Estado visible */
.modal-aviso.show .modal-content-aviso {
  opacity: 1;
  transform: translateY(0);
}

/* Botón enviar */
.btn-contacto {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background-color: #1C5A85;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-contacto:hover {
  background-color: #3A7E32;
}

/* Fade in para mensaje de éxito */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Mostrar menú como hamburguesa en móviles */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
}  
 /* ────── HEADER GENERAL ────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background-color: #1C5A85;
  height: auto;
  position: relative;
}

/* LOGO */
.logo img {
  max-height: 50px;
}

/* MENÚ DE ENLACES */
.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.navbar a.active {
  text-decoration: underline;
  font-weight: bold;
}

/* ────── ÍCONO DE MENÚ HAMBURGUESA ────── */
.menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background-color: white;
  display: block;
}

/* ────── RESPONSIVE ────── */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #1C5A85;
    width: 200px;
    display: none;
    flex-direction: column;
    border-radius: 0 0 0 8px;
    padding: 1rem;
    z-index: 999;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar.open {
    display: flex;
  }
}

/* Hero Heading */
.hero-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #1C5A85;
  text-align: center;
  font-weight: 700;
  margin: 2rem 0;

  /* Animación de entrada */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1.2s ease forwards;
  animation-delay: 0.4s;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenedor relativo para posicionar */
.position-relative {
  position: relative;
}

/* Franja decorativa vertical */
.texto-con-banner {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

/* Bloque del contenido textual */
.contenido-texto {
  flex: 1 1 65%;
}

/* Bloque decorativo azul con mayor anchura */
.lateral-banner-inline {
  flex: 0 0 120px; /* ← más ancho */
  background-color: #1C5A85;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Ocultar en pantallas pequeñas */
@media (max-width: 768px) {
  .texto-con-banner {
    display: block;
  }

  .lateral-banner-inline {
    display: none;
  }
}

.lateral-banner-inline span {
  font-size: 2.4rem;  /* Prueba con 1.4rem o más si lo deseas aún más grande */
  line-height: 1.4;
  text-align: center;
}

.hero-banner {
  width: 100%;
  height: 480px;         /* ¡clave para que object-fit funcione! */
  object-fit: cover;
  display: block;
}

.titulo-elegante {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  gap: 1rem;
  flex-wrap: nowrap;
}

.titulo-central {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #1C5A85;
  font-size: 2rem;
  margin: 0;
  white-space: nowrap;
}

.linea {
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, transparent, #1C5A85, transparent);
  border-radius: 3px;
}

.titulo-elegante-rombos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: nowrap;
}

.titulo-central {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #1C5A85;
  font-size: 2rem;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.adorno-rombo {
  width: 14px;
  height: 14px;
  background-color: #1C5A85;
  transform: rotate(45deg);
  border-radius: 2px;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

