/* 
    Proyecto: Sitio Web Oficial - Andrés Arias (Diputado por Cundinamarca)
    Versión: 5.0 - DISEÑO POLÍTICO PROFESIONAL
    Inspiración: Polytia / Peter Good Political Templates
    Desarrollado por: CtrlPlus
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --navy: #0B1D33;
    --navy-dark: #071222;
    --navy-light: #132D4F;
    --gold: #D4AF37;
    --yellow: #FBB03B;
    --red: #E30613;
    --blue-sky: #29ABE2;
    --white: #FFFFFF;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --font: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--white);
    background: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(7, 18, 34, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--gold);
    z-index: 5000;
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    height: 75px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.nav-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img { height: 150px; transition: height 0.3s; }
.navbar.scrolled .nav-logo img { height: 55px; }

.nav-menu { display: flex; gap: 35px; list-style: none; }
.nav-menu.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(7, 18, 34, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 30px;
    gap: 0;
    border-bottom: 3px solid var(--gold);
    animation: slideDown 0.3s ease;
}
.nav-menu.mobile-open li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-menu.mobile-open a { display: block; padding: 15px 0; font-size: 0.9rem; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.nav-menu a {
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

.nav-menu a:hover { color: var(--gold); }
.nav-menu a:hover::after { width: 100%; }

.nav-cta .btn-gold {
    padding: 12px 30px;
    font-size: 0.8rem;
}

/* ============================================
   HERO - FULL SCREEN POLÍTICO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 35%, rgba(11,29,51,0.6) 65%, rgba(11,29,51,0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-content h1 span { color: var(--gold); }

.hero-content p {
    font-size: 1.15rem;
    color: var(--gray-200);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-slogan {
    margin-top: 50px;
    opacity: 0.85;
}

.hero-slogan img { height: 190px; }

.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

/* ============================================
   BOTONES GENERALES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,175,55,0.3); }

.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #c00510; }

/* ============================================
   SECCIONES
   ============================================ */
.section { padding: 120px 40px; }

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 5px 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
}

.section-title span { color: var(--gold); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 600px;
    margin-bottom: 60px;
}

/* ============================================
   PERFIL / BIOGRAFÍA
   ============================================ */
.bio-section { background: var(--navy-dark); }

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.bio-photo {
    position: relative;
}

.bio-photo img {
    width: 100%;
    height: auto;
    border: 4px solid var(--gold);
}

.bio-photo-accent {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--red);
    z-index: -1;
}

.bio-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 5px;
}

.bio-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-sky);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.bio-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--gray-200);
    margin-bottom: 25px;
    text-align: justify;
}

.bio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.stat-item { text-align: center; }
.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ============================================
   TRAYECTORIA (TIMELINE)
   ============================================ */
.timeline-section { background: var(--navy); }

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--red));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 30px 35px;
    background: var(--navy-light);
    border-left: 4px solid var(--gold);
    transition: all 0.3s var(--ease);
}

.timeline-item:hover {
    transform: translateX(10px);
    border-left-color: var(--red);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 35px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--navy);
}

