/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #cc3333;
    color: white;
    padding: 0.6rem 1.2rem;
    z-index: 10000;
    transition: top 0.2s ease;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.skip-link:focus {
    top: 20px;
}

:root {
    --primary: #1f2937;
    --primary-red: #cc3333;
    --dark-grey: #111827;
    --light-grey: #f3f4f6;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #ffffff;
    color: var(--dark-grey);
    line-height: 1.6;
}

/* Header & Navegación */
header {
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--primary-red);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-auth {
    background: var(--primary-red) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.btn-auth::after {
    display: none !important;
}

.btn-auth:hover {
    background: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Franja Negra Superior */
.top-franja {
    background-color: #0c0f17;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.4;
}

.top-franja-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #f1f5f9;
}

.top-franja-dot {
    width: 7px;
    height: 7px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-red);
    flex-shrink: 0;
}

.top-franja-right {
    color: #94a3b8;
}

/* Hero Banner */
.page-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.hero-title-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title-container h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-title-container p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: #e2e8f0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Main Content Container */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.introduction-block {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 5rem;
}

.introduction-block h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.introduction-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background-color: var(--primary-red);
}

.introduction-block p {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.8;
}

/* Pillars: Mission & Vision */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(204, 51, 51, 0.08);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.pillar-card p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Footer Enriquecido */
footer {
    background: #0f172a;
    color: #9ca3af;
    padding: 4.5rem 2rem 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.3fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand-column h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.footer-brand-sub {
    display: block;
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-socials a:hover {
    color: #ffffff;
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 0.75rem;
}

.footer-links-list a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    font-size: 0.88rem;
    color: #d1d5db;
}

.footer-contact-list li {
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.footer-contact-list strong {
    color: white;
    font-weight: 600;
}

.footer-map-wrapper {
    margin-top: 0.75rem;
    position: relative;
}

.btn-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.35rem;
}

.btn-map-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

/* Hamburguesa del Menú Móvil */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1200;
    outline: none;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: var(--primary-red);
}
.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: var(--primary-red);
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .top-franja {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.65rem 1rem;
        text-align: center;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo svg {
        height: 48px !important;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 3px solid var(--primary-red);
        padding: 1.25rem 1.5rem;
        gap: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1100;
        text-align: left;
        align-items: flex-start;
        box-sizing: border-box;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-menu li {
        width: 100%;
        list-style: none;
    }

    .nav-menu a {
        display: block;
        font-size: 0.85rem !important;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .nav-menu a::after {
        display: none !important;
    }

    .nav-menu li:last-child a, .nav-menu li .btn-auth {
        border-bottom: none;
    }

    .nav-menu .btn-auth {
        text-align: center;
        background: var(--primary-red) !important;
        color: white !important;
        margin-top: 0.5rem;
        border-radius: 6px;
        padding: 0.75rem 1rem !important;
        display: block !important;
        width: 100%;
    }

    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        color: #64748b;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .nav-menu {
        gap: 1rem;
    }
    .nav-menu a {
        font-size: 0.72rem;
    }
    .logo svg {
        height: 55px !important;
    }
}
