/* ==========================================================================
   Home de Lindas — estilos propios, scopeados a #main.home.
   No modifica componentes globales ni otras páginas.
   ========================================================================== */

#main.home {
    --home-accent: #A23E67;
    --home-accent-dark: #863054;
    --home-ink: #333333;
    --home-ink-2: #696767;
    --home-line: #E6DADE;
    --home-surface: #F8EEF1;
    --home-space-3xs: 4px;
    --home-space-2xs: 8px;
    --home-space-xs: 12px;
    --home-space-s: 16px;
    --home-space-m: 24px;
    --home-space-l: 32px;
    --home-space-xl: 48px;
    --home-space-2xl: 72px;
    --home-space-3xl: 96px;
    --home-radius: 0;
    --home-shadow-near: 0 2px 6px rgba(0, 0, 0, .06);
    --home-shadow-far: 0 12px 28px rgba(0, 0, 0, .10);
}

/* Ritmo de secciones ------------------------------------------------------- */
#main.home section {
    padding: 48px 0;
}

#main.home #intro {
    background-image: none;
    padding: 32px 0 28px;
}

@media (min-width: 992px) {
    #main.home section {
        padding: 80px 0;
    }

    #main.home #intro {
        padding: 64px 0 56px;
    }
}

#main.home .section-heading {
    margin-bottom: 28px;
}

#main.home .section-heading h2 {
    font-size: clamp(28px, 3.2vw, 38px) !important;
    line-height: 1.15;
    text-wrap: balance;
}

/* Hero -------------------------------------------------------------------- */
#main.home .home-hero__row::before,
#main.home .home-hero__row::after,
#main.home .home-grid::before,
#main.home .home-grid::after,
#main.home .home-works__grid::before,
#main.home .home-works__grid::after,
#main.home .home-novias__row::before,
#main.home .home-novias__row::after {
    content: none;
    display: none;
}

#main.home .home-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

#main.home .home-hero__copy,
#main.home .home-hero__media {
    float: none;
}

#main.home .home-hero__copy {
    padding-bottom: 28px;
    text-align: left;
}

@media (min-width: 768px) {
    #main.home .home-hero__copy {
        padding-bottom: 0;
    }
}

#main.home .home-eyebrow {
    margin: 0 0 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--home-accent);
}

#main.home .home-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(36px, 4.4vw, 50px) !important;
    line-height: 1.08;
    letter-spacing: -.5px;
    text-wrap: balance;
}

#main.home .home-hero h2 {
    margin: 4px 0 14px;
    font-family: "Open Sans", sans-serif;
    /* El CSS global fuerza h2 a 30px con !important en <=480px. */
    font-size: clamp(16px, 2.2vw, 21px) !important;
    line-height: 1.35;
    font-weight: 400;
    color: var(--home-ink-2);
}

#main.home .home-hero__lead {
    max-width: 48ch;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--home-ink-2);
}

#main.home .home-hero__media {
    position: relative;
}

#main.home .home-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 801 / 560;
    object-fit: cover;
}

@media (max-width: 767px) {
    #main.home .home-hero__media img {
        aspect-ratio: 16 / 9;
    }
}

#main.home .home-hero__caption {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--home-ink-2);
}

/* Botones ----------------------------------------------------------------- */
#main.home .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

#main.home .btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--home-radius);
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .12s ease;
}

#main.home .btn-home:focus-visible {
    outline: 3px solid var(--home-ink);
    outline-offset: 2px;
}

#main.home .btn-home--primary {
    background-color: var(--home-accent);
    border-color: var(--home-accent);
    color: #fff;
}

#main.home .btn-home--primary:hover,
#main.home .btn-home--primary:focus {
    background-color: var(--home-accent-dark);
    border-color: var(--home-accent-dark);
    color: #fff;
}

#main.home .btn-home--primary:active {
    transform: translateY(1px);
}

#main.home .btn-home--ghost {
    background-color: transparent;
    border-color: var(--home-accent);
    color: var(--home-accent);
}

#main.home .btn-home--ghost:hover,
#main.home .btn-home--ghost:focus {
    background-color: var(--home-accent);
    color: #fff;
}

@media (max-width: 575px) {
    #main.home .home-hero__actions {
        flex-direction: column;
    }

    #main.home .btn-home {
        width: 100%;
    }
}