.timeline-year {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   VALORES / PILARES
   ============================================ */
.values-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    background: var(--navy-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.value-card:hover {
    transform: translateY(-15px);
    background: var(--navy-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.value-card:hover::before { transform: scaleX(1); }

.value-card:hover .value-icon { transform: scale(1.1) rotate(5deg); color: var(--gold); }

/* ======== MODALES INTERACTIVOS (PILARES Y VIDEO) ======== */
.interactive-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 18, 34, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.interactive-modal.active { display: flex; animation: fadeIn 0.4s var(--ease); }

.modal-content {
    background: var(--navy);
    border: 3px solid var(--gold);
    width: 100%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px; right: 25px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.modal-close:hover { color: var(--gold); transform: rotate(90deg); }

.modal-body { padding: 50px; }

.modal-header { margin-bottom: 30px; }
.modal-header h2 { font-size: 2.5rem; font-weight: 900; line-height: 1.1; margin-top: 10px; }
.modal-header h2 span { color: var(--gold); }

.modal-text { font-size: 1.1rem; line-height: 1.8; color: var(--gray-200); margin-bottom: 40px; }

.modal-media img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .modal-body { padding: 30px 20px; }
    .modal-header h2 { font-size: 1.8rem; }
    .modal-text { font-size: 0.95rem; }
}

.value-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.value-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   NOTICIAS / REDES SOCIALES
   ============================================ */
.news-section { background: var(--navy-dark); }

.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.social-card {
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 30px;
    transition: all 0.3s var(--ease);
}

.social-card:hover { border-color: var(--gold); }

.social-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-header i { font-size: 1.3rem; }
.social-header.fb { color: #1877F2; }
.social-header.ig { color: #E4405F; }

.ig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ig-item {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.ig-item:hover { transform: scale(1.03); }

.ig-item::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.ig-item:hover::after { opacity: 1; }

/* ============================================
   CONTACTO
   ============================================ */
.contact-section {
    background: var(--gold);
    color: var(--navy);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: rgba(11,29,51,0.7);
}

.contact-features { list-style: none; }
.contact-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.contact-features li i {
    color: var(--red);
    font-size: 1.1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    background: rgba(11,29,51,0.08);
    border: 2px solid var(--navy);
    color: var(--navy);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(11,29,51,0.4);
    font-weight: 600;
}

.habeas-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.habeas-row input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; cursor: pointer; accent-color: var(--red); }
.habeas-row label { font-size: 0.75rem; font-weight: 700; color: rgba(11,29,51,0.7); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #050A14;
    border-top: 5px solid var(--gold);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img { height: 70px; margin-bottom: 15px; }
.footer-brand p { font-size: 0.85rem; color: var(--gray-400); max-width: 300px; line-height: 1.7; }

.footer-links h4 { font-size: 0.8rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--gray-400); transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a { 
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 25px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--gray-600);
}

.footer-bottom a { color: var(--gold); font-weight: 800; }

/* ============================================
   GALERÍA DE GESTIÓN
   ============================================ */
.gallery-section { background: var(--navy); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    grid-auto-rows: 280px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gallery-item:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-lg { grid-column: span 2; }

.gallery-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11,29,51,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-overlay i { font-size: 2rem; color: var(--gold); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--gold);
}

.lightbox-caption {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--gold); }

.lightbox-close { top: 30px; right: 40px; font-size: 3rem; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

/* ============================================
   CONTACT LOGO
   ============================================ */
.contact-logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 25px;
}

/* ============================================
   MENÚ HAMBURGUESA (MOBILE)
   ============================================ */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   RESPONSIVE - MULTI BREAKPOINT
   ============================================ */

/* TABLETS LANDSCAPE (≤1200px) */
@media (max-width: 1200px) {
    .nav-menu { gap: 20px; }
    .nav-menu a { font-size: 0.75rem; letter-spacing: 1.5px; }
    .hero-content h1 { font-size: 4rem; }
    .bio-grid { gap: 50px; }
    .contact-grid { gap: 50px; }
    .timeline-item { padding: 25px 30px; }
}

/* TABLETS PORTRAIT (≤1024px) */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3.5rem; }
    .bio-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item-lg { grid-column: span 2; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-social { justify-content: center; }
    .bio-photo { max-width: 500px; margin: 0 auto; }
    .contact-logo { max-width: 280px; }
    .contact-info { text-align: center; align-items: center; display: flex; flex-direction: column; }
    .contact-features { text-align: left; }
    .social-card { overflow: hidden; }
    .fb-page, .fb-page span, .fb-page iframe { max-width: 100% !important; width: 100% !important; }
}

/* PHONES LARGE (≤768px) */
@media (max-width: 768px) {
    .navbar { height: 70px; }
    .navbar.scrolled { height: 65px; }
    .nav-logo img { height: 50px; }
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .nav-hamburger { display: block; }

    .nav-inner { padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

    .hero-overlay { background: linear-gradient(180deg, var(--navy) 0%, rgba(11,29,51,0.85) 50%, rgba(11,29,51,0.7) 100%); }
    .hero { min-height: 100vh; padding-top: 70px; }
    .hero-content { padding: 0 20px; }
    .hero-content h1 { font-size: 2.5rem; letter-spacing: -1px; }
    .hero-content p { font-size: 1rem; }
    .hero-badge { font-size: 0.65rem; padding: 5px 15px; }
    .hero-slogan img { height: 40px; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    .section { padding: 70px 20px; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 0.9rem; }
    .section-label { font-size: 0.65rem; }

    .bio-name { font-size: 2rem; }
    .bio-role { font-size: 0.85rem; }
    .bio-text { font-size: 0.9rem; }
    .bio-stats { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .stat-number { font-size: 2rem; }

    .timeline { padding-left: 45px; }
    .timeline::before { left: 15px; }
    .timeline-item { padding: 20px; }
    .timeline-item::before { left: -40px; width: 12px; height: 12px; }
    .timeline-role { font-size: 1.1rem; }

    .values-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-item-lg { grid-column: span 1; }

    .ig-grid { grid-template-columns: 1fr 1fr; }
    .ig-item { height: 160px; }

    .contact-grid { gap: 30px; }
    .contact-logo { max-width: 240px; }
    .contact-info p { font-size: 0.9rem; }
    .contact-features li { font-size: 0.85rem; }

    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    .lightbox img { max-width: 95vw; max-height: 70vh; }
    .lightbox-close { top: 15px; right: 20px; font-size: 2.5rem; }
    .lightbox-prev { left: 10px; font-size: 1.5rem; }
    .lightbox-next { right: 10px; font-size: 1.5rem; }
}

/* PHONES MEDIUM (≤480px) */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.9rem; max-width: 100%; }
    .hero-slogan img { height: 32px; }

    .section { padding: 50px 15px; }
    .section-title { font-size: 1.7rem; }

    .bio-name { font-size: 1.6rem; }
    .bio-stats { grid-template-columns: 1fr; gap: 20px; }
    .stat-number { font-size: 2.2rem; }

    .timeline { padding-left: 35px; }
    .timeline-item { padding: 15px; }
    .timeline-item::before { left: -30px; width: 10px; height: 10px; top: 20px; }
    .timeline-role { font-size: 1rem; }
    .timeline-desc { font-size: 0.8rem; }

    .value-card { padding: 25px 20px; }
    .value-icon { font-size: 2rem; }

    .gallery-grid { grid-auto-rows: 180px; gap: 10px; }

    .contact-form input,
    .contact-form select,
    .contact-form textarea { padding: 13px 15px; font-size: 0.85rem; }

    .contact-logo { max-width: 200px; }

    .btn { padding: 13px 25px; font-size: 0.75rem; }

    .footer-inner { gap: 25px; }
    .footer-brand img { height: 50px; }
    .footer-brand p { font-size: 0.8rem; }
    .footer-bottom { font-size: 0.6rem; }

    .social-header { font-size: 0.8rem; }
    .ig-item { height: 130px; }
}

/* PHONES SMALL (≤360px) */
@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.7rem; }
    .hero-badge { font-size: 0.55rem; padding: 4px 12px; letter-spacing: 2px; }

    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.8rem; }

    .bio-name { font-size: 1.4rem; }
    .bio-role { font-size: 0.75rem; letter-spacing: 1px; }

    .timeline-role { font-size: 0.9rem; }

    .contact-logo { max-width: 170px; }
    .contact-features li { font-size: 0.8rem; gap: 8px; }

    .nav-logo img { height: 42px; }
    .gallery-grid { grid-auto-rows: 150px; }
}

/* ==============================================================================
   PORTAL DE ACCESO PRIVADO & EN CONSTRUCCIÓN (PASSWORD GATE)
   ============================================================================== */
html:not(.site-unlocked) body {
    overflow: hidden !important;
}

.construction-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, var(--navy) 0%, var(--navy-dark) 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    font-family: var(--font);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.site-unlocked .construction-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.construction-container {
    max-width: 650px;
    width: 100%;
    background: rgba(19, 45, 79, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    animation: constructionIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.construction-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--red) 100%);
}

@keyframes constructionIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.construction-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.construction-logo {
    margin-bottom: 25px;
}

.construction-logo img {
    height: 110px;
    margin: 0 auto;
    object-fit: contain;
}

.construction-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.construction-description {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 35px;
}

.construction-description strong {
    color: var(--gold);
    font-weight: 700;
}

.construction-teaser {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.teaser-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.teaser-pill i {
    color: var(--gold);
}

.teaser-pill:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

#toggle-lock-btn {
    font-size: 0.75rem;
    padding: 12px 25px;
    border: 2px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

#toggle-lock-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
}

.password-form-wrapper {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
}

.password-form-wrapper.active {
    max-height: 120px;
    opacity: 1;
    visibility: visible;
    margin-top: 25px;
}

.password-input-group {
    display: flex;
    align-items: center;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    background: rgba(7, 18, 34, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.password-input-group:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.password-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
}

.password-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-password-submit {
    background: var(--gold);
    border: none;
    color: var(--navy);
    padding: 0 20px;
    height: 48px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-password-submit:hover {
    background: var(--white);
}

.gate-error-msg {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    margin-top: 10px;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gate-error-msg.visible {
    opacity: 1;
}

.construction-footer {
    margin-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 0.7rem;
    color: var(--gray-600);
}

.construction-footer a {
    color: var(--gold);
    font-weight: 700;
}

/* Animación de error (sacudida) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* Adaptación responsive de la compuerta */
@media (max-width: 576px) {
    .construction-container {
        padding: 40px 20px;
    }
    .construction-title {
        font-size: 1.8rem;
    }
    .construction-description {
        font-size: 0.85rem;
    }
    .teaser-pill {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}

