/* ... Previous CSS content ... */

/* Base & Variables from Briefing Document */
:root {
    /* Brand Colors */
    --blue: #0A3D7A;
    --blue-mid: #1A5CA8;
    --accent: #1E90FF;
    --blue-light: #EBF2FB;
    --text-dark: #0D1B2A;
    --muted: #5A6A7A;
    --off-white: #F5F7FA;
    --border: #DDE4EE;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;

    /* Structure */
    --max-width: 1400px;
    --nav-height: 85px;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4rem;
}

.container-narrow {
    max-width: 1100px;
}

/* Typography styles */
h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 600;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 600;
    color: var(--blue);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 61, 122, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 36px;
    display: block;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: white;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--off-white);
    min-width: 180px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.15);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
    top: 100%;
    left: 0;
    padding: 10px 0;
    margin-top: 0;
    padding-top: 10px;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--off-white) transparent;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 24px;
    display: block;
    font-weight: 400;
    font-size: 0.95rem;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--blue-light);
    color: var(--blue);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(30, 144, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0A7EFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('uap-hero.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(10, 61, 122, 0.95) 0%,
            rgba(10, 61, 122, 0.85) 40%,
            rgba(10, 61, 122, 0) 80%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(0deg, rgba(10, 61, 122, 0.5) 0%, transparent 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-top: var(--nav-height);
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.hero-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: slideUpFade 1s ease-out forwards;
}

.badge {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero p.subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-quote {
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.hero-quote p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 0.2rem;
}

.hero-quote strong {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* =========================================================================
   Reusable Urecsys Style Image Panel Component
   (Can be applied to any section to give it the Hero split-look design)
   ========================================================================= */
.urecsys-image-panel {
    position: relative;
    width: 100%;
    /* Keep min-height flexible or adapt with padding */
    padding: 8rem 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Dark Gradient Overlay (From left to right) */
.urecsys-image-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(10, 61, 122, 0.95) 0%,
            rgba(10, 61, 122, 0.85) 40%,
            rgba(10, 61, 122, 0) 100%);
    z-index: 1;
}

/* Ensure bottom is slightly darkened to ground text on smaller screens */
.urecsys-image-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(0deg, rgba(10, 61, 122, 0.5) 0%, transparent 100%);
    z-index: 1;
}

.urecsys-panel-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.urecsys-panel-content {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
}

.urecsys-panel-content h2,
.urecsys-panel-content h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.urecsys-panel-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Sections Global */
section {
    padding: 6rem 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/* 2. Stats Section */
.stats-section {
    background-color: var(--blue-mid);
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 1rem;
}

.stat-number {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.stat-source {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* 3. About Section */
.about-section {
    background-color: white;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.origin-quote {
    padding-left: 2rem;
    border-left: 4px solid var(--blue);
}

.origin-quote p {
    font-size: 1.15rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.origin-quote strong {
    color: var(--text-dark);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.value-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--blue);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Timeline */
.timeline-container {
    margin-top: 6rem;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--border);
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    width: 18%;
    padding-top: 55px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: white;
    border: 3px solid var(--blue-mid);
    border-radius: 50%;
    transition: var(--transition);
}

.timeline-item.active::before {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.2);
}

.timeline-item .year {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: var(--blue);
    font-size: 1.1rem;
}

.timeline-item.active .year {
    color: var(--accent);
}

.timeline-item .content {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* 4. La Necesidad Section */
.necesidad-section {
    background-color: var(--off-white);
}

.necesidad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.necesidad-card {
    background-color: var(--blue);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(10, 61, 122, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.necesidad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 61, 122, 0.25);
}

.nec-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.nec-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.nec-source {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. Soluciones / Tecnología Section */
.solucion-section {
    background-color: white;
}

.solucion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.solucion-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solucion-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 1rem 0 3rem 0;
}

.diferencial-item {
    margin-bottom: 2rem;
}

.diferencial-item h3 {
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diferencial-item p {
    color: var(--muted);
    font-size: 0.95rem;
    padding-left: 1.5rem;
}

.solucion-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solucion-image-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.solucion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metrics-panel {
    background-color: var(--blue);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
}

.metric {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.metric .value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.metric .desc {
    font-size: 0.85rem;
    opacity: 0.8;
    max-width: 150px;
    line-height: 1.4;
    margin: 0 auto;
}

/* 6. Sectores Section */
.sectores-section {
    background-color: var(--off-white);
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 3rem;
}

.sector-card {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: var(--transition);
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 61, 122, 0.95) 0%, rgba(10, 61, 122, 0) 100%);
    opacity: 0.8;
    transition: var(--transition);
    z-index: 1;
}

.sector-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem;
    color: white;
    transform: translateY(0);
    transition: var(--transition);
}

.sector-emoji {
    display: none;
}

.sector-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.sector-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
}

.sector-card:hover::before {
    opacity: 1;
}

.sector-card:hover .sector-content {
    transform: translateY(0);
}

/* 7. El Equipo Section */
.equipo-section {
    background-color: white;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.equipo-card {
    text-align: center;
}

.equipo-image-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    position: relative;
    border: 4px solid var(--blue-light);
}

.equipo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.equipo-card h3 {
    margin-bottom: 0.2rem;
    color: var(--blue);
}

.equipo-card .role {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.equipo-card .bio {
    font-size: 0.95rem;
    color: var(--muted);
}

/* 8. Clientes Section */
.clientes-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pill {
    background-color: #E2E8F0;
    color: #475569;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.pill:hover {
    background-color: var(--blue);
    color: white;
}

/* 9. Modelo HaaS Section */
.haas-section {
    background-color: white;
}

.haas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.haas-card {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.haas-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.haas-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue-light);
    /* Assuming the numbers are large background/faded items, else we can change */
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    opacity: 0.5;
}

.haas-card h3 {
    color: var(--blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.haas-card p {
    color: var(--muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}


/* 10. Forms / Contact Section */
.contacto-section {
    background-color: var(--off-white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 11. Footer */
.footer {
    background-color: #0d1b2a;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-contact {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero::before {
        background: linear-gradient(90deg,
                rgba(10, 61, 122, 0.95) 0%,
                rgba(10, 61, 122, 0.9) 60%,
                rgba(10, 61, 122, 0.4) 100%);
    }

    .nav-links,
    .nav-container>.btn-primary {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

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

    .timeline {
        flex-direction: column;
        padding-left: 30px;
    }

    .timeline::before {
        width: 3px;
        height: 100%;
        top: 0;
        left: 9px;
    }

    .timeline-item {
        width: 100%;
        padding-top: 0;
        padding-left: 40px;
        margin-bottom: 2rem;
    }

    .timeline-item::before {
        left: 0;
        top: 5px;
        transform: none;
    }

    .timeline-item .year {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .timeline-item .content {
        text-align: left;
    }

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

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

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

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

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

    .contacto-wrapper {
        grid-template-columns: 1fr !important;
        padding: 3rem !important;
        gap: 3rem !important;
    }

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

@media (max-width: 768px) {
    .hero::before {
        background: linear-gradient(180deg,
                rgba(10, 61, 122, 0.8) 0%,
                rgba(10, 61, 122, 0.95) 100%);
    }

    .hero {
        background-position: center center;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p.subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .metrics-panel {
        flex-direction: column;
        gap: 2rem;
    }

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

    .contacto-wrapper {
        padding: 2rem !important;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}