/* ============================
   FUENTES Y VARIABLES
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Lora:wght@400;500;600;700&display=swap');

:root{
  --color-principal: #6766DB;
  --color-principal-10: rgba(103,102,219,0.10);

  --color-dorado: #D09D3E;
  --color-amarillo: #FCC433;

  --color-grisoscuro: #6A7282;
  --color-grisclaro: #dce3ecff;
  --color-negro: #000;

  --fondos: linear-gradient(180deg, #FFF 0%, #F9F9FF 50%, #F0F0FF 100%);

  --font-titulo: 'Lora', serif;
  --font-texto: 'Inter', sans-serif;

  --transition: 0.35s ease;
}

/* ============================
   RESET
   ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,body{
  min-height:100%;
  font-family: var(--font-texto);
  background: var(--fondos);
  background-attachment: fixed;
  color: var(--color-negro);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* ============================
   HEADER / NAV
   ============================ */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: white;
  box-shadow: 0px 1.5px 6px rgba(103, 102, 219, 0.50);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.nav {
  width: 100%;
}

.nav ul {
  display: flex;
  align-items: center;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin-right: 32px;
}

/* LOGO A LA DERECHA */
.nav li.logo-item {
  margin-left: auto;
  margin-right: 32;
}

.nav a{
  color: var(--color-negro);
  text-decoration: none;
  font-size:16px;
  font-weight:300;
  position: relative;
  padding-bottom:4px;
  transition: color var(--transition);
}

/* Subrayado animado */
.nav a::after{
  content: "";
  position: absolute;
  left:0;
  bottom:0;
  height:2px;
  width:0%;
  background: var(--color-principal);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after{ 
  width:100%; 
}

.nav a:hover, .nav a.active{ 
  color: var(--color-principal); 
}

.logo-link {
  display: inline-block;
  position: relative;
}

.logo.default {
  width: 36px;
  height: auto;
  display: block;
}

.logo.hover {
  width: 36px;
  height: auto;
  display: none;
}

.logo-link:hover .default {
  display: none;
}

.logo-link:hover .hover {
  display: block;
}

/* === LOGO ACTIVO (HOME) === */
.logo-link.active .default{
  display:none;
}

.logo-link.active .hover{
  display:block;
}


.nav-toggle{
  display:none;
}

.nav-burger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.nav-burger span{
  width:26px;
  height:2px;
  background:#000;
  transition:0.3s ease;
}


/* ESTADO INICIAL */
.nav-burger span{
  width:26px;
  height:2px;
  background:#000;
  transition:transform 0.35s ease, opacity 0.25s ease;
  transform-origin:center;
}

/* ANIMACIÓN A X */
.nav-toggle:checked + .nav-burger span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .nav-burger span:nth-child(2){
  opacity:0;
}

.nav-toggle:checked + .nav-burger span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}
/* ============================
   FIN HEADER / NAV
   ============================ */



/* CONTENEDOR GENERAL */
.sobremi-container{
  max-width:1200px;
  margin: 0 auto;
  padding-top: 135px;
  padding-bottom:200px; 
  display:flex;
  flex-direction:column;
  gap:140px;
  padding-left:60px;
  padding-right:60px;
}

/* HERO */
.hero-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:48px;
  opacity:0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to { opacity:1; transform: none; }
}

/* FOTO Y FONDO */
.hero-left{
  width:380px;
  position:relative;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}



/* fondo detrás de la foto */
.foto-bg {
  position: absolute;
  inset: 32px 0 12px 0;   /* top | right | bottom | left */
  border-radius: 44px;
  background: var(--color-principal-10);
  z-index: 1;
}

/* tarjeta foto */
.foto-card {
  position: relative;
  width: 100%;        
  border-radius: 44px;
  overflow: hidden;
  z-index: 2;
}

.foto-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* colummna derecha: DATOS */
.hero-right{ 
  max-width:520px; 
}

.nombre{
  font-family: var(--font-titulo);
  font-size:70px;
  font-weight:600;
  line-height:1;
  color: var(--color-principal);
  margin-bottom: 30px;
}

.rol{
  font-size:32px;
  color: var(--color-principal);
  margin-bottom: 50px;
  text-transform: none;
  font-weight:400;
}

.cita{
  font-family: var(--font-titulo);
  font-size:22px;
  max-width: 90%;
  color: rgba(0,0,0,0.88);
}



/* CONTENT COLUMNS */
.content-columns{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:150px;
  padding-top:60px;
  border-top: 2px solid var(--color-grisclaro);
}

