:root {
    --brand: #0e2a57;
    --brand-2: #0f5c8f;
    --green: #23c08c;
    --mint: #8de0c1;
    --bg: #ffffff;
    --ink: #0e1a2b;
    --muted: #4a5568;
    --soft: #e7edf3;
    --shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px
}

@media (max-width:980px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr
    }
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--soft)
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    font-family: Montserrat;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: .3px
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    margin-left: 14px;
    font-weight: 600
}

.nav a:hover {
    color: var(--brand-2)
}


/* Hero */

.hero {
    position: relative;
    padding: 64px 0 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #f9fbfd 0%, #fff 100%)
}

.hero h1 {
    font-family: Montserrat;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--brand)
}

.hero .lead {
    color: var(--muted)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center
}

.hero-media img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow)
}

.shape {
    position: absolute;
    pointer-events: none
}

.shape.sq {
    width: 110px;
    height: 110px;
    background: var(--mint);
    border-radius: 18px;
    top: 26px;
    right: calc(50% - 560px)
}

.shape.diamond {
    width: 26px;
    height: 26px;
    background: var(--green);
    right: 24px;
    bottom: 34px;
    transform: rotate(45deg)
}


/* Sections */

.section {
    padding: 64px 0
}

.section-band {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%)
}

.section h2 {
    font-family: Montserrat;
    font-size: clamp(24px, 3.2vw, 36px);
    color: var(--brand);
    margin: 0 0 18px
}

.section .intro {
    color: var(--muted)
}


/* Cards */

.card {
    background: #fff;
    border: 1px solid var(--soft);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .10)
}

.card h3,
.card h4 {
    font-family: Montserrat;
    margin: .2rem 0 .2rem;
    color: var(--brand)
}


/* Media */

.media-card img {
    width: 100%;
    display: block;
    border-radius: 16px;
    box-shadow: var(--shadow)
}

.phone img {
    border-radius: 28px
}


/* Buttons */

.btn {
    background: var(--brand-2);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: var(--shadow)
}

.btn:hover {
    filter: brightness(1.05)
}

.btn.ghost {
    background: #fff;
    color: var(--brand-2);
    border: 2px solid var(--brand-2)
}


/* Lists */

.check {
    padding-left: 18px
}

.check li {
    margin: 6px 0
}

.list-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 0;
    list-style: none
}

.list-steps li {
    background: #fff;
    border: 1px solid var(--soft);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow)
}

.list-steps h4 {
    margin: .2rem 0;
    color: var(--brand)
}

.badge {
    background: var(--green);
    color: #fff;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 8px
}


/* Team */

.team img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px
}


/* Services */

.service {
    margin: 26px 0
}

.pill {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 12px
}

.pill.green {
    background: var(--green)
}

.service-grid {
    align-items: center
}

.bullets {
    margin: 0;
    padding-left: 18px
}

.bullets li {
    margin: 8px 0
}


/* Testimonials */

.section-title.boxed {
    display: inline-block;
    padding: 8px 22px;
    border: 4px solid var(--brand);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 18px
}

.section-title.boxed h2 {
    margin: 0;
    font-family: Montserrat;
    letter-spacing: .06em
}

.testimonial .stars {
    font-size: 22px;
    letter-spacing: 4px;
    color: #F6C72D;
    margin-top: 10px
}


/* Contact + Map */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.contact-list li span {
    width: 22px;
    text-align: center;
    line-height: 1.6
}

.contact-list a {
    color: var(--brand-2);
    text-decoration: none
}

.contact-list a:hover {
    text-decoration: underline
}

.contact-list .addr {
    color: var(--ink)
}

.map-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--soft);
    box-shadow: var(--shadow);
    position: relative
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0
}

.map-link {
    display: block;
    padding: 10px 14px;
    background: #fff;
    color: var(--brand-2);
    text-align: center;
    text-decoration: none;
    border-top: 1px solid var(--soft)
}

.map-link:hover {
    background: #f8fafc
}


/* Address overlay on the map */

.addr-box {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--soft);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow)
}

.addr-icon {
    font-size: 20px;
    line-height: 1.2
}

.addr-text {
    font-size: 14px;
    color: var(--ink)
}

.map-btn {
    margin-left: auto;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 700;
    background: var(--brand-2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.map-btn:hover {
    filter: brightness(1.05)
}

@media (max-width: 820px) {
    .addr-box {
        position: static;
        margin-top: 10px
    }
}


/* Footer */

.site-footer {
    border-top: 1px solid var(--soft);
    padding: 18px 0;
    background: #fff
}

.site-footer .container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between
}

.muted {
    color: var(--muted)
}


/* Reveal animations - visible by default (fallback when JS se cae) */

.reveal {
    opacity: 1;
    transform: none
}

.js .reveal {
    opacity: 0;
    transform: translateY(12px)
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .55s ease, transform .55s ease
}


/* Contact card styling */

.contact-col {
    background: #fff;
    border: 1px solid var(--soft);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.contact-col h2 {
    margin-top: 0
}


/* Logo en el header */

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

.brand .logo {
    height: 40px;
    width: auto;
    display: block
}

.brand-text {
    font-family: Montserrat;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: .3px
}

@media (max-width:680px) {
    .brand-text {
        display: none;
    }
    /* oculta texto y deja solo el isotipo en móvil */
}