*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

:root{
    --nav-height:112px;
}

html, body{
    width:100%;
    overflow-x:hidden;
}

body{
    background:#f6f7f9;
    color:#222;
    padding-top:var(--nav-height);
}

body.modal-open{
    overflow:hidden;
}

/* NAVBAR */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:var(--nav-height);
    padding:0 60px;
    background:#ffffff;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    gap:30px;
}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.logo img{
    height:90px;
    width:auto;
    display:block;
}

/* MENU CENTRO */

.nav-menu{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:42px;
    flex:1;
    position:relative;
}

.nav-main-link{
    text-decoration:none;
    color:#202020;
    font-size:17px;
    font-weight:600;
    letter-spacing:0.3px;
    transition:color 0.25s ease;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    height:var(--nav-height);
    position:relative;
}

.nav-main-link:hover{
    color:#e67e22;
}

.nav-main-link.active{
    color:#e67e22;
}

.nav-dropdown{
    position:relative;
    display:flex;
    align-items:center;
    height:var(--nav-height);
}

.nav-dropdown-menu{
    position:absolute;
    top:calc(100% - 14px);
    left:50%;
    transform:translateX(-50%) translateY(14px);
    width:220px;
    min-width:220px;
    max-width:220px;
    background:#ffffff;
    border-radius:14px;
    padding:6px;
    box-shadow:0 14px 30px rgba(0,0,0,0.12);
    border:1px solid rgba(0,0,0,0.05);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:
        opacity 0.24s ease,
        transform 0.24s ease,
        visibility 0.24s ease;
    z-index:1300;
    overflow:hidden;
}

.nav-dropdown::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:18px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(-50%) translateY(0);
}

.nav-dropdown-menu a{
    display:block;
    text-decoration:none;
    color:#222;
    font-size:14px;
    font-weight:500;
    line-height:1.35;
    padding:10px 16px;
    white-space:normal;
    border-radius:10px;
    margin:2px 0;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.nav-dropdown-menu a:hover{
    background:#f4511e;
    color:#ffffff;
    padding-left:20px;
}

/* PILLS DERECHA */

.nav-pills{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
}

.pill-dropdown{
    position:relative;
}

.pill-btn{
    border:none;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 28px;
    border-radius:30px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:0.25s ease;
    white-space:nowrap;
}

.pill-blue{
    background:#0d5d8c;
    color:#fff;
}

.pill-blue:hover{
    background:#094c72;
}

.pill-orange{
    background:#f4511e;
    color:#fff;
}

.pill-orange:hover{
    background:#d84315;
}

.pill-dropdown-menu{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    width:210px;
    min-width:210px;
    max-width:210px;
    background:#ffffff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 14px 28px rgba(0,0,0,0.14);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:0.25s ease;
    z-index:1200;
    border:1px solid rgba(0,0,0,0.06);
    padding:6px;
}

.pill-dropdown::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:100%;
    height:16px;
}

.pill-dropdown.active .pill-dropdown-menu,
.pill-dropdown:hover .pill-dropdown-menu,
.pill-dropdown:focus-within .pill-dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.pill-dropdown-menu a{
    display:block;
    color:#1f1f1f;
    text-decoration:none;
    padding:10px 16px;
    font-size:14px;
    font-weight:600;
    border-bottom:none;
    border-radius:10px;
    margin:2px 0;
    transition:all 0.25s ease;
    background:#fff;
}

.pill-dropdown-menu a:last-child{
    border-bottom:none;
}

/* AQUI SE PINTAN AZULES LOS ITEMS DE ORIENTACIÓN MIGRATORIA */
.pill-dropdown-menu a:hover{
    background:#0d5d8c;
    color:#ffffff;
    padding-left:20px;
}

/* LOGIN */

.login-btn{
    background:#e84545;
    color:#fff;
    border:none;
    padding:12px 28px;
    border-radius:30px;
    cursor:pointer;
    font-weight:700;
    font-size:15px;
    transition:0.3s;
    white-space:nowrap;
    flex-shrink:0;
}

.login-btn:hover{
    background:#c93030;
}

/* HAMBURGUESA */

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    background:transparent;
    border:none;
    cursor:pointer;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    flex-shrink:0;
}

.menu-toggle span{
    display:block;
    width:24px;
    height:2px;
    background:#333;
    border-radius:2px;
}

