/* =================================================================
   CAROLINA BALISTA — STYLE.CSS
   Tipografía unificada: Aleo (todo)
   Paleta marrón unificada: #B39772 (brand) + #957A55 (brand-dark)
================================================================= */

:root {
    /* Marrón maestro saturado */
    --cb-brand: #B39772;
    --cb-brand-dark: #957A55;
    --cb-brand-soft: #D1B48F;

    /* Neutros */
    --cb-bg: #F9F5F4;
    --cb-card: #ffffff;
    --cb-surface: #f6f4f4;
    --cb-beige: #cdbfb1;
    --cb-sand: #d9d0c3;
    --cb-border: #e7dfd7;

    /* Texto */
    --cb-title: #2b2731;
    --cb-ink: #2d2a33;
    --cb-soft: #6f6862;

    /* Footer */
    --cb-footer-bg: #6b5138;

    --shadow-soft: 0 14px 35px rgba(56, 45, 29, 0.08);
    --radius-pill: 999px;
    --radius-xl: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset al hacer scroll a anclas (compensa header sticky + dejar aire arriba) */
#contacto-form,
#sobre-mi {
    scroll-margin-top: 150px;
}

/* ----------------- Tipografía ----------------- */
body {
    margin: 0;
    font-family: "Aleo", Georgia, serif;
    font-weight: 400;
    color: var(--cb-ink);
    background: var(--cb-bg);
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6,
.brand-title {
    font-family: "Aleo", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: var(--cb-title);
}

p, li, a, small, span,
input, textarea, button {
    font-family: "Aleo", Georgia, serif;
    font-weight: 400;
}

.nav-link,
.btn-brand,
.testimonial-card strong {
    font-weight: 500;
}

.brand-subtitle,
.testimonial-card small {
    font-weight: 400;
}

/* ----------------- Layout shell ----------------- */
.site-shell {
    max-width: 1440px;
    margin: 0 auto;
    background: transparent;
}

/* ----------------- Header ----------------- */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cb-border);
}

.navbar { padding: 0.7rem 0; }

.brand-mark {
    width: 200px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo {
    width: auto;
    height: 100%;
    max-height: 70px;
    object-fit: contain;
}

.nav-link {
    font-size: 0.92rem;
    color: var(--cb-soft);
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--cb-brand);
}

/* Botón cerrar menú móvil — oculto por defecto (solo visible al abrir el overlay en móvil) */
.mobile-close { display: none; }

/* Ocultar el burger cuando el menú está abierto (la X lo reemplaza) */
.navbar-toggler[aria-expanded="true"] { display: none !important; }

/* ----------------- Botones ----------------- */
.btn-brand {
    background: var(--cb-brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 16px rgba(149, 122, 85, 0.18);
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--cb-brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(122, 100, 71, 0.25);
}

/* ----------------- Hero ----------------- */
.hero {
    position: relative;
    min-height: 520px;
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5.8rem 0 5rem;
    display: flex;
    align-items: center;
}

.hero-bg-main { background-image: url("../images/imagen-degrade-1.jpg"); }
.service-bg   { background-image: url("../images/imagen%20degrade%202.jpg"); }
.work-bg      { background-image: url("../images/imagen-degrade-3.jpg"); }
.about-bg     { background-image: url("../images/carolina-balista.jpg"); }

.hero-copy {
    max-width: 720px;
    margin-left: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 .nowrap-desktop {
    display: inline;
}

@media (min-width: 992px) {
    .hero h1 .nowrap-desktop {
        white-space: nowrap;
    }
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.15rem);
    color: var(--cb-brand);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero h1 span:not(.nowrap-desktop) { color: var(--cb-title); }
.hero h1 .nowrap-desktop { color: var(--cb-brand); }

.hero p {
    max-width: 34ch;
    font-size: 1.05rem;
    color: var(--cb-soft);
    margin-bottom: 1.55rem;
}

/* ----------------- Secciones genéricas ----------------- */
.section-intro,
.section-feature,
.section-process,
.section-claim,
.section-about,
.section-help,
.section-testimonials,
.section-properties {
    padding: 3.6rem 0;
}

.section-intro,
.section-claim,
.section-help,
.section-properties {
    background: var(--cb-card) !important;
}

.section-process {
    background: var(--cb-bg) !important;
}

.section-intro h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.18;
    color: var(--cb-title);
}

.section-intro h2 span,
.section-process h3 span,
.section-claim h3 span,
.section-feature h3 span,
.section-testimonials h3 span,
.section-about h3 span {
    color: var(--cb-brand);
}

.brand-emphasis { color: var(--cb-brand); }

.section-intro p {
    max-width: 66ch;
    margin: 1rem auto 0;
    color: var(--cb-soft);
}

/* ----------------- Bloques imagen + texto ----------------- */
.section-image-block {
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 430px;
    display: flex;
    align-items: center;
}

.text-panel {
    max-width: 500px;
    margin-left: 1.8rem;
}

.text-panel h3,
.section-feature h3,
.section-about h3,
.section-help h3,
.section-testimonials h3,
.section-properties h3 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--cb-title);
}