/* Sellos de confianza ----------------------------------------------------- */
#main.home .home-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main.home .home-trust li {
    padding: 7px 12px;
    background-color: #fff;
    border: 1px solid var(--home-line);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--home-ink-2);
}

/* Servicios --------------------------------------------------------------- */
#main.home .home-grid {
    margin: 0 -12px;
}

@media (max-width: 575px) {
    #main.home .home-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 -8px;
    }

    #main.home .home-grid > .home-card {
        width: auto;
        float: none;
        padding-left: 8px;
        padding-right: 8px;
    }

    #main.home .home-card {
        margin-bottom: 16px;
    }

    #main.home .home-card__body {
        padding: 12px 12px 14px;
    }

    #main.home .home-card h3 {
        font-size: 16px;
    }

    #main.home .home-card p {
        margin-bottom: 10px;
        font-size: 13px;
    }

    #main.home .home-card__more {
        font-size: 11px;
    }
}

#main.home .home-card {
    margin-bottom: 24px;
}

#main.home .home-card > a {
    display: block;
    height: 100%;
    background-color: #fff;
    border: 1px solid var(--home-line);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#main.home .home-card > a:hover,
#main.home .home-card > a:focus {
    border-color: var(--home-accent);
    box-shadow: var(--home-shadow-far);
    transform: translateY(-3px);
}

#main.home .home-card > a:focus-visible {
    outline: 3px solid var(--home-accent);
    outline-offset: 2px;
}

#main.home .home-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#main.home .home-card__body {
    padding: 18px 18px 20px;
}

#main.home .home-card h3 {
    margin: 0 0 8px;
    font-family: Lora, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--home-ink);
}

#main.home .home-card p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--home-ink-2);
}

#main.home .home-card__more {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--home-accent);
}

#main.home .home-card__more::after {
    content: " \2192";
}

@media (min-width: 576px) {
    #main.home .home-grid {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    #main.home .home-card {
        display: flex;
    }

    #main.home .home-card > a {
        flex: 1 1 auto;
    }
}

#main.home .home-more {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
    padding-top: 8px;
    font-size: 14px;
    color: var(--home-ink-2);
}

#main.home .home-more a {
    color: var(--home-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Trabajos reales --------------------------------------------------------- */
#main.home .home-works__grid {
    display: flex;
    gap: 12px;
    margin: 0;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#main.home .home-work {
    flex: 0 0 78%;
    max-width: 78%;
    padding: 0;
    float: none;
    scroll-snap-align: start;
}

@media (min-width: 576px) {
    #main.home .home-works__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding-bottom: 0;
        overflow: visible;
    }

    #main.home .home-work {
        flex: none;
        max-width: none;
        width: auto;
    }
}

#main.home .home-work a {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #000;
}

#main.home .home-work img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .4s ease;
}

#main.home .home-work a:hover img,
#main.home .home-work a:focus img {
    transform: scale(1.03);
}

#main.home .home-work a:focus-visible {
    outline: 3px solid var(--home-accent);
    outline-offset: 2px;
}

#main.home .home-work span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px 14px 12px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .68));
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
}

#main.home .home-works__more {
    margin: 24px 0 0;
    font-size: 14px;
}

#main.home .home-works__more a {
    margin-right: 18px;
    color: var(--home-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Cómo funciona ----------------------------------------------------------- */
#main.home .home-steps__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    #main.home .home-steps__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

#main.home .home-steps__list li {
    padding-top: 16px;
    border-top: 2px solid var(--home-accent);
}

#main.home .home-steps__num {
    display: block;
    margin-bottom: 6px;
    font-family: Lora, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--home-accent);
}

#main.home .home-steps__list h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: var(--home-ink);
}

#main.home .home-steps__list p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--home-ink-2);
}

@media (max-width: 767px) {
    #main.home .home-steps__list {
        gap: 16px;
    }

    #main.home .home-steps__list li {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 12px;
        padding-top: 12px;
    }

    #main.home .home-steps__num {
        grid-row: 1 / span 2;
        margin: 0;
        font-size: 26px;
    }

    #main.home .home-steps__list h3 {
        grid-column: 2;
        margin-bottom: 2px;
    }

    #main.home .home-steps__list p {
        grid-column: 2;
    }
}

/* Novias ------------------------------------------------------------------ */
#main.home .home-novias {
    background-color: var(--home-surface);
}

#main.home .home-novias__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