/* MENU MOVIL */

.mobile-menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.35);
    opacity:0;
    visibility:hidden;
    transition:0.3s ease;
    z-index:1098;
}

.mobile-menu-overlay.active{
    opacity:1;
    visibility:visible;
}

.mobile-menu{
    position:fixed;
    top:0;
    right:-320px;
    width:300px;
    max-width:85%;
    height:100vh;
    background:#4a4a4a;
    color:#fff;
    z-index:1099;
    transition:right 0.35s ease;
    padding:26px 24px 40px;
    overflow-y:auto;
}

.mobile-menu.active{
    right:0;
}

.mobile-menu-close{
    background:none;
    border:none;
    color:#fff;
    font-size:38px;
    line-height:1;
    cursor:pointer;
    display:block;
    margin-left:auto;
    margin-bottom:25px;
}

.mobile-nav-links{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.mobile-nav-links > a,
.mobile-nav-group > a{
    text-decoration:none;
    color:#fff;
    font-size:20px;
    font-weight:500;
    line-height:1.3;
    transition:0.25s ease;
    display:block;
}

.mobile-nav-links > a:hover,
.mobile-nav-group > a:hover{
    color:#f1b631;
}

.mobile-nav-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.mobile-submenu{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding-left:14px;
    border-left:2px solid rgba(241,182,49,0.5);
}

.mobile-submenu a{
    text-decoration:none;
    color:rgba(255,255,255,0.82);
    font-size:15px;
    line-height:1.35;
    transition:0.25s ease;
}

.mobile-submenu a:hover{
    color:#f1b631;
}

/* HERO */

.proyectos-hero{
    min-height:300px;
    background:
    linear-gradient(rgba(8,39,55,0.75), rgba(8,39,55,0.75)),
    url('proyectos.png') center/cover no-repeat;
    display:flex;
    align-items:center;
    padding:0 90px;
}

.hero-content{
    display:flex;
    gap:20px;
    align-items:flex-start;
    max-width:900px;
}

.hero-line{
    width:4px;
    height:120px;
    background:#f1b631;
    border-radius:3px;
    flex-shrink:0;
}

.hero-content h1{
    color:white;
    font-size:60px;
    line-height:1;
    margin-bottom:15px;
    text-transform:uppercase;
}

.hero-content p{
    color:white;
    font-size:22px;
    line-height:1.6;
    text-align:justify;
    text-justify:inter-word;
}

/* PROYECTOS */

.proyectos-list{
    width:min(1180px, 90%);
    margin:70px auto;
    display:flex;
    flex-direction:column;
    gap:34px;
}

.project-block{
    display:block;
}

.project-capsule{
    position:relative;
    width:100%;
    min-height:360px;
    border:none;
    border-radius:34px;
    overflow:hidden;
    cursor:pointer;
    background:#0c2d3d;
    box-shadow:0 18px 40px rgba(0,0,0,0.14);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    display:block;
    text-align:left;
}

.project-capsule img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform 0.5s ease;
}

.project-capsule-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.18) 28%,
        rgba(0,0,0,0.56) 68%,
        rgba(0,0,0,0.84) 100%
    );
}

.project-capsule-inner{
    position:absolute;
    left:34px;
    right:34px;
    top:30px;
    bottom:28px;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.project-capsule-title{
    color:#ffffff;
    font-size:30px;
    line-height:1.22;
    font-weight:800;
    max-width:920px;
    display:block;
    text-wrap:balance;
    text-shadow:0 2px 10px rgba(0,0,0,0.25);
}

.project-capsule-label{
    color:#ffffff;
    font-size:18px;
    font-weight:700;
    letter-spacing:0.2px;
    display:block;
}

@media (hover: hover) and (pointer: fine){
    .project-capsule:hover{
        transform:translateY(-4px);
        box-shadow:0 24px 50px rgba(0,0,0,0.20);
    }

    .project-capsule:hover img{
        transform:scale(1.04);
    }
}

/* MODAL */

.project-modal{
    position:fixed;
    inset:0;
    z-index:3000;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity 0.25s ease, visibility 0.25s ease;
}

.project-modal.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.project-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(2px);
}

.project-modal-dialog{
    position:relative;
    width:min(900px, calc(100% - 32px));
    max-height:min(82vh, 760px);
    background:#ffffff;
    border-radius:28px;
    box-shadow:0 24px 60px rgba(0,0,0,0.22);
    z-index:2;
    overflow:hidden;
}

