:root {
    --color-1: #896c6c;
    --color-2: #e5beb5;
    --color-3: #eee6ca;
    --color-4: #f5fae1;
    --color-5: #f1f3e0;
    --color-6: #d2dcb6;
    --color-7: #a1bc98;
    --color-8: #778873;
    --text-main: #3f3535;
    --text-muted: #6b6660;
    --footer-bg: #3f3535;
    --whatsapp: #25d366;
    --section-light: #faf9f7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: "Poppins", sans-serif;
    color: var(--text-main) !important;
}

p, span, div {
    color: var(--text-main);
}

/* ─── HERO ─── */
.hero-custom-bg {
    background: url("https://images.pexels.com/photos/36729377/pexels-photo-36729377.jpeg?auto=compress&cs=tinysrgb&w=1800&dpr=1") no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(63, 53, 53, 0.82) 0%, rgba(137, 108, 108, 0.50) 100%);
    z-index: 1;
}

.hero-head, .hero-body {
    position: relative;
    z-index: 10;
}

.hero-custom-bg .title,
.hero-custom-bg .subtitle {
    color: #ffffff !important;
}

.hero-custom-bg p.subtitle {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ─── NAVBAR ─── */
.navbar.is-transparent {
    background-color: transparent;
}

.navbar-item.has-text-weight-medium {
    color: var(--text-main) !important;
    transition: color 0.3s ease;
}

.navbar-item.has-text-weight-medium:hover {
    color: var(--color-1) !important;
    background-color: transparent !important;
}

.navbar-item.has-text-weight-medium:focus,
.navbar-item.has-text-weight-medium:active,
.navbar-item.has-text-weight-medium.is-active,
.navbar-item.has-text-weight-medium[aria-current="page"] {
    color: var(--color-1) !important;
    background-color: transparent !important;
}

.navbar-brand .navbar-item:hover,
.navbar-brand .navbar-item:focus {
    background-color: transparent !important;
}

.navbar-logo-img {
    max-height: 50px !important;
    width: auto;
}

/* Navbar sobre hero oscuro */
.hero-custom-bg .navbar-item.has-text-weight-medium,
.about-hero .navbar-item.has-text-weight-medium {
    color: #ffffff !important;
}

.hero-custom-bg .navbar-item.has-text-weight-medium:hover,
.about-hero .navbar-item.has-text-weight-medium:hover {
    color: var(--color-2) !important;
}

.hero-custom-bg .navbar-item.has-text-weight-medium.is-active,
.hero-custom-bg .navbar-item.has-text-weight-medium[aria-current="page"],
.about-hero .navbar-item.has-text-weight-medium.is-active,
.about-hero .navbar-item.has-text-weight-medium[aria-current="page"] {
    color: var(--color-2) !important;
}

/* Button outline blanco dentro de hero oscuro */
.hero-custom-bg .button.is-custom-outline {
    border-color: #ffffff;
    color: #ffffff !important;
}

.hero-custom-bg .button.is-custom-outline:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--text-main) !important;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: #ffffff !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu .navbar-item.has-text-weight-medium {
        color: var(--text-main) !important;
    }
}

/* ─── BUTTONS ─── */
.button.is-custom-primary {
    background-color: var(--color-1);
    border: 2px solid var(--color-1);
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.button.is-custom-primary:hover {
    background-color: var(--text-main) !important;
    color: #ffffff !important;
    border-color: var(--text-main);
}

.button.is-custom-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.button.is-custom-outline:hover {
    background-color: var(--text-main);
    border-color: var(--text-main);
    color: #ffffff !important;
}

/* ─── KICKER ─── */
.section-kicker {
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-1) !important;
    display: inline-block;
    margin-bottom: 0.6rem;
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-2);
    border: none;
    margin: 1rem auto 0;
}

/* ─── CARDS ─── */
.card-custom {
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: #ffffff;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--color-2);
    color: #ffffff;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.card-custom:hover .icon-box {
    background-color: var(--color-1);
}

/* ─── FAQ ─── */
details {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

details:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

details[open] {
    border-color: var(--color-2);
}

summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-1);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(180deg);
}

summary::-webkit-details-marker {
    display: none;
}

details .faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── FORMS ─── */
.minimal-input {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    box-shadow: none !important;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    color: var(--text-main);
    font-size: 1rem;
    height: 2.5em;
    transition: border-color 0.3s ease;
}

.minimal-input:focus {
    border-bottom-color: var(--color-1);
    outline: none;
}

.minimal-input::placeholder {
    color: #9a948b;
    font-weight: 300;
}

textarea.minimal-input {
    min-height: 60px;
    resize: vertical;
}

select.minimal-input,
.minimal-select-wrap select {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0;
    box-shadow: none !important;
    padding-left: 0;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 1rem;
}

select.minimal-input:focus,
.minimal-select-wrap select:focus {
    border-bottom-color: var(--color-1);
    outline: none;
    box-shadow: none !important;
}

