/* V3 additions */
.section-rule {
    height: 3px;
    width: 100%;
    background: var(--vigar-red);
    margin-bottom: 64px;
    opacity: .9
}
.hero-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow)
}

.hero-v2-copy {
    padding: clamp(34px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center
}

.academy-name {
    font-size: clamp(2.5rem, 3.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: 4px
}

.hero-motto {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 22px
}

.hero-v2-copy h1 {
    font-size: clamp(3rem, 4.5vw, 5.5rem);
    line-height: 1.20;
    font-weight: 900;
    letter-spacing: -.055em
}

.hero-v2-copy .lead {
    margin-top: 30px;
}

.visual-points {
    margin-top: 15px;
    font-size: .82rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.visual-points span {
    color: var(--vigar-red)
}

.compact-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.compact-service {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface)
}

.compact-service .icon-box {
    flex: 0 0 auto
}

.compact-service h3 {
    font-size: 1rem
}

.compact-service p {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 2px
}

.icon-box svg {
    stroke-width: 2.5
}

.space-preview {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface)
}

.space-copy {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.space-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-photo {
    background: linear-gradient(145deg, #d9d0c4, #b7a995 48%, #7e6956 49%, #a89075);
    min-height: 320px;
}

.space-map {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--vigar-red);
    font-weight: 800;
    margin-top: 20px
}

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

.contact-simple a {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    display: flex;
    gap: 14px;
    align-items: center
}

.contact-simple p {
    color: var(--muted);
    font-size: .9rem
}

.contact-simple strong {
    display: block
}

.contact-simple a:hover {
    border-color: color-mix(in srgb, var(--vigar-red) 45%, var(--border))
}

.gallery-four {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.gallery-photo {
    min-height: 230px;
    border-radius: 18px
}

.gallery-narrow {
    max-width: 900px;
    margin-inline: auto;
}

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

.footer-legal {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .86rem;
    color: var(--muted)
}

.whatsapp-head {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.whatsapp-brand {
    background: #25D366
}

.whatsapp-head img {
    width: 25px;
    filter: brightness(0) invert(1)
}

.whatsapp-icon {
    background: #25D366;
    border-color: #25D366
}

.whatsapp-icon img {
    width: 22px;
    filter: brightness(0) invert(1)
}

@media(max-width:980px) {

    .hero-v2,
    .space-preview {
        grid-template-columns: 1fr
    }

    .hero-landscape {
        min-height: 330px
    }

    .contact-simple {
        grid-template-columns: 1fr
    }

    .footer-simple {
        align-items: flex-start;
        flex-direction: column
    }

    
}

@media(max-width:640px) {

    .compact-services,
    .map-photo-row,
    .gallery-four {
        grid-template-columns: 1fr
    }

    .hero-v2-copy h1 {
        font-size: clamp(2.7rem, 15vw, 4.5rem)
    }

    .space-preview .space-photo {
        order: 2
    }

    .space-copy {
        order: 1;
        padding: 26px
    }

    .footer-legal {
        gap: 10px 16px
    }

    .gallery-narrow {
        max-width: none
    }
}

/* V4 refinements */
.stage-message {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: start;
    max-width: 850px
}

.stage-icon {
    width: 54px;
    height: 54px
}

.stage-message .lead {
    margin-top: 12px
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--vigar-red);
    font-weight: 800
}

.text-link svg {
    width: 18px
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, .65fr) minmax(620px, 1.35fr);
    gap: 50px;
    align-items: end
}

.contact-layout .section-head {
    margin-bottom: 0
}

.contact-section {
    padding-bottom: 40px
}

.legal-content {
    max-width: 860px
}

.legal-content .section-head {
    max-width: none
}

.legal-content h2 {
    font-size: 1.45rem;
    margin-top: 38px;
    margin-bottom: 10px
}

.legal-content p {
    margin-top: 10px;
    color: var(--muted)
}

.legal-content a {
    color: var(--vigar-red);
    text-decoration: underline;
    text-underline-offset: 3px
}

@media(max-width:1050px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .contact-layout .section-head {
        margin-bottom: 0
    }
}

@media(max-width:640px) {
    .stage-message {
        gap: 16px;
    }

    .contact-section {
        padding-bottom: 20px;
    }
}

/* ==================================================
   ESPAI - MAPA + FOTO EXTERIOR
   ================================================== */

.map-photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* BLOC DEL MAPA */

.map-block {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.map-embed {
    height: 300px;
}

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



.map-consent {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    background: var(--surface)
}

.map-consent[hidden],
.map-embed iframe[hidden] {
    display: none
}

.map-consent svg {
    width: 34px;
    height: 34px;
    stroke: var(--vigar-red);
    stroke-width: 2.2
}

.map-consent strong { font-size: 1.08rem }

.map-consent p {
    margin: 0 0 4px;
    color: var(--muted);
    max-width: 340px
}

/* INFORMACIÓ SOTA EL MAPA */

.map-info {
    padding: 20px 24px 22px;
}

.map-info h3 {
    margin: 0 0 6px;
}

.map-info p {
    margin: 0 0 14px;
}

/* FOTO EXTERIOR */

.space-photo {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.space-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Galeria ESPAI: conserva sempre la proporcio original de les fotografies */
.gallery-photo img {
    width: 100%;
    height: auto;
    display: block;
}