/* Scroll interno corregido:
   queda dentro del recuadro blanco y no invade los bordes redondeados */
.project-modal-scroll{
    padding:34px 44px 30px 34px;
    margin:8px 8px 8px 0;
    overflow-y:auto;
    overflow-x:hidden;
    max-height:calc(min(82vh, 760px) - 16px);
    border-radius:24px;
    scrollbar-width:thin;
    scrollbar-color:rgba(23,56,75,0.45) transparent;
    overscroll-behavior:contain;
}

.project-modal-scroll::-webkit-scrollbar{
    width:8px;
}

.project-modal-scroll::-webkit-scrollbar-track{
    background:transparent;
    margin:14px 0;
}

.project-modal-scroll::-webkit-scrollbar-thumb{
    background:rgba(23,56,75,0.42);
    border-radius:999px;
    border:2px solid #ffffff;
}

.project-modal-scroll::-webkit-scrollbar-thumb:hover{
    background:rgba(23,56,75,0.62);
}

.project-modal-close{
    position:absolute;
    top:14px;
    right:16px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#f2f2f2;
    color:#333;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    z-index:3;
    transition:0.25s ease;
}

.project-modal-close:hover{
    background:#e5e5e5;
}

.project-modal-kicker{
    color:#e67e22;
    font-size:14px;
    font-weight:800;
    letter-spacing:0.5px;
    text-transform:uppercase;
    margin-bottom:10px;
    padding-right:44px;
}

.project-modal-title{
    font-size:34px;
    line-height:1.2;
    color:#17384b;
    margin-bottom:20px;
    font-weight:800;
    padding-right:44px;
}

.project-modal-body p{
    font-size:18px;
    line-height:1.8;
    color:#333;
    margin-bottom:16px;
    text-align:justify;
    text-justify:inter-word;
}

/* FOOTER */

.site-footer{
    width:100%;
    margin-top:0;
    background:
        linear-gradient(
            90deg,
            rgba(11,93,139,0.08) 0%,
            rgba(11,93,139,0.05) 30%,
            rgba(246,163,0,0.06) 60%,
            rgba(255,74,31,0.07) 100%
        ),
        #ffffff;
    color:#1f1f1f;
    position:relative;
    overflow:hidden;
    border-top:1px solid rgba(0,0,0,0.08);
}

.footer-stripe{
    height:4px;
    background:linear-gradient(
        90deg,
        #0b5d8b 0%,
        #0b5d8b 35%,
        #f6a300 65%,
        #ff4a1f 100%
    );
}

.footer-column a{
    color:#333;
}

.stripe-blue{
    background:#0b5d8b;
}

.stripe-orange{
    background:#f6a300;
}

.stripe-red{
    background:#ff4a1f;
}

.footer-main{
    width:min(1200px, 92%);
    margin:0 auto;
    padding:32px 0 22px;
    display:grid;
    grid-template-columns:1.25fr 0.75fr;
    gap:40px;
    align-items:center;
}

.footer-main-compact{
    grid-template-columns:1.25fr 0.75fr;
}

.footer-brand{
    position:relative;
}

.compact-brand{
    display:flex;
    align-items:center;
    gap:22px;
}

.footer-logo-box{
    width:220px;
    background:#ffffff;
    border-radius:20px;
    padding:18px 20px;
    box-shadow:0 10px 24px rgba(0,0,0,0.10);
    margin-bottom:0;
    flex-shrink:0;
    border:1px solid rgba(0,0,0,0.06);
}

.footer-logo-box img{
    width:100%;
    display:block;
}

.footer-brand-text{
    max-width:560px;
}

.footer-brand p{
    font-size:15px;
    line-height:1.7;
    color:#555;
    max-width:none;
}

.footer-contact h3{
    font-size:21px;
    line-height:1.1;
    font-weight:800;
    margin-bottom:14px;
    color:#1f1f1f;
}

.footer-contact a{
    display:block;
    color:#333;
    text-decoration:none;
    font-size:15px;
    line-height:1.7;
    margin-bottom:5px;
    transition:all 0.25s ease;
}

.footer-contact a:hover{
    color:#ff6a00;
}