.text-panel p,
.section-feature p,
.section-about p {
    color: var(--cb-soft);
    margin-bottom: 1rem;
}

.text-panel.dark,
.text-panel.dark p,
.text-panel.dark h3 {
    color: #f8f3ee;
}

/* ----------------- Process cards ----------------- */
.section-process h3 {
    text-align: center;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.process-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--cb-border);
    border-radius: 12px;
    padding: 1.4rem 1rem 1rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.process-card i {
    font-size: 1.8rem;
    color: var(--cb-brand);
}

.process-card h4 {
    margin-top: 0.75rem;
    margin-bottom: 0.55rem;
    font-size: 1.03rem;
    color: var(--cb-title);
}

.process-card p {
    font-size: 0.91rem;
    color: var(--cb-soft);
    margin: 0;
}

/* ----------------- Claim ----------------- */
.section-claim {
    border-top: 1px solid var(--cb-border);
    border-bottom: 1px solid var(--cb-border);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.claim-icon {
    margin-bottom: 1.2rem;
}

.claim-image {
    width: auto;
    height: 80px;
    object-fit: contain;
    opacity: 0.92;
}

.section-claim h3 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.15;
    margin: 0;
    color: var(--cb-title);
}

/* ----------------- Sobre mí ----------------- */
.section-about .text-panel h3 { color: #ffffff; }

.section-about {
    /* color base como fallback; la imagen-degrade-4.jpg de .about-bg ya tiene
       el gradiente built-in y la aplica .section-image-block sobre toda la sección */
    background-color: var(--cb-beige);
}

/* ----------------- Help ----------------- */
.section-help .help-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 1.9rem;
}

.section-help .btn {
    width: auto;
    min-width: 168px;
}

/* ----------------- Botón flotante WhatsApp ----------------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    animation: waEnter 0.6s ease 1s both;
}

@keyframes waEnter {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.wa-bubble {
    background: #ffffff;
    color: #1f2c34;
    padding: 0.75rem 1rem;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 230px;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.wa-bubble strong {
    display: block;
    color: var(--cb-brand);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.wa-bubble-text {
    display: block;
    color: #4a5660;
    font-weight: 400;
}

.wa-bubble::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #ffffff;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.05));
}

.wa-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #25D366;
    background: #fff;
}

.wa-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid #fff;
    line-height: 1;
}

.wa-float:hover .wa-avatar,
.wa-float:focus .wa-avatar {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.wa-float:hover .wa-bubble,
.wa-float:focus .wa-bubble {
    transform: translateX(-3px);
}

/* Pulso suave en el avatar */
.wa-avatar::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (max-width: 575.98px) {
    .wa-float {
        right: 14px;
        bottom: 14px;
    }

    .wa-bubble {
        display: none; /* en móvil solo el avatar para no estorbar */
    }

    .wa-avatar {
        width: 58px;
        height: 58px;
    }
}

/* ----------------- Help Cards (¿En qué puedo ayudarte?) ----------------- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .help-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

.help-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    background-color: var(--cb-beige);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.help-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
    transition: background 0.35s ease;
    z-index: 1;
}

.help-card:hover,
.help-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.help-card:hover::before,
.help-card:focus::before {
    background: linear-gradient(180deg, rgba(179, 151, 114, 0.45) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.help-card-icon {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    z-index: 2;
    color: #fff;
    font-size: 1.4rem;
    opacity: 0.9;
}

.help-card-title {
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
    padding: 0 0.6rem;
    letter-spacing: 0.01em;
}

/* ----------------- Testimonios ----------------- */
.section-testimonials { background: var(--cb-beige); }

