/*
Theme Name: Modelo 360
Theme URI: https://example.com/
Author: Custom
Description: Tema WordPress de una página inspirado exactamente en la composición proporcionada.
Version: 1.0
License: GPL-2.0-or-later
Text Domain: modelo-360
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --cream: #f5f2ee;
    --black: #111111;
    --white: #ffffff;
    --gold: #d8b783;
    --line: rgba(255,255,255,.45);
    --block-heading-size: clamp(32px, 3.25vw, 50px);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

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

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

/* HERO */
.hero {
    position: relative;
    min-height: 450px;
    background: #111 url('images/1.png') center top / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.52) 43%, rgba(0,0,0,.08) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 126px 5.65vw 64px;
    max-width: 800px;
}

.hero-brand {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: auto;
    left: 5.65vw;
    width: clamp(105px, 9vw, 145px);
    height: auto;
    object-fit: contain;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(31px, 3.15vw, 49px);
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -.045em;
    max-width: 700px;
    white-space: nowrap;
}

.hero p {
    margin: 0 0 34px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
}

.buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.btn {
    min-width: 176px;
    height: 38px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -.01em;
    transition: .2s ease;
}

.btn-primary {
    color: #1b1712;
    background: var(--gold);
    border-color: var(--gold);
}

.btn:hover { transform: translateY(-1px); opacity: .92; }

/* INTRO */
.intro {
    min-height: 360px;
    background: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 3vw;
    padding: 50px 3.4vw;
}

.intro > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro h2 {
    margin: 0 0 22px;
    max-width: 590px;
    font-size: var(--block-heading-size);
    line-height: 1.17;
    font-weight: 400;
    letter-spacing: -.05em;
}

.intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
}

.intro-right h2 {
    margin-bottom: 19px;
    white-space: nowrap;
}

.intro-right p {
    max-width: 520px;
}

/* SPLIT ROWS */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(360px, 1fr);
}

.split-image {
    min-height: 0;
    height: 100%;
}

.split-copy {
    background: var(--cream);
    min-height: 0;
    height: 100%;
    padding: 54px 2.25vw 54px 3.4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.split-copy h2 {
    margin: 0 0 19px;
    font-size: var(--block-heading-size);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.06em;
    white-space: nowrap;
}

.split-copy h3 {
    margin: 0 0 16px;
    font-size: clamp(25px, 2.4vw, 35px);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -.04em;
}

.split-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.split.reverse .split-image { order: 2; }
.split.reverse .split-copy { order: 1; }

/* CTA / FOOTER */
.footer-cta {
    min-height: 300px;
    position: relative;
    background: #111 url('images/4.png') center center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.70);
}

.footer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px 20px;
}

.footer-content h2 {
    margin: 0 0 24px;
    font-size: clamp(29px, 2.7vw, 40px);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -.045em;
}

.footer-content .lead {
    margin: 0 0 33px;
    font-size: 16px;
    line-height: 1.55;
}

.contact-title {
    margin: 0 0 17px;
    font-size: 18px;
    font-weight: 400;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.site-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 10px;
    opacity: .95;
}

/* WordPress */
.wp-block-separator { display: none; }

@media (max-width: 760px) {
    .hero {
        min-height: 560px;
        background-position: 62% top;
    }

    .hero-inner {
        padding: 52px 8vw;
    }

    .hero-brand {
        top: 14px;
        right: auto;
        left: 8vw;
        width: 108px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 42px);
        max-width: 100%;
        white-space: normal;
    }

    .hero p {
        font-size: 14px;
        max-width: 330px;
    }
    
    .split-copy h2 { white-space: normal; }

    .intro {
        grid-template-columns: 1fr;
        gap: 44px;
        min-height: 0;
        padding: 55px 8vw 60px;
    }

    .intro-right h2 { white-space: normal; }

    .intro h2 {
        max-width: 100%;
        font-size: clamp(30px, 8.4vw, 42px);
    }

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

    .split {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .split-image {
        min-height: 300px;
        height: 300px;
    }

    .split.reverse .split-image,
    .split.reverse .split-copy {
        order: initial;
    }

    .split-copy {
        min-height: 300px;
        height: 300px;
        padding: 42px 7vw;
    }

    .split-copy h2 {
        max-width: 100%;
        font-size: clamp(30px, 8.4vw, 42px);
        white-space: normal;
    }

    .split-copy h3 { font-size: 26px; }
    .split-copy p { font-size: 14px; }

    .footer-cta { min-height: 360px; }
}

@media (max-width: 420px) {
    .btn { width: 100%; }
    .hero { min-height: 590px; }
    .intro, .split-copy { padding-left: 7vw; padding-right: 7vw; }
}