.footer-social{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.footer-social a{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:rgba(11,93,139,0.08);
    color:#0b5d8b;
    font-size:16px;
    transition:all 0.25s ease;
}

.footer-social a:hover{
    background:#ff6a00;
    color:#fff;
    transform:translateY(-2px);
}

.footer-bottom{
    width:min(1200px, 92%);
    margin:0 auto;
    padding:14px 0 18px;
    border-top:1px solid rgba(0,0,0,0.10);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.footer-bottom p{
    font-size:14px;
    color:#666;
}

.footer-bottom-links{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.footer-bottom-links a{
    color:#444;
    text-decoration:none;
    font-size:14px;
    transition:color 0.25s ease;
}

.footer-bottom-links a:hover{
    color:#ff6a00;
}

.site-footer::before,
.site-footer::after{
    display:none;
}

/* TABLET */

@media (max-width: 1100px){

    :root{
        --nav-height:92px;
    }

    .navbar{
        padding:0 30px;
        gap:18px;
    }

    .logo img{
        height:70px;
    }

    .nav-menu{
        gap:24px;
    }

    .nav-main-link{
        font-size:15px;
    }

    .nav-dropdown-menu{
        width:220px;
        min-width:220px;
        max-width:220px;
    }

    .pill-btn,
    .login-btn{
        padding:11px 20px;
        font-size:14px;
    }

    .proyectos-hero{
        min-height:280px;
        padding:0 30px;
    }

    .hero-line{
        height:95px;
    }

    .hero-content h1{
        font-size:46px;
        margin-bottom:12px;
    }

    .hero-content p{
        font-size:18px;
        line-height:1.55;
    }

    .proyectos-list{
        width:92%;
        margin:50px auto 60px;
        gap:30px;
    }

    .project-capsule{
        min-height:310px;
        border-radius:28px;
    }

    .project-capsule-inner{
        left:26px;
        right:26px;
        top:24px;
        bottom:24px;
    }

    .project-capsule-title{
        font-size:24px;
        line-height:1.24;
    }

    .project-capsule-label{
        font-size:17px;
    }

    .project-modal-title{
        font-size:28px;
    }

    .project-modal-body p{
    font-size:18px;
    line-height:1.8;
    color:#333;
    margin-bottom:16px;
    text-align:justify;
    text-justify:inter-word;
}

    .footer-main{
        grid-template-columns:1fr;
        gap:26px;
        align-items:start;
    }

    .compact-brand{
        align-items:flex-start;
    }

    .footer-brand-text{
        max-width:100%;
    }
}

@media (max-width: 900px){
    .footer-main-compact{
        grid-template-columns:1fr;
    }
}

/* MOVIL */

@media (max-width: 768px){

    :root{
        --nav-height:76px;
    }

    .navbar{
        padding:0 16px;
        box-shadow:none;
        gap:10px;
    }

    .logo img{
        height:48px;
    }

    .nav-menu{
        display:none;
    }

    .nav-pills{
        margin-left:auto;
        gap:8px;
    }

    .pill-dropdown,
    .pill-orange,
    .login-btn{
        display:none;
    }

    .menu-toggle{
        display:flex;
        width:40px;
        height:40px;
    }

    .mobile-nav-links > a,
    .mobile-nav-group > a{
        font-size:18px;
    }

    .mobile-submenu a{
        font-size:14px;
    }

    .proyectos-hero{
        min-height:230px;
        padding:0 20px;
    }

    .hero-content{
        gap:12px;
        max-width:100%;
    }

    .hero-line{
        height:78px;
    }

    .hero-content h1{
        font-size:34px;
        line-height:1.03;
        margin-bottom:10px;
    }

    .hero-content p{
        font-size:15px;
        line-height:1.5;
        text-align:left;
    }

    .proyectos-list{
        width:100%;
        padding:0 14px;
        margin:30px 0 45px;
        gap:24px;
    }

    .project-capsule{
        min-height:230px;
        border-radius:24px;
    }

    .project-capsule-inner{
        left:18px;
        right:18px;
        top:18px;
        bottom:18px;
    }

    .project-capsule-title{
        font-size:18px;
        line-height:1.3;
        text-wrap:pretty;
    }

    .project-capsule-label{
        font-size:15px;
        text-align:left;
    }

    .mobile-menu{
        width:280px;
        padding:22px 20px 34px;
    }

    .mobile-menu-close{
        font-size:34px;
        margin-bottom:20px;
    }

    .mobile-nav-links{
        gap:16px;
    }

    .project-modal{
        align-items:center;
        padding:10px 0;
    }

    .project-modal-dialog{
        width:calc(100% - 22px);
        max-height:calc(100dvh - 28px);
        border-radius:20px;
    }

    .project-modal-scroll{
        padding:24px 26px 22px 18px;
        margin:6px 6px 6px 0;
        max-height:calc(100dvh - 40px);
        border-radius:17px;
    }

    .project-modal-scroll::-webkit-scrollbar{
        width:7px;
    }

    .project-modal-scroll::-webkit-scrollbar-track{
        margin:12px 0;
    }

    .project-modal-close{
        top:10px;
        right:10px;
        width:38px;
        height:38px;
        font-size:24px;
    }

    .project-modal-kicker{
        font-size:12px;
        margin-bottom:8px;
        padding-right:38px;
    }

    .project-modal-title{
        font-size:22px;
        line-height:1.25;
        margin-bottom:14px;
        padding-right:38px;
    }

    .project-modal-body p{
    font-size:18px;
    line-height:1.8;
    color:#333;
    margin-bottom:16px;
    text-align:justify;
    text-justify:inter-word;
}

    .footer-stripe{
        height:4px;
    }

    .footer-main{
        width:100%;
        padding:24px 20px 18px;
        gap:20px;
    }

    .compact-brand{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
    }

    .footer-logo-box{
        width:160px;
        border-radius:16px;
        padding:10px 12px;
        margin-bottom:0;
    }

    .footer-brand p{
        font-size:14px;
        line-height:1.6;
    }

    .footer-contact h3{
        font-size:19px;
        margin-bottom:10px;
    }

    .footer-contact a{
        font-size:14px;
        margin-bottom:4px;
    }

    .footer-social{
        gap:8px;
        margin-top:12px;
    }

    .footer-social a{
        width:36px;
        height:36px;
        font-size:15px;
    }

    .footer-bottom{
        width:100%;
        padding:12px 20px 16px;
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .footer-bottom p,
    .footer-bottom-links a{
        font-size:13px;
    }
}

/* MOVIL PEQUEÑO */

@media (max-width: 480px){

    :root{
        --nav-height:68px;
    }

    .navbar{
        padding:0 14px;
    }

    .logo img{
        height:40px;
    }

    .login-btn{
        padding:8px 16px;
        font-size:12px;
        border-radius:20px;
    }

    .menu-toggle{
        width:38px;
        height:38px;
    }

    .menu-toggle span{
        width:22px;
    }

    .mobile-nav-links > a,
    .mobile-nav-group > a{
        font-size:17px;
    }

    .mobile-submenu a{
        font-size:13px;
    }

    .proyectos-hero{
        min-height:210px;
        padding:0 16px;
    }

    .hero-content{
        gap:10px;
    }

    .hero-line{
        height:64px;
        width:3px;
    }

    .hero-content h1{
        font-size:28px;
        margin-bottom:10px;
    }

    .hero-content p{
        font-size:14px;
        line-height:1.45;
    }

    .proyectos-list{
        padding:0 12px;
        gap:20px;
        margin:24px 0 36px;
    }

    .project-capsule{
        min-height:190px;
        border-radius:20px;
    }

    .project-capsule-inner{
        left:16px;
        right:16px;
        top:16px;
        bottom:16px;
    }

    .project-capsule-title{
        font-size:15px;
        line-height:1.32;
    }

    .project-capsule-label{
        font-size:14px;
    }

    .mobile-menu{
        width:260px;
        padding:20px 18px 30px;
    }

    .mobile-menu-close{
        font-size:32px;
        margin-bottom:18px;
    }

    .project-modal-dialog{
        width:calc(100% - 18px);
        border-radius:18px;
    }

    .project-modal-scroll{
        padding:22px 22px 18px 14px;
        margin:5px 5px 5px 0;
        max-height:calc(100dvh - 34px);
        border-radius:15px;
    }

    .project-modal-title{
        font-size:18px;
    }

    .project-modal-body p{
    font-size:18px;
    line-height:1.8;
    color:#333;
    margin-bottom:16px;
    text-align:justify;
    text-justify:inter-word;
}

    .footer-main{
        padding:22px 16px 16px;
    }

    .footer-logo-box{
        width:140px;
    }

    .footer-brand p{
        font-size:13px;
    }

    .footer-contact h3{
        font-size:18px;
    }

    .footer-contact a{
        font-size:13px;
        margin-bottom:4px;
    }

    .footer-bottom{
        padding:10px 16px 14px;
    }
}


/* NUEVA ESTRUCTURA DE PROYECTOS: TEXTO IZQUIERDA / IMAGEN DERECHA */

.project-card{
    width:100%;
    border-radius:30px;
    overflow:hidden;
    background:#ffffff;
    box-shadow:0 18px 40px rgba(0,0,0,0.12);
}

.project-card-content{
    display:grid;
    grid-template-columns:1fr 1.15fr;
    min-height:330px;
}

.project-card-text{
    background:#f6eac8;
    padding:52px 48px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
}

.project-card-text h2{
    color:#111;
    font-size:30px;
    line-height:1.25;
    font-weight:800;
    margin:0 0 28px;
}

.project-btn{
    border:none;
    cursor:pointer;
    width:auto;
    min-height:auto;
    background:#0d5d8c;
    color:#ffffff;
    padding:13px 28px;
    border-radius:999px;
    font-size:16px;
    font-weight:800;
    box-shadow:none;
    transition:0.25s ease;
}

.project-btn:hover{
    background:#094c72;
    transform:translateY(-2px);
}

.project-card-image{
    min-height:330px;
}

.project-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* Anula estilos anteriores de cápsula solo dentro del nuevo botón */

.project-card .project-capsule{
    position:static;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:auto;
    width:auto;
    text-align:center;
    overflow:visible;
}

/* RESPONSIVE */

@media(max-width:1100px){
    .project-card-content{
        grid-template-columns:1fr 1fr;
        min-height:300px;
    }

    .project-card-text{
        padding:42px 36px;
    }

    .project-card-text h2{
        font-size:24px;
    }

    .project-card-image{
        min-height:300px;
    }
}

@media(max-width:768px){
    .project-card-content{
        grid-template-columns:1fr;
    }

    .project-card-image{
        order:-1;
        min-height:240px;
    }

    .project-card-text{
        padding:30px 24px;
    }

    .project-card-text h2{
        font-size:21px;
        line-height:1.3;
    }
}

@media(max-width:480px){
    .project-card{
        border-radius:22px;
    }

    .project-card-image{
        min-height:200px;
    }

    .project-card-text{
        padding:24px 20px;
    }

    .project-card-text h2{
        font-size:18px;
    }

    .project-btn{
        font-size:14px;
        padding:11px 22px;
    }
}

/* REDES SOCIALES */

.social-bar{
    position:fixed;
    top:154px;
    left:0;
    display:flex;
    flex-direction:column;
    z-index:999;

    opacity:1;
    visibility:visible;
    transform:translateX(0);

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease,
        transform 0.8s ease;
}

.social-bar.hidden{
    opacity:0;
    visibility:hidden;
    transform:translateX(-30px) scale(0.95);
    pointer-events:none;
}

.social-btn{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:all 0.3s ease;
}

.social-btn i{
    color:#ffffff;
    font-size:26px;
}

.social-btn.facebook{ background:#8da6c2; }
.social-btn.tiktok{ background:#3a3a3a; }
.social-btn.youtube{ background:#e7b1b1; }
.social-btn.instagram{ background:#c9a7c7; }

.social-btn.facebook:hover{ background:#1877f2; }
.social-btn.tiktok:hover{ background:#000000; }
.social-btn.youtube:hover{ background:#ff0000; }
.social-btn.instagram:hover{ background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7); }

.social-btn:hover{
    transform:translateX(3px);
}

/* REDES SOCIALES RESPONSIVE */

@media (max-width: 768px){

    .social-bar{
        top:92px;
    }

    .social-btn{
        width:38px;
        height:38px;
    }

    .social-btn i{
        font-size:20px;
    }
}

@media (max-width: 480px){

    .social-bar{
        top:86px;
    }

    .social-btn{
        width:34px;
        height:34px;
    }

    .social-btn i{
        font-size:18px;
    }
}

/* =====================================================
   NAVBAR CON LOGIN
===================================================== */

.navbar {
    display: grid;
    grid-template-columns: 250px minmax(420px, 1fr) auto;
    align-items: center;

    width: 100%;
    height: var(--nav-height);

    padding: 0 38px;
    column-gap: 18px;

    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    box-sizing: border-box;
}


/* El menú central permanece centrado */

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;

    width: max-content;
    max-width: 100%;

    margin: 0 auto;

    transform: none;
}


/* =====================================================
   ZONA LOGIN + ORIENTACIÓN MIGRATORIA
===================================================== */

.nav-pills {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin: 0;

    flex-shrink: 0;
}


/* La hamburguesa no debe ocupar espacio en escritorio */

.nav-actions {
    display: none;
}


/* =====================================================
   BOTÓN LOGIN
===================================================== */

.navbar-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;
    padding: 0 23px;

    background: #f58220;
    color: #ffffff;

    border: none;
    border-radius: 30px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;
    flex-shrink: 0;

    box-shadow: 0 5px 14px rgba(245, 130, 32, 0.22);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.navbar-login-btn i {
    font-size: 14px;
}


.navbar-login-btn:hover {
    background: #dc6d10;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(245, 130, 32, 0.32);
}


/* Botón azul ligeramente más compacto */

.nav-pills .pill-btn {
    padding-left: 22px;
    padding-right: 22px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1200px) {

    .navbar {
        grid-template-columns: 210px minmax(350px, 1fr) auto;

        padding: 0 24px;
        column-gap: 12px;
    }


    .nav-menu {
        gap: 25px;
    }


    .nav-main-link {
        font-size: 15px;
    }


    .navbar-login-btn {
        min-height: 42px;

        padding: 0 17px;

        font-size: 14px;
    }


    .nav-pills {
        gap: 8px;
    }


    .nav-pills .pill-btn {
        padding-left: 17px;
        padding-right: 17px;

        font-size: 14px;
    }

}


/* =====================================================
   TELÉFONO
===================================================== */

@media (max-width: 768px) {

    .navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;

        padding: 0 14px !important;

        gap: 7px !important;

        box-sizing: border-box !important;
    }


    /* Logo a la izquierda */

    .logo {
        margin-right: auto;

        flex-shrink: 0;
    }


    /* Ocultar navegación de escritorio */

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


    /* Zona derecha */

    .nav-pills {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        margin: 0 !important;

        gap: 0 !important;

        flex-shrink: 0;
    }


    /* Ocultar Orientación Migratoria en móvil */

    .nav-pills .pill-dropdown {
        display: none !important;
    }


    /* Login visible */

    .navbar-login-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        min-height: 38px;

        padding: 0 15px;

        border-radius: 22px;

        font-size: 13px;

        gap: 6px;

        box-shadow: none;

        flex-shrink: 0;
    }


    .navbar-login-btn i {
        font-size: 12px;
    }


    /* Hamburguesa al lado del login */

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        flex-shrink: 0;
    }


    .menu-toggle {
        display: flex !important;

        width: 40px;
        height: 40px;

        padding: 0 !important;
        margin: 0 !important;

        align-items: center;
        justify-content: center;

        flex-direction: column;

        gap: 5px;

        flex-shrink: 0;
    }


    .menu-toggle span {
        display: block;

        width: 24px;
        height: 2px;

        margin: 0;

        background: #333333;

        border-radius: 2px;
    }

}


/* =====================================================
   TELÉFONOS PEQUEÑOS
===================================================== */

@media (max-width: 480px) {

    .navbar {
        padding: 0 10px !important;

        gap: 3px !important;
    }


    .navbar-login-btn {
        min-height: 35px;

        padding: 0 12px;

        font-size: 12px;

        gap: 5px;
    }


    .navbar-login-btn i {
        font-size: 11px;
    }


    .menu-toggle {
        width: 37px;
        height: 37px;
    }


    .menu-toggle span {
        width: 22px;
    }

}


/* =====================================================
   TELÉFONOS MUY ESTRECHOS
===================================================== */

@media (max-width: 370px) {

    .navbar {
        padding: 0 8px !important;
    }


    .navbar-login-btn {
        min-height: 34px;

        padding: 0 10px;

        font-size: 11px;
    }


    .navbar-login-btn i {
        display: none;
    }


    .menu-toggle {
        width: 34px;
        height: 34px;
    }


    .menu-toggle span {
        width: 20px;
    }

}