.testimonial-card {
    background: #fff;
    border: 1px solid #d8c9bb;
    border-radius: 0;
    padding: 1.4rem 1.2rem;
    text-align: center;
    height: 100%;
}

.testimonial-card .stars {
    color: var(--cb-brand);
    letter-spacing: 0.18em;
    margin-bottom: 0.55rem;
}

.testimonial-card p {
    font-size: 0.94rem;
    color: var(--cb-soft);
    min-height: 80px;
}

.testimonial-card strong {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--cb-title);
}

.testimonial-card small {
    letter-spacing: 0.08em;
    color: #8b8378;
    font-size: 0.73rem;
}

.text-white-word { color: #ffffff !important; }

/* ----------------- Propiedades ----------------- */
.section-properties { background: var(--cb-surface); }

.property-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.property-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.property-card .btn {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.property-card:hover img { transform: scale(1.08); }

.section-properties .carousel-control-prev,
.section-properties .carousel-control-next {
    width: 38px;
    height: 38px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cb-brand);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.25s ease;
}

.section-properties .carousel-control-prev:hover,
.section-properties .carousel-control-next:hover {
    background: var(--cb-brand-dark);
}

.section-properties .carousel-control-prev { left: -1.35rem; }
.section-properties .carousel-control-next { right: -1.35rem; }

.section-properties .carousel-control-prev-icon,
.section-properties .carousel-control-next-icon {
    background-size: 55%;
}

/* ----------------- Reveal animation ----------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------- Footer ----------------- */
.site-footer {
    display: block;
    background: var(--cb-footer-bg);
    color: #f5ece2;
    padding: 3.6rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid { margin-bottom: 2.8rem; }
.footer-col  { margin-bottom: 2rem; }

.footer-section-title {
    font-family: "Aleo", Georgia, serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #f5ece2;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.footer-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(245, 236, 226, 0.74);
    margin-bottom: 20px;
}

.footer-profile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.footer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-info h4 {
    font-size: 0.95rem;
    color: #f5ece2;
    margin: 20px 0 0.3rem;
}

.profile-info p {
    font-size: 0.78rem;
    color: rgba(245, 236, 226, 0.66);
    margin: 0;
    line-height: 1.4;
}

.profile-info .aicat {
    font-size: 0.72rem;
    color: rgba(245, 236, 226, 0.56);
}

.footer-badge {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.peritos-badge {
    max-width: 100px;
    height: auto;
    opacity: 0.88;
    transition: opacity 0.25s ease;
    flex-shrink: 0;
}

.peritos-badge:hover { opacity: 1; }

.peritos-text {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(245, 236, 226, 0.82);
    text-align: left;
    margin-top: 0.5rem;
}

.contact-group { margin-bottom: 1.5rem; }

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(245, 236, 226, 0.74);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-col p {
    font-size: 0.9rem;
    color: #f5ece2;
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(245, 236, 226, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-col a {
    color: rgba(245, 236, 226, 0.82);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-col a:hover,
.footer-col a:focus { color: #ffffff; }

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #f5ece2;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    line-height: 1;
    font-size: 1rem;
}

.footer-social a i {
    display: block;
    line-height: 1;
}

.footer-social a:hover,
.footer-social a:focus {
    background: var(--cb-brand);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(245, 236, 226, 0.68);
}

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

@media (max-width: 991.98px) {
    .site-shell { box-shadow: none; }

    /* ===== Menú móvil overlay 100vh ===== */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        z-index: 1100;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .mobile-close {
        display: none;
        position: absolute;
        top: 1.4rem;
        right: 1.4rem;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
        padding: 0.4rem 0.6rem;
        z-index: 1100;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-close:hover,
    .mobile-close:focus {
        transform: rotate(90deg);
        outline: none;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: var(--cb-brand);
        z-index: 1050;
        padding: 2rem;
        overflow-y: auto;
    }

    .navbar-collapse:is(.show, .collapsing) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        animation: menuFadeIn 0.35s ease forwards;
    }

    @keyframes menuFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .navbar-collapse:is(.show, .collapsing) .mobile-close {
        display: block;
    }

    .navbar-collapse:is(.show, .collapsing) .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 1.4rem;
        margin: 0 !important;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .navbar-collapse:is(.show, .collapsing) .nav-link {
        color: #ffffff !important;
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .navbar-collapse:is(.show, .collapsing) .nav-link:hover,
    .navbar-collapse:is(.show, .collapsing) .nav-link:focus {
        color: #fff7ee !important;
        text-decoration: underline;
        text-underline-offset: 6px;
    }

    .navbar-collapse:is(.show, .collapsing) .nav-item {
        margin: 0 !important;
    }

    .navbar-collapse:is(.show, .collapsing) .btn-brand {
        background: #ffffff;
        color: var(--cb-brand);
        font-size: 1rem;
        padding: 0.85rem 2rem;
        margin-top: 1rem;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse:is(.show, .collapsing) .btn-brand:hover,
    .navbar-collapse:is(.show, .collapsing) .btn-brand:focus {
        background: #fff7ee;
        color: var(--cb-brand-dark);
        transform: translateY(-2px);
    }

    /* Bloquear scroll del body cuando menú está abierto */
    body.menu-open {
        overflow: hidden;
    }

    /* Hamburguesa con tinte marrón */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23a87649' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .section-about {
        background: var(--cb-beige);
    }

    .hero {
        min-height: 450px;
        background-position: center;
        padding: 5rem 0 4.2rem;
    }

    .hero-copy,
    .text-panel { margin-left: 0; }

    .section-image-block { min-height: 390px; }

    .section-help .help-actions { gap: 1rem; }

    .section-properties .carousel-control-prev,
    .section-properties .carousel-control-next {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand .brand-title { font-size: 1.22rem; }

    .hero {
        min-height: 420px;
        padding: 4.3rem 0 3.6rem;
        background-position: 65% center;
    }

    .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
    .hero p  { font-size: 0.95rem; }

    .section-intro,
    .section-feature,
    .section-process,
    .section-claim,
    .section-about,
    .section-help,
    .section-testimonials,
    .section-properties {
        padding: 2.6rem 0;
    }

    .section-intro h2,
    .section-process h3,
    .section-claim h3 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .section-image-block {
        min-height: 360px;
        background-position: 60% center;
    }

    .text-panel {
        background: rgba(255, 255, 255, 0.85);
        padding: 0.85rem;
        border-radius: 10px;
    }

    .text-panel.dark {
        background: rgba(28, 24, 21, 0.5);
    }

    .section-help .help-actions {
        justify-content: stretch;
        gap: 0.8rem;
    }

    .section-help .btn {
        width: 100%;
        min-width: 0;
    }

    .testimonial-card p { min-height: 0; }

    .footer-grid { margin-bottom: 1.8rem; }
    .footer-col  { margin-bottom: 1.5rem; }

    .footer-profile,
    .footer-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social { justify-content: center; }
}

/* =================================================================
   MOBILE FIRST — ≤ 575px
   IMAGEN COMPLETA arriba (aspect-ratio real) + TEXTO abajo
================================================================= */

@media (max-width: 575.98px) {

    /* Navbar — solo logo SVG */
    .brand-mark {
        width: auto;
        height: 60px;
        margin: 0;
    }

    .brand-logo { max-height: 60px; }

    /* HERO: foto arriba (completa), texto abajo */
    .hero {
        min-height: 0;
        padding: 0;
        background-image: none !important;
        display: flex;
        flex-direction: column;
    }

    .hero::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 2428 / 1603;
        background-image: url("../images/imagen-normal-1.jpg");
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }

    .hero::after { content: none; }

    .hero .container {
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .hero-copy {
        margin: 0;
        max-width: none;
    }

    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.2;
        color: var(--cb-brand);
        margin-bottom: 0.75rem;
    }

    .hero h1 span:not(.nowrap-desktop) { color: var(--cb-title); }
    .hero h1 .nowrap-desktop { color: var(--cb-brand); }

    .hero p {
        font-size: 0.95rem;
        max-width: none;
        color: var(--cb-soft);
        margin-bottom: 1.4rem;
    }

    .hero .btn-brand {
        width: 100%;
        padding: 0.9rem;
        font-size: 1rem;
    }


    /* Bloques imagen + texto: IMAGEN COMPLETA arriba, TEXTO abajo */
    .section-image-block {
        background-image: none !important;
        min-height: 0 !important;
        padding: 0 0 2.8rem !important;
        display: flex;
        flex-direction: column;
    }

    .section-image-block::before {
        content: "";
        display: block;
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        flex-shrink: 0;
        margin-bottom: 2rem;
    }

    .section-image-block::after { content: none; }

    /* Aspect-ratio real de cada imagen para que se vean completas */
    .service-bg::before {
        background-image: url("../images/imagen%20normal%202.jpg");
        aspect-ratio: 1201 / 1803;
    }

    .work-bg::before {
        background-image: url("../images/imagen-normal-3.jpg");
        aspect-ratio: 1162 / 1597;
    }

    .about-bg::before {
        background-image: url("../images/carolina-balista.jpg");
        aspect-ratio: 2581 / 1024;
    }

    /* Text panel limpio en móvil */
    .text-panel,
    .text-panel.dark {
        background: transparent;
        color: var(--cb-title);
        padding: 0;
        border-radius: 0;
        max-width: none;
        margin-left: 0;
    }

    .text-panel h3,
    .text-panel.dark h3 {
        font-size: 1.7rem;
        line-height: 1.2;
        color: var(--cb-brand);
        margin-bottom: 0.85rem;
    }

    .text-panel h3 span { color: var(--cb-title); }

    .text-panel p,
    .text-panel.dark p {
        font-size: 0.95rem;
        color: var(--cb-soft) !important;
        margin-bottom: 0.75rem;
    }

    .text-panel .btn-brand,
    .text-panel.dark .btn-brand {
        width: 100%;
        padding: 0.9rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    /* Section about: quitar gradiente split de desktop en móvil */
    .section-about { background: var(--cb-beige) !important; }

    /* Section intro */
    .section-intro { padding: 2.2rem 0; }
    .section-intro h2 { font-size: 1.6rem; line-height: 1.22; }
    .section-intro p  { font-size: 0.95rem; }

    /* Process cards */
    .section-process { padding: 2.2rem 0; }
    .process-card { padding: 1rem 0.75rem 0.85rem; }
    .process-card h4 { font-size: 0.95rem; }
    .process-card p  { font-size: 0.85rem; }

    /* Claim */
    .section-claim   { padding: 2rem 0; }
    .section-claim h3 { font-size: 1.55rem; }

    /* Help */
    .section-help    { padding: 2.2rem 0; }
    .section-help h3 { font-size: 1.55rem; }
    .section-help .help-actions {
        margin: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0;
    }
    .section-help .help-actions .btn {
        width: 100%;
        min-width: 0;
        margin-bottom: 0.75rem;
    }

    /* Testimonials */
    .section-testimonials    { padding: 2.2rem 0; }
    .section-testimonials h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }

    /* Properties */
    .section-properties    { padding: 2.2rem 0; }
    .section-properties h3 { font-size: 1.6rem; }

    /* "Hablemos" buttons (.text-panel) — 90% ancho centrados */
    .text-panel .btn-brand,
    .text-panel.dark .btn-brand {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    /* ===== Unificación tipográfica titulares mobile — 1.6rem ===== */
    .hero h1,
    .section-intro h2,
    .section-feature .text-panel h3,
    .section-about .text-panel h3,
    .section-process h3,
    .section-claim h3,
    .section-testimonials h3,
    .section-properties h3 {
        font-size: 1.6rem;
        line-height: 1.22;
    }
}

/* =================================================================
   TESTIMONIOS — carrusel
   Desktop: grid 3 columnas (6 cards en 2 filas, sin animación)
   Mobile : carrusel Bootstrap, 1 card a la vez, dots, sin flechas
================================================================= */
.testimonials-carousel {
    margin-top: 1.5rem;
    padding-bottom: 2.6rem; /* hueco para los dots */
}

.testimonials-carousel .carousel-control-prev,
.testimonials-carousel .carousel-control-next {
    display: none !important;
}

.testimonials-carousel .carousel-indicators {
    margin: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.testimonials-carousel .carousel-indicators [data-bs-target] {
    background-color: rgba(149, 122, 85, 0.35);
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 1;
    text-indent: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.testimonials-carousel .carousel-indicators .active {
    background-color: var(--cb-brand);
    transform: scale(1.15);
}

.testimonials-carousel .testimonial-card {
    margin: 0 0.25rem;
}

.testimonials-google {
    margin-top: 1.5rem;
    font-size: 0.92rem;
    color: var(--cb-soft);
}

.testimonials-google a {
    color: var(--cb-brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.testimonials-google a:hover,
.testimonials-google a:focus {
    color: var(--cb-brand);
}

/* Desktop ≥ 768px: comportamiento de carrusel también; cada slide muestra 3 cards */
@media (min-width: 768px) {
    .testimonials-carousel .carousel-item .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
}

/* =================================================================
   SECCIÓN CONTACTO (formulario)
   Patrón section-image-block: formulario izquierda, imagen derecha
   con fundido a blanco.
================================================================= */
.section-contact {
    padding: 4.5rem 0;
    border-top: 1px solid var(--cb-border);
    background-color: #f9f5f4;
}

.contact-bg {
    background-image: linear-gradient(to right, #f9f5f4 0%, #f9f5f4 65%, rgba(249, 245, 244, 0.96) 65%, rgba(249, 245, 244, 0.78) 70%, rgba(249, 245, 244, 0.5) 80%, rgba(249, 245, 244, 0.22) 90%, rgba(249, 245, 244, 0) 100%), url("../images/formulario.webp");
    background-position: center, right -2% center;
    background-size: cover, contain;
    background-repeat: no-repeat, no-repeat;
    background-color: #f9f5f4;
    min-height: 620px;
}

.contact-panel {
    max-width: 540px;
    margin-left: 1.8rem;
}

.contact-panel h3 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--cb-title);
}

.contact-panel h3 span { color: var(--cb-brand); }

.contact-intro {
    color: var(--cb-soft);
    margin: 0 0 1.6rem;
    font-size: 0.98rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.contact-form .form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--cb-soft);
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cb-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    color: var(--cb-ink);
    font-family: "Aleo", Georgia, serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.4;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23957A55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form select:invalid {
    color: var(--cb-soft);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cb-brand);
    box-shadow: 0 0 0 3px rgba(179, 151, 114, 0.18);
}

.contact-form .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--cb-soft);
    line-height: 1.4;
}

.contact-form .checkbox-row input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    accent-color: var(--cb-brand);
    flex-shrink: 0;
}

.contact-form .checkbox-row label {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.contact-form .checkbox-row a {
    color: var(--cb-brand-dark);
    text-decoration: underline;
}

.contact-form .checkbox-row a:hover { color: var(--cb-brand); }

.contact-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.form-alert {
    margin: 0 0 1.2rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

.form-alert-success {
    background: #e8f3e8;
    color: #2d6a3f;
    border: 1px solid #c5e2c5;
}

.form-alert-error {
    background: #fbe9e9;
    color: #8a2b2b;
    border: 1px solid #f1c8c8;
}

@media (max-width: 991.98px) {
    .section-contact { padding: 3rem 0; }
    .contact-bg {
        min-height: 480px;
        background-image:
            linear-gradient(to right,
                #f9f5f4 0%,
                #f9f5f4 55%,
                rgba(249, 245, 244, 0.85) 72%,
                rgba(249, 245, 244, 0.45) 88%,
                rgba(249, 245, 244, 0) 100%),
            url("../images/formulario.webp");
        background-size: cover, contain;
    }
    .contact-panel { margin-left: 0; max-width: 100%; }
}

@media (max-width: 767.98px) {
    .section-contact { padding: 2.6rem 0; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

/* Mobile: solo formulario, sin imagen */
@media (max-width: 575.98px) {
    .section-contact {
        padding: 2.4rem 0 !important;
        background-color: #f9f5f4;
    }
    .contact-bg {
        background-image: none !important;
        min-height: 0 !important;
    }
    .contact-bg::before { content: none !important; }
    .contact-panel {
        padding: 0 0.25rem;
    }
    .contact-panel h3 {
        font-size: 1.6rem;
        line-height: 1.22;
        text-align: center;
    }
    .contact-intro {
        text-align: center;
    }
}
