
/* =========================================================
   MARÍA VILLAGRA · IDENTIDAD BASE
   ========================================================= */

:root {
    --maria-bg: #fbfaf7;
    --maria-bg-soft: #f3f1eb;
    --maria-card: #ffffff;
    --maria-text: #333b38;
    --maria-muted: #69736e;
    --maria-green: #61776d;
    --maria-green-dark: #42574f;
    --maria-line: rgba(66,87,79,.14);
    --maria-radius: 22px;
}

/* BASE */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--maria-bg);
    color: var(--maria-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

#page-container,
#main-content {
    background: var(--maria-bg);
}

#main-content .container:before {
    display: none !important;
}

.et_full_width_page #left-area {
    width: 100% !important;
    padding-right: 0 !important;
}

/* =========================================================
   CABECERA
   ========================================================= */

#main-header {
    background: rgba(251,250,247,.94) !important;
    box-shadow:
        0 1px 0 rgba(66,87,79,.08),
        0 8px 30px rgba(41,52,48,.04) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.et-fixed-header#main-header {
    background: rgba(251,250,247,.97) !important;
}

#top-menu > li > a {
    color: var(--maria-text) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .015em;
    transition: color .2s ease;
}

#top-menu > li > a:hover,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
    color: var(--maria-green) !important;
    opacity: 1;
}

.mobile_menu_bar:before {
    color: var(--maria-green-dark) !important;
}

.et_mobile_menu {
    border-top: 2px solid var(--maria-green) !important;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

#main-content .container {
    width: min(90%, 1160px);
    max-width: 1160px;
    padding-top: 70px;
}

article.page {
    padding-bottom: 70px;
}

article.page .entry-title {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--maria-green-dark);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.entry-content {
    color: var(--maria-text);
}

.entry-content p {
    max-width: 780px;
    margin-bottom: 1.45em;
}

.entry-content h2 {
    max-width: 820px;
    margin-top: 70px;
    margin-bottom: 22px;
    color: var(--maria-green-dark);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(31px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.entry-content h3 {
    max-width: 760px;
    margin-top: 38px;
    margin-bottom: 10px;
    color: var(--maria-green-dark);
    font-size: 21px;
    font-weight: 650;
    line-height: 1.35;
}

.entry-content ul {
    margin-top: 25px;
    padding: 28px 34px 20px 52px;
    max-width: 760px;
    background: var(--maria-card);
    border: 1px solid var(--maria-line);
    border-radius: var(--maria-radius);
    box-shadow: 0 14px 45px rgba(41,52,48,.045);
}

.entry-content li {
    margin-bottom: 8px;
}

/* PORTADA */

body.home #main-content .container {
    padding-top: 95px;
}

body.home article.page .entry-title {
    max-width: 850px;
}

body.home .entry-content > p:first-of-type {
    max-width: 720px;
    margin-top: 10px;
    margin-bottom: 45px;
    color: var(--maria-muted);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.45;
}

/* pequeños acentos */

.entry-content h2:before {
    content: "";
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 17px;
    background: var(--maria-green);
    border-radius: 999px;
}

/* enlaces */

.entry-content a {
    color: var(--maria-green-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.entry-content a:hover {
    color: var(--maria-green);
}

/* =========================================================
   FOOTER
   De momento ocultamos widgets automáticos de WordPress.
   Luego haremos footer propio con legales y contacto.
   ========================================================= */

#footer-widgets {
    display: none !important;
}

#main-footer {
    background: var(--maria-bg-soft) !important;
}

#footer-bottom {
    padding: 22px 0;
    background: var(--maria-bg-soft) !important;
    border-top: 1px solid var(--maria-line);
}

#footer-info,
#footer-info a {
    color: var(--maria-muted) !important;
    font-size: 13px;
}

/* =========================================================
   DIVI 5
   La misma identidad se heredará en módulos nuevos.
   ========================================================= */

.et_pb_section {
    background-color: transparent;
}

.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3 {
    color: var(--maria-green-dark);
}

.et_pb_button {
    border-radius: 999px !important;
    border-width: 1px !important;
    border-color: var(--maria-green-dark) !important;
    background: var(--maria-green-dark) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: .75em 1.5em !important;
}

.et_pb_button:hover {
    background: var(--maria-green) !important;
    border-color: var(--maria-green) !important;
    padding: .75em 1.5em !important;
}

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

@media (max-width: 980px) {

    #main-content .container {
        width: 88%;
        padding-top: 55px;
    }

    body.home #main-content .container {
        padding-top: 65px;
    }

    article.page .entry-title {
        font-size: clamp(38px, 10vw, 58px);
    }

    .entry-content h2 {
        margin-top: 55px;
    }

    #main-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    #main-content .container {
        width: 88%;
        padding-top: 42px;
    }

    body.home #main-content .container {
        padding-top: 48px;
    }

    article.page {
        padding-bottom: 48px;
    }

    article.page .entry-title {
        font-size: 40px;
        line-height: 1.08;
    }

    body.home .entry-content > p:first-of-type {
        font-size: 21px;
    }

    .entry-content h2 {
        margin-top: 48px;
        font-size: 31px;
    }

    .entry-content h3 {
        font-size: 19px;
    }

    .entry-content ul {
        padding: 24px 22px 17px 40px;
        border-radius: 17px;
    }
}