.minimal-select-wrap::after {
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Validacion con Bulma */
.minimal-input.is-danger,
textarea.minimal-input.is-danger,
select.minimal-input.is-danger,
.minimal-select-wrap select.is-danger {
    border-bottom-color: #f14668 !important;
}

.minimal-input.is-success,
textarea.minimal-input.is-success,
select.minimal-input.is-success,
.minimal-select-wrap select.is-success {
    border-bottom-color: #48c78e !important;
}

.field .help {
    text-align: left;
    margin-top: 0.3rem;
}

/* ─── HOW INTRO ─── */
.how-intro-box {
    background-color: var(--section-light);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* ─── COMO AYUDARTE ─── */
.como-ayudarte-section {
    background-color: var(--section-light);
}

.como-ayudarte-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-2);
    color: #ffffff;
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* ─── CONTACT PAGE ─── */
.contact-page-hero {
    background-color: #ffffff;
}

.contact-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--color-2);
    color: var(--color-1);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

/* ─── FOOTER ─── */
.footer-custom {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem 2rem;
}

.footer-custom .title,
.footer-custom p,
.footer-custom span {
    color: #ffffff !important;
}

.footer-custom a {
    color: var(--color-2);
    transition: color 0.2s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-custom a:hover {
    color: #ffffff;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-1);
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.50) !important;
}

/* ─── BG UTILITIES ─── */
.bg-section-light {
    background-color: var(--section-light);
}

/* ─── WHATSAPP ─── */
.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 99;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--whatsapp);
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        right: 0.8rem;
        bottom: 0.8rem;
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
}

/* ─── ABOUT / QUIENES SOMOS ─── */
.about-hero {
    background: linear-gradient(rgba(63, 53, 53, 0.55), rgba(63, 53, 53, 0.55)),
        url("https://images.pexels.com/photos/4101143/pexels-photo-4101143.jpeg?auto=compress&cs=tinysrgb&w=1800&dpr=1") no-repeat center center;
    background-size: cover;
    position: relative;
}

.contact-page-hero {
    background: linear-gradient(rgba(63, 53, 53, 0.55), rgba(63, 53, 53, 0.55)),
        url("https://images.pexels.com/photos/4149076/pexels-photo-4149076.jpeg") no-repeat center center !important;
    background-size: cover;
    position: relative;
}

section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.about-hero .hero-body .title {
    color: #ffffff !important;
}

.about-kicker {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--color-2) !important;
    font-weight: 700;
}

.about-info-card {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    border: none;
}

.about-tab-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: var(--section-light);
    color: var(--text-main);
    font-weight: 600;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    transition: background-color 0.3s ease;
}

.about-tab-chip.is-active {
    background-color: var(--color-2);
    color: #ffffff;
}

.about-image-stack {
    position: relative;
    min-height: 420px;
}

.about-image-main {
    border-radius: 16px;
    width: 72%;
    height: 360px;
    object-fit: cover;
}

.about-image-secondary {
    position: absolute;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    width: 58%;
    height: 300px;
    object-fit: cover;
    border: 10px solid #ffffff;
    box-shadow: 0 12px 30px rgba(63, 53, 53, 0.12);
}

@media screen and (max-width: 768px) {
    .about-image-stack {
        min-height: auto;
    }

    .about-image-main,
    .about-image-secondary {
        position: static;
        width: 100%;
        height: auto;
        border: none;
        margin-bottom: 1rem;
    }
}

/* ─── CTA BANNER ─── */
.cta-banner {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--color-1) 100%);
    border-radius: 20px;
    padding: 3.5rem;
}

.cta-banner .title,
.cta-banner .subtitle,
.cta-banner p {
    color: #ffffff !important;
}

/* ─── TEMPLATE UTILITIES ─── */
.lh-12 {
    line-height: 1.2;
}

.lh-16 {
    line-height: 1.6;
}

.lh-18 {
    line-height: 1.8;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.text-main-custom {
    color: var(--text-main) !important;
}

.text-accent {
    color: var(--color-1) !important;
}

.icon-accent {
    color: var(--color-1) !important;
}

.rounded-cover-image {
    border-radius: 12px;
    object-fit: cover;
}

.section-kicker-light {
    color: var(--color-2) !important;
}

.button-outline-light {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.button-outline-light:hover {
    border-color: #ffffff !important;
    color: var(--text-main) !important;
}

.form-success-notification {
    display: none;
    border-radius: 8px;
    background-color: var(--color-2) !important;
    color: var(--text-main) !important;
    text-align: center;
}

.footer-logo {
    max-height: 80px;
    width: auto;
}

.footer-description {
    line-height: 1.6;
}

/* ─── PAGE LOADER ─── */
.page-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(63, 53, 53, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-loader-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

body.is-loading-page {
    overflow: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 10px solid;
    border-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ─── RESPONSIVE ─── */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .hero-custom-bg {
        min-height: auto;
    }

    .hero-body .title.is-1 {
        font-size: 2rem !important;
    }

    .hero-body .subtitle.is-5 {
        font-size: 1rem !important;
    }

    .hero-body .column.pr-6 {
        padding-right: 0.75rem !important;
    }

    .hero-body .buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-body .buttons .button {
        width: 100%;
    }

    .section .title.is-2 {
        font-size: 1.5rem !important;
    }

    .section .title.is-3 {
        font-size: 1.25rem !important;
    }

    .cta-banner {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .card-custom {
        margin-bottom: 1rem;
    }

    .footer-custom .columns .column {
        text-align: center;
    }

    .footer-custom .pr-4 {
        padding-right: 0 !important;
    }

    .social-icons {
        justify-content: center;
        display: flex;
    }

    .contact-icon-circle {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }

    .about-info-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 1023px) {
    .hero.is-large .hero-body {
        padding: 3rem 1.5rem;
    }
}