/* COLUMNA IZQUIERDA - FORMACIÓN */
.section-title{
  font-family: var(--font-texto);
  font-size:24px;
  font-weight:600;
  margin-bottom: 24px;
}

.educ-item{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom: 28px;
  padding: 6px 4px;
  border-radius:6px;
  transition: background var(--transition), padding-left 0.4s ease;
}

.educ-item:hover{
  background: rgba(103,102,219,0.04);
  padding-left:8px;
}

.educ-title{
  font-size:20px;
  font-weight:400;
  margin:0;
  color: #000;
}

.educ-sub{
  color: var(--color-grisoscuro);
  font-size:16px;
  line-height:1.4;
  max-width:260px;
  margin:0;
}

/* COLUMNA DERECHA - BIOGRAFÍA */
.col-right{ 
  width:100%;
  display:flex; 
  flex-direction:column; 
  gap:24px; }

.biography p{
  font-size:18px;
  margin-bottom:18px;
  color: rgba(0,0,0,0.94);
}


/* GALLERY */
.gallery{ 
  display:flex;
  justify-content:center; 
  margin-top:-100px; 
}
.gallery-card img{
  width:100%;
  max-width:700px;
}




/* ============================
   RESPONSIVE
   ============================ */

@media (max-width:1100px){

  /* CONTENEDOR GENERAL */


 .hero-left{
    width:300px;
    min-width:180px;
  }

  .foto-bg{
    inset: 20px 0 0 0;
  }

  .foto-card img{
  display:block;
}

  .nombre{
    font-size:52px;
  }

  .rol{
    font-size:22px;
    margin-bottom:32px;
  }

  .cita{
    font-size:18px;
    max-width:100%;
  }

  .content-columns{
    display:flex;
    flex-direction:column;
    margin-top:-20px;
    gap:60px;
  }
  /* FORMACIÓN */
  .section-title{
    font-size:22px;
  }

  .educ-title{
    font-size:18px;
  }

  .educ-sub{
    font-size:15px;
  }

  /* BIOGRAFÍA */
  .biography p{
    font-size:17px;
    line-height:1.6;
    max-width:700px;
  }

}


@media (max-width:600px){
 /* CONTENIDO*/
  .sobremi-container{
    padding-left:30px;
    padding-right:30px;
  }

  /* HERO — COLUMNA */
  .hero-inner{
    flex-direction:column;
    gap:32px;
    text-align:center;
  }

  /* ORDEN EXACTO */
  .hero-right{ order:1; }
  .hero-left{ order:2; }

  .nombre{
    font-size:36px;
    line-height: 1.2;
    margin-bottom:16px;
  }

  .rol{
    font-size:20px;
    margin-bottom:24px;
  }

  .cita{
    font-size:16px;
    max-width:100%;
  }



  /* CONTENIDO EN COLUMNA */
  .content-columns{
    display:flex;
    flex-direction:column;
    margin-top:-50px;
    gap:48px;
  }

  .col-left{
    order:3;
  }

  .col-right{
    order:4;
  }

  /* FORMACIÓN */
  .section-title{
    font-size:20px;
  }

  .educ-title{
    font-size:16px;
  }

  .educ-sub{
    font-size:14px;
  }

  /* BIOGRAFÍA */
  .biography p{
    font-size:16px;
    line-height:1.5;
  }

  /* GALERÍA */
  .gallery{
    margin-top:-40;
  }
}


/* ============================
   RESPONSIVE - MENU
   ============================ */

   @media (max-width: 780px) {
/* RESET TOTAL DEL NAV DESKTOP EN MÓVIL */
.nav ul {
  width: auto;
}

.nav-menu {
  margin: 0;
  padding: 0;
}
.nav-menu li {
  margin: 0;
}
.nav-menu .logo-item {
  margin-left: 0;
}
  /* =====================
     HEADER
  ====================== */
  .header {
    height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  /* =====================
     BOTÓN HAMBURGUESA
  ====================== */
  .nav-burger {
    display: flex;
    position: relative;
    z-index: 50;
  }
  /* =====================
     MENÚ OCULTO
  ====================== */
 .nav-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  z-index: 40;
}
  /* =====================
     MOSTRAR MENÚ
  ====================== */
.nav-toggle:checked + .nav-burger + .nav-menu {
  transform: translateY(0);
}
  /* =====================
     ITEMS DEL MENÚ
  ====================== */
  .nav-menu li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav-menu a {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
  }
  /* =====================
     LOGO DENTRO DEL MENÚ
  ====================== */
  .nav-menu .logo-item {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .nav-menu .logo.default,
  .nav-menu .logo.hover {
    width: 50px;
    height: auto;
  }
  .logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}