/*
 * ==========================================================
 * BEGIN MARIA HOME DIVI5 V2
 * Portada visual provisional
 * ==========================================================
 */

/* El builder ocupa toda la anchura */

body.home #main-content {
    overflow: hidden;
    background: #fbfaf7;
}

body.home #main-content .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

body.home #left-area {
    width: 100% !important;
    padding: 0 !important;
}

body.home article.page {
    padding: 0 !important;
}

body.home .entry-content {
    padding: 0 !important;
}

body.home .et_pb_section {
    padding: 0 !important;
    background: transparent;
}

body.home .et_pb_row {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

body.home .et_pb_column,
body.home .et_pb_text,
body.home .et_pb_text_inner {
    margin: 0 !important;
}

/* Tipografía */

.maria-home-v2 {
    color: #34413c;
}

.maria-home-v2 *,
.maria-home-v2 *:before,
.maria-home-v2 *:after {
    box-sizing: border-box;
}

.maria-shell {
    width: min(90%, 1180px);
    margin-inline: auto;
}

.maria-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #61776d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.maria-kicker:before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}

/* HERO */

.maria-hero-v2 {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 76px 0 94px;
    isolation: isolate;
}

.maria-hero-v2:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -180px;
    right: -190px;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(171,190,177,.27) 0%,
            rgba(171,190,177,.08) 53%,
            transparent 72%
        );
}

.maria-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.03fr)
        minmax(380px, .97fr);
    align-items: center;
    gap: clamp(45px, 7vw, 92px);
}

.maria-hero-copy h1 {
    max-width: 720px;
    margin: 0 0 28px;
    color: #354a42;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: clamp(48px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.maria-hero-copy > p {
    max-width: 630px;
    margin: 0 0 34px;
    color: #64716c;
    font-size: 18px;
    line-height: 1.75;
}

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

.maria-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.maria-btn:hover {
    transform: translateY(-2px);
}

.maria-btn-primary {
    border: 1px solid #435b52;
    background: #435b52;
    color: #fff !important;
}

.maria-btn-primary:hover {
    background: #587166;
    border-color: #587166;
}

.maria-btn-light {
    border: 1px solid rgba(67,91,82,.28);
    background: rgba(255,255,255,.5);
    color: #435b52 !important;
}

.maria-btn-light:hover {
    border-color: #61776d;
    background: #fff;
}

/* Foto */

.maria-hero-photo {
    position: relative;
    margin: 0;
}

.maria-hero-photo:before {
    content: "";
    position: absolute;
    left: -26px;
    bottom: -25px;
    width: 56%;
    height: 44%;
    border-radius: 30px;
    background: #dfe6de;
    z-index: -1;
}

.maria-hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 48% center;
    border-radius: 34px 34px 140px 34px;
    box-shadow:
        0 34px 90px rgba(51,69,62,.15);
}

.maria-photo-note {
    position: absolute;
    left: -34px;
    bottom: 35px;
    max-width: 225px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 17px;
    background: rgba(251,250,247,.89);
    color: #56635e;
    box-shadow: 0 18px 50px rgba(55,70,64,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13px;
    line-height: 1.55;
}

.maria-photo-note strong {
    display: block;
    margin-bottom: 3px;
    color: #40564d;
    font-size: 14px;
}

/* PRESENTACIÓN */

.maria-intro-v2 {
    padding: 108px 0 112px;
    background: #fff;
}

.maria-intro-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: clamp(50px, 9vw, 130px);
}

.maria-section-number {
    color: #9aa9a1;
    font-family: Georgia, serif;
    font-size: 16px;
}

.maria-intro-copy h2,
.maria-section-heading h2 {
    margin: 0 0 28px;
    color: #3e554c;
    font-family: Georgia, serif;
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.maria-intro-copy p {
    max-width: 730px;
    color: #66726d;
    font-size: 17px;
    line-height: 1.85;
}

/* TERAPIAS */

.maria-therapies-v2 {
    padding: 115px 0 125px;
    background: #f4f2ec;
}

.maria-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 54px;
}

.maria-section-heading h2 {
    max-width: 620px;
    margin-bottom: 0;
}

.maria-section-heading p {
    max-width: 430px;
    margin: 0;
    color: #6f7975;
    line-height: 1.75;
}

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

