/* =========================
   Variables globales
========================= */
:root {
  --color-fondo: #222;
  --color-texto: #f5f5f5;
  --color-verde: #3CB371;
  --color-dorado: #FFD700;
  --color-rojo: #E53935;
  --font-titulo: 'Georgia', serif;
  --font-texto: 'Arial', sans-serif;
}

/* =========================
   Reset básico
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-texto);
  background-color: #ffffff;
  color: var(--color-texto);
  line-height: 1.6;
}

/* =========================
   Header y navegación
========================= */
header {
  background: rgba(0,0,0,0.5); /* transparente flotante */
  backdrop-filter: blur(10px); /* efecto cristal elegante */
  color: #fff;
  height: auto;
  padding: 20px 40px;
  position: fixed; /* flotante sobre la presentación */
  top: 35px;
  right: 40px; /* alineado a la izquierda */
  width: auto;
  min-width: 360px;          /* ancho mínimo para que no se comprima */
  z-index: 1000;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* menú alineado a la izquierda dentro del header */
   gap: 20px;                 /* espacio entre elementos internos */
}

header h1 {
 font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #d4af37; /* dorado más fuerte */
  margin: 0;
  opacity: 0;
  animation: fadeSlideLeft 3s ease forwards; /* animación lenta */
}

/* Contenedor del menú y redes */
.menu-header {
  display: flex;
  flex-direction: column; /* redes arriba, menú abajo */
  align-items: flex-end;
  gap: 14px;
}

/* Redes sociales arriba del menú */
.redes-header {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.redes-header a {
  color: #ffffff; /* blanco más fuerte */
  font-size: 18px;
  transition: color 0.3s ease;
}
.redes-header a:hover {
  color: #d4af37; /* dorado fuerte */
}

/* Menú flotante debajo de redes */
.menu-header ul {
  display: flex;
  gap: 35px;
  list-style: none;
}
.menu-header ul li a {
  text-decoration: none;
  color: #ffffff; /* blanco más fuerte */
  font-size: 16px;
   padding: 6px 10px;         /* espacio interno para respirar */
  transition: color 0.4s ease;
}
.menu-header ul li a:hover {
  color: #c0392b; /* rojo elegante */
}

/* Botón hamburguesa (☰) */
.menu-btn {
 background: rgba(255,255,255,0.12); /* fondo claro y translúcido */
 backdrop-filter: blur(10px);       /* efecto cristal */
border: none;
border-radius: 14px;           /* bordes curveados */
  padding: 8px 14px;             /* aire interno */
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
   position: fixed;
  right: 20px; /* lado derecho */
  top: 20px;
  z-index: 2000; /* encima del menú */
  box-shadow: 0 6px 18px rgba(0,0,0,0.4); /* sombra elegante */
}

.menu-btn:hover {
  transform: scale(1.1);
  color: #D4AF37;           /* dorado al pasar el cursor */
}



/* =========================
   Side Menu
========================= */
.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px; /* ancho reducido, no ocupa toda la pantalla */
  height: auto;
  background: rgba(17,17,17,0.85); /* fondo oscuro transparente */
  backdrop-filter: blur(6px);       /* efecto cristal elegante */
  transition: left 0.5s ease;
  padding: 2rem 1.5rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
 border-radius: 0 12px 12px 0;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4); /* sombra lateral */
}


.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu ul li {
  margin: 1rem 0;
}

.side-menu ul li a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.side-menu ul li a:hover {
  color: #D4AF37; /* dorado elegante */
  transform: translateX(6px); /* animación sutil */
}

.side-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--color-texto);
  text-decoration: none;
  transition: color 0.3s ease;
}

.side-menu a:hover {
  color: var(--color-dorado);
}

.side-menu.active {
  left: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #D4AF37; /* dorado elegante */
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px; /* lado derecho del menú */
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 2001; /* encima del menú */
}

.close-btn:hover {
  transform: rotate(90deg);
  color: #fff; /* cambio sutil al pasar el cursor */
}


/* =========================
   Hero / Presentación
========================= */

/* Presentación (Hero) */
.presentacion {
  background: linear-gradient(to bottom, #111, #222); /* fondo sobrio */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 140px) clamp(20px, 5vw, 60px);
  color: #fff;
}

/* Contenedor interno */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  width: 100%;
  max-width: 1400px;            /* ancho controlado para que no se vea sucio */
}

/* Bloque de texto e imagen */
.contenido {
  flex: 1 1 60%;
}

.contenido h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: #D4AF37;               /* dorado elegante */
  margin-bottom: 10px;
  letter-spacing: 2px;text-align: center;
}

.contenido h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
}

