:root {
    --blue: #0071b7;
    --blue-dark: #005bb7;
    --blue-deep: #075e9b;
    --text: #4f4f4f;
    --muted: #7f7f7f;
    --line: #dedede;
    --light: #f2f2f2;
    --white: #ffffff;
    --dark: #303030;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================
   TOP BAR
========================================= */

.topbar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    color: #6b6b6b;
    font-size: 13px;
}

.topbar-inner {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.topbar a {
    transition: color .2s ease;
}

.topbar a:hover {
    color: var(--blue);
}


/* =========================================
   HEADER
========================================= */

.header {
    background: #fff;
    border-bottom: 3px solid var(--blue);
    position: relative;
    z-index: 50;
}

.header-inner {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.brand-main {
    color: var(--blue);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.brand-sub {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 4px;
    margin-top: 8px;
}

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

.nav > a,
.dropbtn {
    display: block;
    padding: 12px 13px;
    border: 0;
    background: transparent;
    color: #4f4f4f;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav > a:hover,
.dropbtn:hover,
.nav > a.active {
    color: var(--blue);
}

.nav > a.active {
    font-weight: 600;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 330px;
    background: #fff;
    border-top: 3px solid var(--blue);
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 17px;
    border-bottom: 1px solid #ededed;
    color: #555;
    font-size: 13px;
}

.dropdown-menu a:hover {
    color: var(--blue);
    background: #f5f5f5;
}

.menu-toggle {
    display: none;
    border: 1px solid #c4c4c4;
    background: #fff;
    padding: 9px 12px;
    color: #555;
    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(112deg, #005bb7 0%, #0071b7 60%, #0d7abf 100%);
}

.hero::before {
    content: "";
    position: absolute;
    width: 510px;
    height: 510px;
    right: -110px;
    top: -215px;
    border: 66px solid rgba(255,255,255,.055);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: 180px;
    bottom: -190px;
    border: 45px solid rgba(255,255,255,.035);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(780px, 100%);
    padding: 58px 0 62px;
}

.hero-kicker {
    margin-bottom: 13px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: .9;
}

.hero h1 {
    max-width: 700px;
    margin: 0 0 18px;
    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -.8px;
}

.hero p {
    max-width: 760px;
    margin: 0 0 27px;
    font-size: 16px;
    line-height: 1.75;
}

.button {
    display: inline-block;
    padding: 11px 21px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    transition:
        background .2s ease,
        color .2s ease;
}

.button:hover {
    background: #fff;
    color: var(--blue);
}


/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 62px 0;
}

.section-light {
    background: var(--light);
}

.section-title {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-title .small {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
}

.section-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    margin: 16px auto 0;
    background: var(--blue);
}

.intro {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #626262;
    font-size: 16px;
    line-height: 1.85;
}

.intro p {
    margin: 0;
}


/* =========================================
   SERVICES
========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.service {
    position: relative;
    min-height: 120px;
    padding: 24px 25px;
    background: #fff;
    transition:
        background .2s ease,
        transform .2s ease;
}

.service::before {
    content: "";
    display: block;
    width: 29px;
    height: 3px;
    margin-bottom: 14px;
    background: var(--blue);
}

.service::after {
    content: "→";
    position: absolute;
    right: 22px;
    bottom: 17px;
    color: var(--blue);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: .2s ease;
}

.service h3 {
    margin: 0;
    max-width: 90%;
    color: #444;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.service:hover {
    background: var(--blue);
}

.service:hover::before {
    background: #fff;
}

.service:hover::after {
    color: #fff;
    opacity: 1;
    transform: translateX(0);
}

.service:hover h3 {
    color: #fff;
}

.services-button {
    margin-top: 30px;
    text-align: center;
}

.services-button .button {
    border-color: var(--blue);
    color: var(--blue);
}

.services-button .button:hover {
    background: var(--blue);
    color: #fff;
}


/* =========================================
   CONTACT BAND
========================================= */

.contact-band {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    background: var(--blue);
    color: #fff;
}

.contact-band::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -160px;
    bottom: -190px;
    border: 50px solid rgba(255,255,255,.045);
    border-radius: 50%;
}

.contact-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 65px;
    align-items: center;
}

.contact-copy h2 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
}

.contact-copy p {
    max-width: 720px;
    margin: 0 0 13px;
    font-size: 15px;
    line-height: 1.75;
}

.contact-copy p:last-child {
    margin-bottom: 0;
}

.contact-details {
    padding-left: 38px;
    border-left: 1px solid rgba(255,255,255,.35);
    font-size: 15px;
}

.contact-details strong {
    display: block;
    margin: 13px 0 2px;
    color: rgba(255,255,255,.78);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-details strong:first-child {
    margin-top: 0;
}

.contact-details a:hover {
    text-decoration: underline;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 22px 0;
    background: var(--dark);
    color: #c4c4c4;
    font-size: 12px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer a {
    transition: color .2s ease;
}

.footer a:hover {
    color: #fff;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 88px;
        padding: 10px 24px 20px;
        background: #fff;
        border-bottom: 3px solid var(--blue);
        box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }

    .nav.open {
        display: block;
    }

    .nav > a,
    .dropbtn {
        width: 100%;
        padding: 11px 5px;
        text-align: left;
        border-bottom: 1px solid #ededed;
    }

    .dropdown-menu {
        position: static;
        display: block;
        width: 100%;
        padding-left: 15px;
        border-top: 0;
        box-shadow: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-details {
        padding: 25px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.35);
    }
}

@media (max-width: 650px) {

    .container {
        width: calc(100% - 30px);
    }

    .topbar-inner {
        height: auto;
        min-height: 34px;
        padding: 6px 0;
        justify-content: center;
        gap: 5px 15px;
        flex-wrap: wrap;
        font-size: 11px;
    }

    .header-inner {
        height: 78px;
    }

    .brand-main {
        font-size: 21px;
    }

    .brand-sub {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .nav {
        top: 78px;
    }

    .hero {
        min-height: 390px;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 27px;
    }

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

    .service {
        min-height: 105px;
    }

    .contact-band {
        padding: 50px 0;
    }

    .contact-copy h2 {
        font-size: 27px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* =====================================================
   PAGINAS INTERIORES
   ===================================================== */

.page-hero{
    background:
        linear-gradient(115deg,rgba(0,38,67,.96),rgba(0,113,183,.90)),
        linear-gradient(45deg,#003a61,#0071b7);
    padding:72px 0 68px;
    color:#fff;
    position:relative;
    overflow:hidden;
}

.page-hero:after{
    content:"";
    position:absolute;
    width:360px;
    height:360px;
    border:1px solid rgba(255,255,255,.12);
    transform:rotate(45deg);
    right:-100px;
    top:-170px;
}

.page-hero h1{
    font-size:clamp(36px,5vw,58px);
    line-height:1.05;
    margin:8px 0 0;
    max-width:900px;
}

.page-hero .eyebrow{
    color:rgba(255,255,255,.76);
}

.narrow{
    max-width:1050px;
}

.lead{
    font-size:20px;
    line-height:1.8;
    color:#4f4f4f;
    max-width:920px;
}

.section-heading{
    margin-top:55px;
    margin-bottom:22px;
    color:#0071b7;
    font-size:27px;
}

.legal-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-top:38px;
}

.legal-card{
    background:#fff;
    border:1px solid #e2e7eb;
    border-left:4px solid #0071b7;
    padding:25px 26px;
    box-shadow:0 8px 28px rgba(25,52,72,.055);
}

.legal-card h3{
    margin:0;
    color:#2d3b45;
    font-size:18px;
    line-height:1.4;
}

.legal-card p{
    margin:10px 0 0;
    color:#6b6b6b;
    line-height:1.65;
}

.back-services{
    margin-top:42px;
}

.btn-outline{
    border:1px solid #0071b7;
    color:#0071b7;
    background:#fff;
}

.btn-outline:hover{
    background:#0071b7;
    color:#fff;
}

.intro-center{
    max-width:900px;
    margin:0 auto 45px;
    text-align:center;
}

.intro-center h2{
    margin-top:28px;
    color:#0071b7;
}

.services-page-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.service-box{
    min-height:150px;
    padding:28px;
    border:1px solid #e2e7eb;
    background:#fff;
    text-decoration:none;
    color:#333;
    position:relative;
    transition:.2s ease;
}

.service-box:hover{
    transform:translateY(-3px);
    border-color:#0071b7;
    box-shadow:0 12px 35px rgba(0,70,115,.10);
}

.service-number{
    color:#0071b7;
    font-weight:700;
    font-size:13px;
}

.service-box h3{
    margin:22px 35px 0 0;
    font-size:20px;
    line-height:1.35;
}

.service-arrow{
    position:absolute;
    right:25px;
    bottom:24px;
    color:#0071b7;
    font-size:25px;
}

.about-grid{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr);
    gap:65px;
    align-items:start;
}

.about-grid h2,
.contact-copy h2{
    font-size:35px;
    line-height:1.25;
    margin:8px 0 24px;
}

.about-grid p,
.contact-copy p{
    color:#5e666b;
    line-height:1.8;
}

.about-photo img{
    display:block;
    width:100%;
    max-width:443px;
    height:auto;
}

.values{
    margin-top:40px;
}

.values article{
    padding:24px 0;
    border-top:1px solid #dedede;
}

.values h3{
    color:#0071b7;
    font-size:23px;
    margin:0 0 8px;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
}

.contact-data{
    margin-top:32px;
    padding-top:15px;
    border-top:1px solid #dedede;
}

.contact-data strong{
    color:#2d3b45;
}

.contact-data a{
    color:#0071b7;
}

.contact-closing{
    font-size:20px;
    color:#0071b7 !important;
    font-weight:600;
}

.contact-form-box{
    background:#f4f6f7;
    padding:38px;
}

.contact-form-box h2{
    margin-top:0;
    color:#0071b7;
}

.contact-form-box label{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#4f4f4f;
    margin:18px 0;
}

.contact-form-box input,
.contact-form-box textarea{
    width:100%;
    box-sizing:border-box;
    margin-top:7px;
    border:1px solid #cfd6da;
    background:#fff;
    padding:13px 14px;
    font:inherit;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus{
    outline:none;
    border-color:#0071b7;
}

.contact-form-box small{
    display:block;
    color:#7f7f7f;
    line-height:1.5;
    margin-top:15px;
}

@media(max-width:800px){
    .legal-grid,
    .services-page-grid,
    .about-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }

    .about-grid,
    .contact-grid{
        gap:35px;
    }

    .page-hero{
        padding:55px 0 50px;
    }

    .contact-form-box{
        padding:25px;
    }
}


/* =====================================================
   FIX HOME - CONTACTO SOBRE FONDO AZUL
   ===================================================== */

.contact-band .contact-copy,
.contact-band .contact-copy h2,
.contact-band .contact-copy p {
    color: #ffffff;
}

.contact-band .contact-copy p {
    opacity: 1;
}

.contact-band .contact-copy p:last-child {
    color: #ffffff;
    font-weight: 600;
}