.maria-therapy-card {
    position: relative;
    min-height: 330px;
    padding: 38px 34px 34px;
    overflow: hidden;
    border: 1px solid rgba(67,91,82,.09);
    border-radius: 26px;
    background: rgba(255,255,255,.75);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.maria-therapy-card:hover {
    transform: translateY(-6px);
    background: #fff;
    box-shadow: 0 25px 60px rgba(60,76,69,.09);
}

.maria-card-index {
    display: block;
    margin-bottom: 65px;
    color: #9ba9a2;
    font-family: Georgia, serif;
    font-size: 14px;
}

.maria-therapy-card h3 {
    margin: 0 0 15px;
    color: #40564d;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.14;
}

.maria-therapy-card p {
    margin: 0 0 26px;
    color: #707a76;
    font-size: 15px;
    line-height: 1.75;
}

.maria-card-link {
    color: #526b60 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.maria-card-link:after {
    content: "  →";
}

/* ENFOQUE */

.maria-approach-v2 {
    position: relative;
    padding: 125px 0;
    overflow: hidden;
    background: #435a51;
    color: #edf1ed;
}

.maria-approach-v2:after {
    content: "";
    position: absolute;
    top: -220px;
    right: -160px;
    width: 590px;
    height: 590px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.maria-approach-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(65px, 10vw, 140px);
}

.maria-approach-v2 .maria-kicker {
    color: #c7d3cc;
}

.maria-approach-v2 h2 {
    margin: 0 0 28px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.maria-approach-v2 p {
    max-width: 620px;
    color: rgba(243,247,244,.76);
    font-size: 17px;
    line-height: 1.85;
}

.maria-methods {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 10px;
}

.maria-method {
    padding: 13px 17px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #f3f5f3;
    font-size: 14px;
}

/* CTA */

.maria-cta-v2 {
    padding: 120px 0;
    background: #e7ded4;
}

.maria-cta-card {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 60px;
    align-items: end;
}

.maria-cta-card h2 {
    max-width: 750px;
    margin: 0 0 22px;
    color: #40564d;
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.maria-cta-card p {
    max-width: 680px;
    margin: 0;
    color: #696f6b;
    line-height: 1.8;
}

.maria-contact-box {
    padding: 27px;
    border: 1px solid rgba(67,91,82,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.5);
}

.maria-contact-box a {
    display: block;
    margin-bottom: 9px;
    color: #40564d !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none !important;
}

.maria-contact-box span {
    display: block;
    color: #747a76;
    font-size: 13px;
    line-height: 1.65;
}

/* HEADER */

body.home #main-header {
    box-shadow:
        0 1px 0 rgba(67,91,82,.08) !important;
}

/* TABLET */

@media (max-width: 980px) {

    .maria-hero-v2 {
        min-height: auto;
        padding: 60px 0 80px;
    }

    .maria-hero-grid,
    .maria-intro-grid,
    .maria-approach-grid,
    .maria-cta-card {
        grid-template-columns: 1fr;
    }

    .maria-hero-grid {
        gap: 55px;
    }

    .maria-hero-photo {
        width: min(100%, 620px);
    }

    .maria-hero-photo img {
        aspect-ratio: 16 / 12;
        border-radius: 28px 28px 90px 28px;
    }

    .maria-photo-note {
        left: 20px;
        bottom: 20px;
    }

    .maria-intro-v2,
    .maria-therapies-v2,
    .maria-approach-v2,
    .maria-cta-v2 {
        padding: 85px 0;
    }

    .maria-intro-grid {
        gap: 28px;
    }

    .maria-section-heading {
        display: block;
    }

    .maria-section-heading p {
        margin-top: 20px;
    }

    .maria-therapy-grid {
        grid-template-columns: 1fr;
    }

    .maria-therapy-card {
        min-height: 250px;
    }

    .maria-card-index {
        margin-bottom: 38px;
    }

    .maria-approach-grid {
        gap: 45px;
    }
}

/* MÓVIL */

@media (max-width: 600px) {

    .maria-shell {
        width: 88%;
    }

    .maria-hero-v2 {
        padding: 42px 0 64px;
    }

    .maria-hero-copy h1 {
        font-size: 43px;
    }

    .maria-hero-copy > p {
        font-size: 16px;
    }

    .maria-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .maria-btn {
        width: 100%;
    }

    .maria-hero-photo img {
        aspect-ratio: 4 / 5;
        border-radius: 23px 23px 70px 23px;
    }

    .maria-photo-note {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin: -38px 18px 0;
    }

    .maria-intro-v2,
    .maria-therapies-v2,
    .maria-approach-v2,
    .maria-cta-v2 {
        padding: 68px 0;
    }

    .maria-intro-copy h2,
    .maria-section-heading h2,
    .maria-approach-v2 h2,
    .maria-cta-card h2 {
        font-size: 36px;
    }

    .maria-therapy-card {
        padding: 30px 26px;
        border-radius: 21px;
    }

    .maria-contact-box {
        padding: 23px;
    }
}

/*
 * END MARIA HOME DIVI5 V2
 */
