.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* --- Estilos Globales y de Header (Escritorio) --- */
body { font-family: 'Lexend', sans-serif; margin: 0; color: #333; }
.fixed-logo { position: fixed; top: 30px; left: 40px; z-index: 1001; }
.fixed-logo img { height: 40px; width: auto; }
.main-header { position: fixed; top: 20px; right: 20px; left: 20px; z-index: 1000; display: flex; justify-content: flex-end; align-items: center; padding: 10px 20px; transition: top 0.4s ease-in-out; }
.main-header.nav-hidden { top: -100px; }
.nav-wrapper { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 10px; padding: 10px 20px; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.main-nav { display: flex; }
.main-nav a { color: #333; text-decoration: none; margin: 0 20px; font-weight: 500; position: relative; padding: 5px 0; }
.main-nav a.active { font-weight: 700; }
.main-nav a.active::after, .main-nav a:hover::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: #c5a47e; }
.cta-button { background-color: #1a2a4a; color: #fff; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: 600; margin-left: 20px; transition: background-color 0.3s ease; }
.cta-button:hover { background-color: #3c4a6b; }
.mobile-nav-toggle { display: none; }

/* --- Estilos de la Página de Perfil --- */
body.profile-page { background-color: #c5a47e; }
.profile-container { display: flex; max-width: 1400px; margin: 0 auto; padding-top: 120px; }
.profile-image-sticky-container { flex: 0 0 50%; position: relative; height: 150vh; }
.profile-image { position: sticky; top: 120px; height: calc(100vh - 120px); width: 100%; transition: width 0.5s ease-out; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-content { flex: 1; padding: 60px 80px; min-width: 0; }
.profile-intro { min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: center; }
.profile-subtitle { font-size: 1rem; font-weight: 600; color: #1a2a4a; letter-spacing: 1px; text-transform: uppercase; }
.profile-intro h1 { font-size: 4.5rem; color: #1a2a4a; margin: 10px 0 20px 0; }
.profile-summary { font-size: 1.2rem; line-height: 1.7; color: #fff; max-width: 90%; }
.profile-details { padding-top: 60px; }
.profile-details h2 { font-size: 2.2rem; color: #1a2a4a; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; margin-bottom: 30px; }
.profile-details p, .profile-details li { font-size: 1.1rem; line-height: 1.8; color: #fff; margin-bottom: 15px; }
.profile-details ul { list-style: none; padding-left: 0; }
.profile-details li::before { content: '›'; margin-right: 15px; color: #c5a47e; font-weight: bold; }

/* --- Estilos de Pre-Footer y Footer --- */
.pre-footer { background-color: #f4f4f4; padding: 80px 40px; text-align: center; }
.pre-footer-content h2 { font-size: 2.5rem; color: #1a2a4a; margin-bottom: 15px; }
.pre-footer-content p { font-size: 1.125rem; color: #555; max-width: 600px; margin: 0 auto 30px auto; line-height: 1.6; }
.cta-button-footer { background-color: #c5a47e; color: #fff; padding: 15px 40px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 1rem; display: inline-block; transition: background-color 0.3s ease, transform 0.3s ease; }
.cta-button-footer:hover { background-color: #b39169; transform: translateY(-3px); text-decoration: none; color: #fff; }
.main-footer-container { background-color: #1a2a4a; color: #e0e0e0; padding: 60px 40px 20px; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 40px; }
.footer-column { flex: 1; min-width: 220px; }
.footer-brand { max-width: 180px; height: auto; display: block; filter: brightness(0) invert(1); }
.footer-tagline { font-style: italic; color: #c5a47e; }
.footer-column h4 { font-size: 1.2rem; color: #fff; margin-bottom: 20px; font-weight: 600; position: relative; padding-bottom: 10px; }
.footer-column h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: #c5a47e; }
.footer-column a, .footer-column p { color: #e0e0e0; text-decoration: none; display: block; margin-bottom: 10px; line-height: 1.7; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { text-align: center; border-top: 1px solid #3c4a6b; padding-top: 20px; margin-top: 40px; font-size: 0.9rem; color: #a0a0a0; }

/* --- Clases de Animación --- */
.hidden-item { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.hidden-item.is-visible { opacity: 1; transform: translateY(0); }
.footer-reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.footer-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ======================================= */
/* === RESPONSIVE PARA PÁGINAS DE PERFIL === */
/* ======================================= */
@media (max-width: 1200px){
  .profile-intro h1{ font-size: clamp(2.6rem, 4.5vw, 3.6rem); }
  .profile-summary{ max-width: 100%; }
}

@media (max-width: 992px){
  .profile-container{ flex-direction: column; gap: 28px; padding-top: 110px; }
  .profile-image-sticky-container{ flex: 0 0 auto; height: auto; }
  .profile-image{ position: relative; top: 0; height: auto; max-height: 52vh; border-radius: 12px; overflow: hidden; }
  .profile-content{ padding: 24px; }
  .profile-intro{ min-height: auto; }
  .profile-intro h1{ font-size: clamp(2.2rem, 5vw, 3rem); }
  .profile-summary{ font-size: 1.05rem; }
  .profile-details{ padding-top: 28px; }
  .pre-footer{ padding: 64px 24px; }
  .footer-content{ gap: 24px; }
}

@media (max-width: 768px){
    /* === NUEVO MENÚ HAMBURGUESA === */
    .mobile-nav-toggle {
        display: block; position: relative; z-index: 1001;
        width: 28px; height: 20px;
        background: transparent; border: 0; padding: 0; cursor: pointer;
    }
    .mobile-nav-toggle::before, .mobile-nav-toggle::after {
        content: ''; position: absolute; left: 0;
        width: 100%; height: 3px; background: #333; /* Color oscuro sobre fondo claro */
        border-radius: 2px;
        transition: transform 0.3s ease-out, top 0.3s ease-out, bottom 0.3s ease-out;
    }
    .mobile-nav-toggle::before { top: 0; }
    .mobile-nav-toggle::after { bottom: 0; }
    .nav-open .mobile-nav-toggle::before { top: 8.5px; transform: rotate(45deg); }
    .nav-open .mobile-nav-toggle::after { bottom: 8.5px; transform: rotate(-45deg); }
    body.nav-open { overflow: hidden; }

    .main-header { padding: 15px 20px; }
    .nav-wrapper { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: none; padding: 0; }

    .main-nav {
        display: none; position: fixed; z-index: 1000;
        inset: 0 0 0 30%;
        flex-direction: column; justify-content: center; align-items: center; gap: 3rem;
        padding: min(20vh, 10rem) 2em;
        background: rgba(26, 42, 74, 0.95);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        transform: translateX(100%); transition: transform 0.4s ease-out;
    }
    .nav-open .main-nav { display: flex; transform: translateX(0%); }

    .main-nav a { color: white; margin: 0; font-size: 1.1rem; }
    .main-nav a.active::after, .main-nav a:hover::after { display: none; }
    .main-nav .cta-button { border: 2px solid #c5a47e; background-color: transparent; padding: 12px 30px; border-radius: 50px; }

    /* --- Otros Ajustes Responsive --- */
    .fixed-logo{ top: 22px; left: 20px; }
    .fixed-logo img{ height: 34px; }
    .profile-intro h1{ font-size: clamp(2rem, 6vw, 2.6rem); }
    .profile-details h2{ font-size: 1.6rem; }
    .profile-content{ padding: 20px; }
    .footer-content{ flex-direction: column; align-items: flex-start; gap: 18px; }
    .main-footer-container{ padding: 40px 20px; }
}

@media (max-width: 480px){
  .fixed-logo img{ height: 30px; }
  .profile-intro h1{ font-size: clamp(1.6rem, 7vw, 2.1rem); margin: 8px 0 14px; }
  .profile-content{ padding: 16px; }
  .profile-details h2{ font-size: 1.45rem; }
}