/* Imagen dentro del bloque de contenido */
.imagen-presentacion {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.imagen-presentacion img {
  width: auto;
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.5s ease;
}

.imagen-presentacion img:hover {
  transform: scale(1.05);
}

/* Logo */
.logo {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;   /* apila imagen y textos */
  justify-content: center;
  align-items: center;
  text-align: center;       /* centra el texto debajo de la imagen */
}

.logo img {
  max-width: 400px;         /* imagen más grande */
  width: 100%;              /* se adapta al contenedor */
  height: auto;             /* mantiene proporción */
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  margin-bottom: 15px;      /* espacio entre imagen y texto */
}

.logo h2 {
  font-size: 22px;
  font-weight: 600;
  color: #d4af37;           /* dorado elegante */
  margin: 5px 0;
}

.logo h3 {
  font-size: 18px;
  font-weight: 400;
  color: #fff;              /* blanco sobrio */
  margin: 0;
}


.contenido h1 { order: 1; }
.contenido .intro { order: 2; }
.contenido p[style] { order: 3; } /* el nombre */
.contenido .especialista { order: 4; }
.contenido .redes-sociales { order: 5; }


/* Estilos generales de la sección */
/* Sección de casos */
.casos-section {
background: linear-gradient(to bottom, #fdfdfd, #f4f4f4); /* fondo sobrio */
  padding: 70px 30px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2c2c2c;
  text-align: center;
}

/* Títulos principales */
.casos-section h2 {
 font-size: 2.4em;
  margin-bottom: 12px;
  color: #1a2a4d; /* azul profundo */
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

.casos-section h2::after {
   content: "";
  display: block;
  width: 90px;
  height: 3px;
  background-color: #d4af37; /* dorado elegante */
  margin: 14px auto 0 auto;
  border-radius: 2px;
}

/* Frase inicial */
.casos-section .intro {
font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 45px auto;
  color: #555;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
}

/* Áreas de casos (sin bloques divisorios) */
.casos-section .area {
  margin: 90px auto;
  max-width: 850px;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Cuando el bloque es visible */
.casos-section .area.visible {
  opacity: 1;
  transform: translateY(0);     /* sube suavemente */
}

/* Títulos de cada área */
.casos-section .area h3 {
  font-size: 1.6em;
  margin-bottom: 20px;
 color: #1a2a4d;
  font-weight: 600;
  position: relative;
}

.casos-section .area h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #d4af37;
  margin: 10px auto;
  border-radius: 2px;
}

/* Lista de casos */
.casos-section .area ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left; /* mantiene legibilidad */
}

.casos-section .area ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #444;
}

.casos-section .area ul li::before {
  content: "⚖️";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
  color: #1a2a4d;
}



/* ================= CONTACTO ================= */

/* =========================
   Contacto Premium
========================= */
.contacto {
  background: linear-gradient(to bottom, #111, #222); /* fondo sobrio */
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
   margin-bottom: 0; /* evita espacio extra */
}

.contacto h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #D4AF37; /* dorado elegante */
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.contacto p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #ddd;
  margin: 0.5rem 0;
}

/* Botón WhatsApp */
.btn-whatsapp a {
  display: inline-block;
  background: #3CB371; /* verde institucional */
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.4s ease, transform 0.4s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.btn-whatsapp a:hover {
  background: #D4AF37; /* dorado elegante */
  transform: scale(1.05);
}

/* Dirección */
.direccion {
  margin-top: 2rem;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.direccion li {
  list-style: none;
  font-weight: bold;
  color: #D4AF37;
  margin-bottom: 0.5rem;
}

/* Mapa */
.mapa iframe {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  margin-top: 2rem;
  width: 100%;
  height: 350px;
}

/* Horario */
.horario {
  margin-top: 3rem;
}

.horario h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #D4AF37;
  margin-bottom: 1rem;
}

.horario ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.horario ul li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #ddd;
  margin: 0.4rem 0;
}

.horario ul li span {
  font-weight: bold;
  color: #3CB371; /* verde institucional */
}

#texto-horario {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #D4AF37; /* dorado elegante */
  margin-bottom: 1rem;
}

#lista-horario {
  margin-top: 1rem;
  transition: all 0.5s ease;
}

#lista-horario.oculto {
  display: none;
}

#lista-horario li {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #ddd;
  margin: 0.4rem 0;
}

#lista-horario li span {
  font-weight: bold;
  color: #3CB371; /* verde institucional */
}

#btn-horario {
  background: linear-gradient(90deg, #3CB371, #2E8B57);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.4s ease, transform 0.4s ease;
}

#btn-horario:hover {
  background: #D4AF37;
  transform: scale(1.05);
}



/* =========================
   Footer
========================= */
footer {
  background: #000;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 0; /* elimina espacio superior */
}

