:root{
    --primary:#18c7d6;
    --primary-dark:#0b8fa3;
    --secondary:#1f5f8f;
    --dark:#0b2238;
    --dark-2:#102f4b;
    --text:#1f3448;
    --muted:#6f8496;
    --light:#eef9fb;
    --white:#ffffff;
    --green:#7cc242;
    --gold:#f6b73c;
    --shadow:0 22px 55px rgba(8,34,56,.22);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI', Arial, sans-serif;
    color:var(--text);
    background:#fff;
}

.container{
    width:min(1180px, 92%);
    margin:auto;
}

.header{
    position:fixed;
    top:0;
    width:100%;
    z-index:1000;
    background:linear-gradient(90deg,#071b2c,#173e5e,#0b2238);
    backdrop-filter:blur(14px);
    box-shadow:0 8px 30px rgba(0,0,0,.18);
}

.nav{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo img{
    height:54px;
}

.menu{
    display:flex;
    gap:28px;
}

.menu a{
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.btn-nav,
.btn-primary{
    background:linear-gradient(135deg,#18c7d6,#0b8fa3);
    color:white;
    padding:13px 24px;
    border-radius:40px;
    text-decoration:none;
    font-weight:800;
    border:none;
    display:inline-block;
    box-shadow:0 12px 28px rgba(24,199,214,.35);
}

.btn-secondary{
    color:white;
    padding:13px 24px;
    border-radius:40px;
    text-decoration:none;
    font-weight:700;
    border:1px solid rgba(255,255,255,.5);
}

.btn-menu{
    display:none;
    background:none;
    border:none;
    color:white;
    font-size:26px;
}

.hero{
    min-height:100vh;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    padding-top:90px;
}

.hero-bg{
    position:absolute;
    inset:0;
    background:url("../img/hero/p2.png") center/cover no-repeat;
    animation:heroZoom 12s infinite alternate ease-in-out;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 85% 20%, rgba(24,199,214,.28), transparent 28%),
        linear-gradient(90deg,rgba(8,34,56,.96),rgba(31,95,143,.72),rgba(238,249,251,.65));
}

.hero-content{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    align-items:center;
    gap:50px;
}

.tag{
    display:inline-block;
    color:white;
    background:rgba(40,184,201,.25);
    border:1px solid rgba(40,184,201,.5);
    padding:9px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    margin-bottom:20px;
}

.tag.dark{
    color:var(--primary-dark);
    background:rgba(40,184,201,.12);
}

.hero h1{
    color:white;
    font-size:clamp(42px,6vw,78px);
    line-height:1.02;
    margin-bottom:22px;
}

.hero p{
    color:rgba(255,255,255,.86);
    font-size:19px;
    max-width:650px;
    margin-bottom:32px;
}

.hero-actions{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.hero-stats{
    display:flex;
    gap:16px;
    margin-top:40px;
    flex-wrap:wrap;
}

.hero-stats div{
    background:rgba(255,255,255,.14);
    border:1px solid rgba(24,199,214,.38);
    backdrop-filter:blur(12px);
    padding:18px 24px;
    border-radius:18px;
    color:white;
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.hero-stats strong{
    display:block;
    font-size:24px;
}

.hero-stats span{
    font-size:13px;
    color:rgba(255,255,255,.75);
}

.hero-card{
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.2);
    border-radius:40px;
    padding:20px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(10px);
}

.hero-card img{
    width:100%;
    display:block;
    border-radius:30px;
}

.section{
    padding:100px 0;
}

.section-title{
    text-align:center;
    max-width:760px;
    margin:0 auto 50px;
}

.section-title span{
    color:var(--primary-dark);
    font-weight:800;
    text-transform:uppercase;
    font-size:13px;
}

.section-title h2,
.offer h2,
.contact h2{
    font-size:clamp(32px,4vw,52px);
    color:var(--dark);
    margin-top:12px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.card{
    background:white;
    padding:34px 26px;
    border-radius:26px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow);
}

.card i{
    font-size:38px;
    color:#18c7d6;
    margin-bottom:20px;
}

.card h3{
    color:var(--dark);
    margin-bottom:12px;
}

.card p{
    color:var(--muted);
    line-height:1.6;
}

.offer{
    background:
        radial-gradient(circle at 10% 20%, rgba(24,199,214,.18), transparent 30%),
        linear-gradient(135deg,#eef9fb,#ffffff);
    padding:100px 0;
}
.offer-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.offer p,
.contact p{
    color:var(--muted);
    line-height:1.7;
    margin:20px 0;
    font-size:18px;
}

.list{
    list-style:none;
    margin:25px 0 35px;
}

.list li{
    margin-bottom:14px;
    font-weight:600;
}

.list i{
    color:var(--primary);
    margin-right:10px;
}

.price-box{
    background:var(--dark);
    border-radius:34px;
    padding:35px;
    box-shadow:var(--shadow);
}

.price-box img{
    width:100%;
    display:block;
    margin-bottom:18px;
}

.gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.gallery img{
    width:100%;
    height:270px;
    object-fit:cover;
    border-radius:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.contact{
    background:var(--dark);
    color:white;
    padding:100px 0;
}

.contact h2{
    color:white;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:start;
}

.form{
    background:white;
    padding:34px;
    border-radius:28px;
    box-shadow:var(--shadow);
}

.form input,
.form select,
.form textarea{
    width:100%;
    padding:16px;
    margin-bottom:16px;
    border:1px solid #dce7eb;
    border-radius:14px;
    font-size:15px;
    outline:none;
}

.form textarea{
    min-height:120px;
    resize:none;
}

.form button{
    width:100%;
    border:none;
    padding:16px;
    border-radius:16px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:white;
    font-weight:800;
    cursor:pointer;
}

.footer{
    background:linear-gradient(90deg,#071b2c,#102f4b,#071b2c);
    color:white;
    padding:45px 0;
}

.footer-grid{
    display:flex;
    justify-content:space-between;
    gap:30px;
}

.footer img{
    height:55px;
    margin-bottom:15px;
}

.footer p{
    color:rgba(255,255,255,.7);
}

.whatsapp{
    position:fixed;
    right:22px;
    bottom:22px;
    width:62px;
    height:62px;
    border-radius:50%;
    background:#25D366;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    z-index:9999;
    text-decoration:none;
    box-shadow:0 12px 30px rgba(37,211,102,.4);
}

@keyframes heroZoom{
    from{transform:scale(1);}
    to{transform:scale(1.08);}
}

@media(max-width:900px){
    .menu,
    .btn-nav{
        display:none;
    }

    .btn-menu{
        display:block;
    }

    .menu.active{
        display:flex;
        position:absolute;
        top:82px;
        left:0;
        width:100%;
        background:#071b2c;
        flex-direction:column;
        padding:25px;
    }

    .hero-content,
    .offer-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }

    .hero-card{
        display:none;
    }

    .cards{
        grid-template-columns:1fr;
    }

    .gallery{
        grid-template-columns:1fr;
    }

    .footer-grid{
        flex-direction:column;
    }

    .hero{
        padding-top:120px;
        padding-bottom:70px;
    }
}


.menu a{
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    position:relative;
    transition:.35s ease;
    padding:10px 0;
}

.menu a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-4px;
    width:0%;
    height:2px;
    background:#18c7d6;
    transition:.35s ease;
    border-radius:20px;
}

.menu a:hover{
    color:#18c7d6;
    transform:translateY(-2px);
}

.menu a:hover::after{
    width:100%;
}


.btn-nav{
    position:relative;
    overflow:hidden;
    transition:.4s ease;
}

.btn-nav::before{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.18);
    transition:.5s;
    transform:skewX(-25deg);
}

.btn-nav:hover::before{
    left:120%;
}

.btn-nav:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:
        0 18px 35px rgba(24,199,214,.45),
        0 0 20px rgba(24,199,214,.35);
}



.btn-primary{
    position:relative;
    overflow:hidden;
    transition:.4s ease;
}

.btn-primary:hover{
    transform:translateY(-5px) scale(1.04);
    box-shadow:
        0 20px 40px rgba(24,199,214,.45),
        0 0 25px rgba(24,199,214,.25);
}


.hero-stats div{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(24,199,214,.25);
    backdrop-filter:blur(14px);
    padding:18px 24px;
    border-radius:18px;
    color:white;
    box-shadow:0 12px 28px rgba(0,0,0,.12);
    transition:.4s ease;
    cursor:pointer;
}

.hero-stats div:hover{
    transform:
        translateY(-8px)
        scale(1.05);

    background:rgba(24,199,214,.18);

    border-color:#18c7d6;

    box-shadow:
        0 25px 45px rgba(24,199,214,.25),
        0 0 25px rgba(24,199,214,.22);
}


.hero-card{
    transition:.5s ease;
}

.hero-card:hover{
    transform:
        translateY(-10px)
        rotate(-1deg)
        scale(1.02);

    box-shadow:
        0 35px 70px rgba(24,199,214,.18);
}


.hero::before{
    content:'';
    position:absolute;
    width:600px;
    height:600px;
    border-radius:50%;
    background:rgba(24,199,214,.12);
    filter:blur(120px);
    top:-120px;
    right:-120px;
    z-index:1;
    animation:floatGlow 6s ease-in-out infinite alternate;
}

@keyframes floatGlow{
    from{
        transform:translateY(0px);
    }
    to{
        transform:translateY(40px);
    }
}


.hero-text{
    animation:fadeLeft 1s ease;
}

.hero-card{
    animation:fadeRight 1.2s ease;
}

@keyframes fadeLeft{
    from{
        opacity:0;
        transform:translateX(-50px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes fadeRight{
    from{
        opacity:0;
        transform:translateX(50px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}




.offer-visual-card{
    position:relative;
    height:430px;
    border-radius:34px;
    overflow:hidden;
    box-shadow:0 30px 70px rgba(8,34,56,.25);
    background:#0b2238;
}

.offer-visual-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,rgba(8,34,56,.15),rgba(8,34,56,.82)),
        radial-gradient(circle at 20% 20%,rgba(24,199,214,.3),transparent 35%);
    z-index:1;
}



.offer-visual-card:hover img{
    transform:scale(1.10);
    filter:brightness(1.18) saturate(1.08);
}

.offer-visual-card img{
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:.95;
    transform:scale(1.05);
    transition:
        transform .7s ease,
        filter .7s ease,
        opacity .7s ease;
}

.offer-floating{
    position:absolute;
    top:28px;
    left:28px;
    z-index:3;
    background:rgba(7,27,44,.72);
    border:1px solid rgba(24,199,214,.45);
    backdrop-filter:blur(12px);
    padding:14px 20px;
    border-radius:20px;
    color:white;
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}

.offer-floating span{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#18c7d6;
    text-transform:uppercase;
    margin-bottom:4px;
}

.offer-floating strong{
    font-size:22px;
    color:white;
    line-height:1;
}
.offer-info-glass{
    position:absolute;
    left:28px;
    right:28px;
    bottom:28px;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.offer-info-glass div{
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.22);
    backdrop-filter:blur(14px);
    border-radius:18px;
    padding:18px 14px;
    color:white;
    text-align:center;
    transition:.35s ease;
}

.offer-info-glass div:hover{
    transform:translateY(-6px);
    background:rgba(24,199,214,.22);
    border-color:#18c7d6;
}

.offer-info-glass strong{
    display:block;
    font-size:22px;
    margin-bottom:4px;
}

.offer-info-glass span{
    font-size:12px;
    color:rgba(255,255,255,.75);
}

@media(max-width:900px){
    .offer-visual-card{
        height:360px;
    }

    .offer-info-glass{
        grid-template-columns:1fr;
    }

    .offer-floating strong{
        font-size:28px;
    }
}

.gallery img{
    transition:
        transform .55s ease,
        box-shadow .55s ease,
        filter .55s ease;
    position:relative;
    z-index:1;
}

.gallery img:hover{
    transform:scale(1.06) translateY(-8px);
    filter:brightness(1.12) saturate(1.1);
    box-shadow:
        0 28px 55px rgba(8,34,56,.20),
        0 28px 45px rgba(24,199,214,.42),
        0 0 35px rgba(24,199,214,.28);
}



/* ============================= */
/* FIX MOBILE CADAQUÉS */
/* ============================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    touch-action: pan-y;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 900px) {

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        margin: 0 auto !important;
    }

    .nav {
        height: 64px !important;
    }

    .logo img {
        height: 42px !important;
    }

    .menu.active {
        top: 64px !important;
    }

    .hero {
        width: 100% !important;
        min-height: auto !important;
        padding-top: 95px !important;
        padding-bottom: 55px !important;
        overflow: hidden !important;
    }

    .hero-content {
        width: 100% !important;
        display: block !important;
    }

    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero h1 {
        font-size: 34px !important;
        line-height: 1.08 !important;
    }

    .hero p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .hero-actions {
        gap: 10px !important;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 18px !important;
        font-size: 13px !important;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        margin-top: 28px !important;
    }

    .hero-stats div {
        padding: 15px !important;
    }

    .hero-stats div:nth-child(3) {
        grid-column: span 2;
    }

    .hero-stats strong {
        font-size: 19px !important;
    }

    .section,
    .offer,
    .contact {
        padding: 65px 0 !important;
    }

    .section-title {
        margin-bottom: 32px !important;
    }

    .section-title h2,
    .offer h2,
    .contact h2 {
        font-size: 30px !important;
        line-height: 1.15 !important;
    }

    .cards,
    .gallery,
    .offer-grid,
    .contact-grid {
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    .card {
        width: 100% !important;
    }

    .offer-visual-card {
        height: 330px !important;
        margin-top: 20px !important;
    }

    .offer-info-glass {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .offer-info-glass div {
        padding: 12px 8px !important;
    }

    .offer-info-glass strong {
        font-size: 15px !important;
    }

    .gallery-card {
        overflow: hidden;
        border-radius: 22px;
        box-shadow:
            0 18px 40px rgba(8,34,56,.16),
            0 0 28px rgba(24,199,214,.20);
    }

    .gallery img {
        height: 230px !important;
        border-radius: 22px !important;
    }

    .form {
        padding: 24px !important;
    }

    .footer-grid {
        width: 100% !important;
    }
}


.proyectos-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.proyecto-card{
    position:relative;
    overflow:hidden;
    border-radius:30px;
    min-height:430px;
    background:#0b2238;
    box-shadow:var(--shadow);
}

.proyecto-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    position:absolute;
    inset:0;
    transition:.7s ease;
}

.proyecto-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(8,34,56,.05),rgba(8,34,56,.90));
    z-index:1;
}

.proyecto-card:hover img{
    transform:scale(1.12);
    filter:brightness(1.15) saturate(1.1);
}

.proyecto-content{
    position:absolute;
    left:24px;
    right:24px;
    bottom:24px;
    z-index:2;
    color:white;
}

.proyecto-content span{
    color:#18c7d6;
    font-size:13px;
    font-weight:900;
}

.proyecto-content h3{
    font-size:25px;
    margin:8px 0;
}

.proyecto-content p{
    color:rgba(255,255,255,.78);
    line-height:1.6;
    margin-bottom:18px;
}

.proyecto-content button{
    border:1px solid rgba(255,255,255,.25);
    padding:14px 24px;
    border-radius:40px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(12px);
    color:white;
    font-weight:800;
    cursor:pointer;
    transition:.4s ease;
    box-shadow:
        0 10px 30px rgba(0,0,0,.18);
}

.proyecto-content button:hover{
    transform:translateY(-5px);
    background:rgba(24,199,214,.22);
    border-color:#18c7d6;
    box-shadow:
        0 20px 40px rgba(24,199,214,.35),
        0 0 25px rgba(24,199,214,.25);
}

.modal-proyecto{
    position:fixed;
    inset:0;
    background:rgba(7,27,44,.86);
    backdrop-filter:blur(12px);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.modal-proyecto.active{
    display:flex;
}

.modal-proyecto-content{
    position:relative;
    width:min(1050px,100%);
    background:linear-gradient(135deg,#eef9fb,#ffffff);
    border-radius:34px;
    padding:34px;
    box-shadow:0 35px 90px rgba(0,0,0,.35);
    animation:modalZoom .35s ease;
}

.modal-close{
    position:absolute;
    right:22px;
    top:22px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#0b2238;
    color:white;
    font-size:20px;
    cursor:pointer;
}

.modal-title{
    text-align:center;
    margin-bottom:28px;
}

.modal-title span{
    color:var(--primary-dark);
    font-weight:900;
    text-transform:uppercase;
}

.modal-title h2{
    color:var(--dark);
    font-size:42px;
}

.modal-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.modal-gallery-card{
    overflow:hidden;
    border-radius:24px;
    box-shadow:
        0 18px 40px rgba(8,34,56,.16),
        0 0 28px rgba(24,199,214,.20);
}

.modal-gallery-card img{
    width:100%;
    height:330px;
    object-fit:cover;
    display:block;
    transition:.55s ease;
}

.modal-gallery-card:hover img{
    transform:scale(1.08);
    filter:brightness(1.12) saturate(1.1);
}

@keyframes modalZoom{
    from{
        opacity:0;
        transform:scale(.92);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@media(max-width:900px){
    .proyectos-grid{
        grid-template-columns:1fr;
    }

    .proyecto-card{
        min-height:360px;
    }

    .modal-proyecto-content{
        padding:24px;
        max-height:90vh;
        overflow-y:auto;
    }

    .modal-gallery{
        grid-template-columns:1fr;
    }

    .modal-gallery-card img{
        height:240px;
    }

    .modal-title h2{
        font-size:30px;
    }
}