#main.home .home-novias__media,
#main.home .home-novias__copy {
    float: none;
}

#main.home .home-novias__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 35%;
}

#main.home .home-novias__copy {
    padding-top: 24px;
}

@media (min-width: 768px) {
    #main.home .home-novias__copy {
        padding-top: 0;
    }
}

#main.home .home-novias__copy h2 {
    margin: 0 0 12px;
    font-family: Lora, serif;
    font-size: clamp(22px, 2.4vw, 30px) !important;
    font-weight: 700;
    line-height: 1.2;
    color: var(--home-ink);
    text-wrap: balance;
}

#main.home .home-novias__copy p {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--home-ink-2);
}

/* FAQ --------------------------------------------------------------------- */
#main.home .home-faq__list {
    max-width: 820px;
    margin: 0 auto;
}

#main.home .home-faq details {
    border-bottom: 1px solid var(--home-line);
}

#main.home .home-faq details:first-child {
    border-top: 1px solid var(--home-line);
}

#main.home .home-faq summary {
    position: relative;
    padding: 18px 36px 18px 0;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--home-ink);
}

#main.home .home-faq summary::-webkit-details-marker {
    display: none;
}

#main.home .home-faq summary:focus-visible {
    outline: 3px solid var(--home-accent);
    outline-offset: 2px;
}

#main.home .home-faq summary::after {
    content: "+";
    position: absolute;
    top: 12px;
    right: 4px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: var(--home-accent);
}

#main.home .home-faq details[open] summary::after {
    content: "\2013";
}

#main.home .home-faq details p {
    max-width: 70ch;
    margin: 0;
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--home-ink-2);
}

/* Cuidado y profesionalismo ---------------------------------------------- */
#main.home .home-care .page-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 0;
    padding: 8px 8px 24px;
}

#main.home .home-care .features {
    width: auto;
    float: none;
    margin-bottom: 0;
    padding: 16px !important;
}

@media (min-width: 992px) {
    #main.home .home-care .page-block {
        grid-template-columns: repeat(4, 1fr);
    }
}

#main.home .home-care .features img {
    margin: 0 auto;
}

#main.home .home-care .features h3 {
    margin: 12px 0 6px;
    font-family: Lora, serif;
    font-size: 18px;
    line-height: 1.3;
    color: var(--home-ink);
}

#main.home .home-care .features p {
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--home-ink-2);
}

@media (max-width: 575px) {
    #main.home .home-care .page-block {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 12px 16px;
    }

    #main.home .home-care .features {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 12px;
        align-items: center;
        padding: 10px 0 !important;
        border-top: 1px solid var(--home-line);
        text-align: left;
    }

    #main.home .home-care .features:first-child {
        border-top: 0;
    }

    #main.home .home-care .features > div {
        width: auto;
        float: none;
        padding: 0;
    }

    #main.home .home-care .features .icon img {
        width: 56px;
        height: 56px;
        margin: 0;
    }

    #main.home .home-care .features h3 {
        margin: 0 0 2px;
        font-size: 16px;
    }

    #main.home .home-care .features p {
        padding: 0;
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Marcas aliadas ---------------------------------------------------------- */
#main.home .home-brands {
    padding: 48px 0;
}

#main.home .home-brands .section-heading {
    margin-bottom: 24px;
}

#main.home .home-brands .brand {
    margin-bottom: 16px;
}

#main.home .home-brands img {
    width: auto;
    max-width: 100%;
    max-height: 54px;
    margin: 0 auto;
}

@media (max-width: 575px) {
    #main.home .home-brands .text-center {
        display: flex;
        flex-wrap: wrap;
    }

    #main.home .home-brands .section-heading {
        flex: 0 0 100%;
    }

    #main.home .home-brands .col-sm-6 {
        flex: 0 0 50%;
        width: auto;
        float: none;
        padding: 0 6px;
    }

    #main.home .home-brands .brand {
        margin-bottom: 8px;
        padding: 8px;
    }

    #main.home .home-brands img {
        max-height: 36px;
    }
}

/* Botón flotante de WhatsApp --------------------------------------------- */
a.whatsapp:focus-visible {
    outline: 3px solid #333;
    outline-offset: 3px;
}

/* Movimiento reducido ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    #main.home .btn-home,
    #main.home .home-card > a,
    #main.home .home-work img {
        transition: none;
    }
}