.footer-botones a {
  margin: 0 1rem;
  color: var(--color-verde);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-botones a:hover {
  color: var(--color-dorado);
}


h1, h2, h3, h4, h5, h6{
    font-family: "Times New Roman", Times, serif;
}


/* Responsive */
@media (max-width: 768px) {
  .casos-section {
    padding: 40px 15px;
  }

  .casos-section h2 {
    font-size: 1.8em;
  }

  .casos-section .area h3 {
    font-size: 1.3em;
  }
}
/* Ajustes específicos para móviles */
@media (max-width: 480px) {
  header {
    padding: 12px 20px; /* menos espacio en el header */
  }

  header h1 {
    font-size: 14px;    /* 🔥 título más compacto */
    letter-spacing: 0.5px;
  }

  .menu-header ul {
    gap: 15px;          /* 🔥 menos separación entre enlaces */
    flex-wrap: wrap;
     max-width: 95%;     /* menú más estrecho */
    margin: 0 auto;
  }

  .menu-header ul li a {
    font-size: 12px;    /* 🔥 enlaces más pequeños */
  }

/* Presentación en móviles */
  .hero {
    flex-direction: column;   /* 🔥 apila texto y logo */
    gap: 20px;                /* menos espacio entre ellos */
    text-align: center;
  }

  .contenido {
    padding: 20px;
    max-width: 100%;
    align-items: center;      /* centra el bloque */
    text-align: center;
  }

  .contenido h1 {
    font-size: 28px;          /* título más compacto */
  }

  .contenido p {
    font-size: 16px;          /* texto más legible en móvil */
    line-height: 1.5;
  }

  .logo {
    margin-top: 15px;
    justify-content: center;
  }

  .logo img {
    max-height: 100px;        /* logo más proporcionado */
    width: auto;
  }

  /* Menú lateral más estrecho */
  .side-menu {
    width: 200px;
    padding-top: 60px;
  }

  .side-menu ul li a {
    font-size: 15px;
  }

/* 🔥 Ajustes para Casos Relevantes en móvil */
  .casos-section {
    padding: 50px 20px;
    text-align: center;
  }

  .casos-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a3d6d;
  }

  .casos-section .intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #c9a646;
  }

  .casos-section .logo {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .casos-section .logo img {
    max-height: 100px;
    width: auto;
  }
}

/* RESPONSIVO: apilar vertical en pantallas pequeñas */
@media (max-width: 900px) {
    .info-horizontal {
        flex-direction: column;
        gap: 20px;
    }

    .info-horizontal::after {
        display: none;
    }

    .persona, .diplomados {
        flex: 0 0 100%;
    }
}

/* ANIMACION */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1280px) {
  header {
background: transparent;   /* sin bloque oscuro */
    backdrop-filter: none;     /* quitamos el cristal */
    box-shadow: none;          /* sin sombra */
    height: 80px;
    padding: 10px 25px;
    position: absolute;
    top: 40px;
    right: 40px;               /* flotante al lado derecho */
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* menú alineado a la derecha */
  }

.menu-header ul {
    gap: 40px;                 /* más espacio entre enlaces */
  }
  
  .menu-btn {
    color: #000; /* hamburguesa negra sobre fondo blanco */
  }

 .menu-btn:hover {
    color: #d4af37; /* dorado elegante al pasar el cursor */
    transform: scale(1.1);
  }

  .menu-header ul li a {
    color: #000;               /* texto oscuro sobre fondo blanco */
    font-size: 16px;
    font-weight: 500;
  }

  .presentacion {
    padding-top: 0; /* ya no necesita espacio extra */
  }
}

@media (max-width: 1024px) {
    
     header {
    width: 95%;
    justify-content: center;
    border-radius: 0;
  }

.hero {
    margin-top: 2rem; /* espacio debajo del menú */
    text-align: center;
    flex-direction: column;
  }

  .menu-header {
    align-items: center; /* menú centrado */
    justify-content: center;
    margin: 0 auto;
  }
    
     .presentacion {
    background-position: top center; /* centra el fondo en pantallas medianas */
    min-height: 70vh;
  }
  
  .menu-header {
    display: none; /* ocultar flotante en pantallas pequeñas */
  }
  
  .menu-btn {
    display: block; /* mostrar hamburguesa en móviles/tablets */
  }
 
  .side-menu {
    display: block; /* activar menú lateral */
  }
}

@media (min-width: 1025px) {
  .side-menu {
    display: none; /* ocultar menú lateral en escritorio */
  }
   .menu-btn {
    display: none; /* ocultar hamburguesa en escritorio */
  }
  
  .menu-header {
    display: block; /* activar flotante en escritorio */
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
   .presentacion {
    background-position: center top;
    min-height: 60vh; /* más compacto en móviles */
  }

  header {
    width: 100%;
    padding: 10px;
  }

.menu-header {
    align-items: center;
    justify-content: center;
  }

  .hero {
    margin-top: 3rem; /* espacio debajo del menú */
  }

  .menu-header ul {
    flex-direction: column;
    gap: 1rem;
  }

  .trayectoria .contenedor {
    flex-direction: column;
  }
  
  .logo img {
    margin-top: 2rem;
  }
  
  .bloque {
    width: 100%;
  }
  
  .mapa iframe {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .contenido h1 { font-size: 28px; }
  .contenido .intro { font-size: 16px; }
  .logo img { max-width: 200px; margin-top: 1rem; }
}