/* =====================
   BASE / RESET
===================== */
html, body {
    overflow-x: hidden; /* Evita scroll horizontal */
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
}

header{
    margin-bottom: 30px;
}
/* =====================
   BODY / BACKGROUND
===================== */
body {
    min-height: 100vh;
    color: black;
    background: linear-gradient(
        to bottom, 
        #ffffff,   /* blanco arriba */
        #dbe7ff,   /* azul clarito */
        #a6c4ff    /* azul claro */
    );
}

/* =====================
   SPLASH / BIENVENIDA
===================== */
#splash {
  position: fixed;
  inset: 0;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 1;
  color:  #1e3a8a;
  transition: opacity 0.8s ease;
}

#splash svg {
  width: 60px;
  margin-top: 20px;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Contenido oculto al inicio */ .hidden {
  display: none;
} 


/* Contenido con fade */
#contenido {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#contenido.show {
  display: block;
  opacity: 1;
}

/* =====================
   HEADER
===================== */
.side-header {
    background-color: #1e3a8a;
    color: white;
    position: relative;
    margin-bottom: 40px;
}
                       

.header-inner {
    display: flex;
    justify-content: space-between; /* 🔥 clave */
    align-items: center;
    padding: 20px 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;   
}

.logo img{
  width: 170px;
  height: auto;
}

/*
.logo {
 grid-column: 1;
 justify-self: center;
}

.logo img{
  height: auto;
  width: 100px;
  display: block;
  object-fit: contain;
}
                      */

.menu-btn {   
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
}

/* =====================
   NAV / MENÚ DESPLEGABLE
===================== */

#lista {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;

    background-color: #1e3a8a;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;

    z-index: 9999;
    padding-top: 60px;
}

.close-btn {
    position: center;
    top: 15px;
    left: 15px;

    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

#lista.show {
    display: flex;
    transform: translateX(0);
}

#lista ul {
    display: flex;
    flex-direction: column; /*  columna SIEMPRE en móvil */
    padding: 0;
    margin: 0;
    list-style: none;
}

#lista li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#lista a {
    display: block;
    padding: 15px;
    color: white;
}

/* =====================
   SECCIONES PRINCIPALES
===================== */
section {
    width: 90%;
    max-width: 700px;
    margin: auto;
    line-height: 1.5;
    margin-bottom: 50px;
}

#titulo {
    margin: 40px 0 10px 0;
    color: black;
    text-align: center;
    background:  linear-gradient(90deg, #1e3a8a, #3b82f6, #06b6d4); 
    
  -webkit-background-clip: text;   /* Recorta el fondo al texto */
  -webkit-text-fill-color: transparent; /* Hace el texto transparente para que se vea el degradado */
  
  background-clip: text;           /* Para otros navegadores */
  color: transparent;              /* Fallback */

}

.parrafo, .title {
    text-align: center;
}

/* =====================
   EXPERIENCIA / ESTUDIOS
===================== */
#ex li, .est li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.dist {
    margin-top: 40px;
    font-size: 20px;
    color: black;
}

/* =====================
   FAQ / PREGUNTAS FRECUENTES
===================== */

details {
  border: 1px solid #1e3a8a;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  background: white;
  transition: 0.3s ease;
}

/* cuando abre el details, se abre con el texto que hay dentro */
details[open] {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =====================
   FOOTER
===================== */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    color: white;
    background-color: black;
}

/* =====================
   BOTÓN FLOTANTE / TOP
===================== */
.flotante {
    position: fixed;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.flotante.show {
    opacity: 1;
    pointer-events: auto;
}

.return-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color:  #1e3a8a;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, opacity 0.3s;
}

.return-btn:hover {
    transform: scale(1.1);
}

/* =====================
   ESTILOS ADICIONALES
===================== */
a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #274;
}

#exp {
    text-align: center;
    margin-left: 20px;
}

/* =====================
   DESKTOP
===================== */
@media (min-width: 920px) {
  /* Oculta hamburguesa y botón X en desktop */
  .menu-btn {
    display: none;
  }
  .close-btn {
    display: none;
  }

  /* Header en columna: logo arriba, menú debajo */
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo img {
    width: 170px;
    height: auto;
    margin-bottom: 20px;
  }

  /* Menú horizontal debajo del logo */
  #lista {
    position: static;
    background: transparent;
    transform: none;
    height: auto;
    width: auto;
    padding-top: 0;
  }

  #lista ul {
    display: flex;
    flex-direction: row; /* fila en desktop */
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center; /* centrado */
  }

  #lista li {
    border: none;
  }

  #lista a {
    color: white;
    padding: 10px;
  }
}
  

#vision{
  text-align: center;
  margin-top: 40px;
}

/* Contenedor de botones */
#faq {
  display: flex;              /* Coloca los botones en fila */
  justify-content: center;    /* Centra horizontalmente */
  gap: 16px;                  /* Espacio entre botones */
  margin: 30px 0;             /* Separación arriba y abajo */
}

/* Botón Salir */
#btn-exit {
  background: #374151;        /* Gris oscuro elegante (mejor que negro puro) */
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Botón Contacto */
#btn-c {
  background: #1e3a8a;        /* Azul del header (consistencia visual) */
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* Hover / toque */
#btn-c:hover {
  background: #2746a3;        /* Azul un poco más claro */
}

#btn-exit:hover {
  background: #1f2933;        /* Gris un poco más oscuro */
}

#question{
  padding: 40px;
  border: 2px solid #4da3ff;
  border-radius: 15px;
  max-width: 250px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

                               

.logo {
 grid-column: 2;
 justify-self: center;
}

.logo img {
 display: block;
 object-fit: contain; 
}
         
.logo img{
  height: clamp(60px, 8vw, 140px);
  width: auto;
}
                                 
   
/* classname conectada al JS para iluminación de section con evento click() */

.section-highlight{
  border: 3px solid #3b82f6;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 12px rgba(59,130,246,0.4);
  transition:  0.3s ease;
}