/* =========================================================
   VARIABLES
========================================================= */

:root {
    --yellow: #ffd21c;
    --yellow-dark: #e6b900;
    --black: #080808;
    --white: #fff;
    --card: rgba(10, 10, 10, .88);
}


/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--white);
    background: #111;
    font-family: "Montserrat", Arial, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   FONDO
========================================================= */

.background {
    position: fixed;
    inset: -24px;
    z-index: -2;

    background:
        linear-gradient(
            rgba(0, 0, 0, .20),
            rgba(0, 0, 0, .28)
        ),
        url("../img/bg.jpg") center center / cover no-repeat;

    filter: blur(5px);
    transform: scale(1.04);
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .12);
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.home {
    min-height: 100vh;
    padding: 22px 0 20px;

    display: flex;
    align-items: center;
}


/* =========================================================
   HERO / LOGO / TÍTULO
========================================================= */

.hero {
    margin-bottom: 18px;
}

.brand-logo {
    width: min(390px, 72vw);
    max-height: 185px;
    object-fit: contain;

    display: block;
    margin: 20px auto 40px;

    filter: drop-shadow(
        0 8px 18px rgba(0, 0, 0, .35)
    );
}

h1 {
    margin: 0;

    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(3rem, 5.2vw, 5.5rem);
    line-height: .86;
    font-weight: 800;
    letter-spacing: .01em;

    text-shadow:
        0 4px 16px rgba(0, 0, 0, .45);
}

h1 span {
    color: var(--yellow);
}

.subtitle {
    margin: 20px 0 40px;

    font-size: clamp(.95rem, 1.6vw, 1.35rem);
    font-weight: 500;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, .6);
}


/* =========================================================
   ACTION CARDS
========================================================= */

.action-card {
    height: 100%;
    min-height: 350px;

    padding: 18px 22px 16px;

    border: 1px solid var(--yellow);
    border-radius: 16px;

    background: var(--card);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .35);

    display: flex;
    flex-direction: column;

    /*
       Estado inicial de la animación.
       Usamos "translate" y no "transform"
       para no interferir con el hover.
    */
    opacity: 0;
    translate: 0 35px;

    animation: cardEntrance .7s ease-out forwards;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* =========================================================
   ANIMACIÓN DE ENTRADA DE LAS CARDS
========================================================= */

@keyframes cardEntrance {

    from {
        opacity: 0;
        translate: 0 35px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}


/* =========================================================
   ENTRADA ESCALONADA
========================================================= */

/* ALQUILÁ */
.cards-wrap .col-md-4:nth-child(1) .action-card {
    animation-delay: .10s;
}

/* COMPRÁ */
.cards-wrap .col-md-4:nth-child(2) .action-card {
    animation-delay: .25s;
}

/* VENDÉ */
.cards-wrap .col-md-4:nth-child(3) .action-card {
    animation-delay: .40s;
}


/* =========================================================
   HOVER DE LAS CARDS
========================================================= */

.action-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, .5),
        0 0 24px rgba(255, 210, 28, .12);

    background: rgba(8, 8, 8, .94);
}


/* =========================================================
   ICONOS DE LAS CARDS
========================================================= */

.action-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 8px;

    border: 3px solid var(--yellow);
    border-radius: 50%;

    color: var(--yellow);

    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon i {
    font-size: 34px;
}

.action-card:hover .action-icon {
    background: var(--yellow);
    color: #111;

    transform: scale(1.05);
}


/* =========================================================
   TÍTULOS Y CONTENIDO DE LAS CARDS
========================================================= */

.action-card h2 {
    margin: 0;

    color: var(--yellow);

    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1;
    font-weight: 800;

    text-align: center;
}

.tagline {
    margin: 3px 0 12px;

    text-align: center;

    font-size: .98rem;
    font-weight: 600;
}

.action-card ul {
    list-style: none;

    padding: 0;
    margin: 0 0 15px;

    flex: 1;
}

.action-card li {
    position: relative;

    padding: 4px 0 4px 29px;

    font-size: .88rem;
    line-height: 1.5;
}

.action-card li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 3px;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--yellow);
    color: #111;

    font-size: .78rem;
    font-weight: 900;
}


/* =========================================================
   BOTONES DE LAS CARDS
========================================================= */

.action-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    min-height: 48px;

    border-radius: 30px;

    background: var(--white);
    color: #111;

    text-decoration: none;

    font-size: 1.05rem;
    font-weight: 800;

    transition: all .22s ease;
}

.action-btn span {
    font-size: 1.4rem;
    line-height: 1;
}

.action-btn:hover,
.action-btn:focus-visible {
    background: var(--yellow);
    color: #111;

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(255, 210, 28, .30);
}


/* =========================================================
   TRUST / CARACTERÍSTICAS
========================================================= */

.trust {
    margin-top: 40px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 28px;
}

.trust-item {
    display: flex;
    align-items: center;

    gap: 9px;

    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    line-height: 1.05;
    letter-spacing: .04em;

    text-shadow:
        0 2px 6px #000;
}

.trust-symbol {
    color: var(--white);

    font-size: 2rem;
    line-height: 1;
}

.trust-divider {
    width: 1px;
    height: 42px;

    background: rgba(255, 255, 255, .8);
}


/* =========================================================
   UBICACIÓN
========================================================= */

.location {
    margin-top: 8px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    color: #f3f3f3;

    font-family: "Barlow Condensed", sans-serif;
    font-size: .86rem;
    letter-spacing: .08em;

    text-align: center;

    text-shadow:
        0 2px 7px #000;
}

.location i {
    color: var(--yellow);
    font-size: 1.15rem;
}


/* =========================================================
   INSTAGRAM
========================================================= */

.instagram-box {
    margin: 30px auto 0;

    text-align: center;
}

.instagram-box a {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 10px 20px;

    border: 2px solid var(--yellow);
    border-radius: 40px;

    background: rgba(0, 0, 0, .75);
    color: var(--white);

    text-decoration: none;

    font-family: "Montserrat", sans-serif;
    font-size: .78rem;
    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .35);

    transition: all .25s ease;
}

.instagram-box i {
    color: var(--yellow);
    font-size: 1.4rem;
}

.instagram-box strong {
    color: var(--yellow);
    font-weight: 800;
}

.instagram-box a:hover {
    background: var(--yellow);
    color: #111;

    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(255, 210, 28, .3);
}

.instagram-box a:hover i,
.instagram-box a:hover strong {
    color: #111;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 30px;

    padding: 10px 15px;

    text-align: center;

    color: rgba(255, 255, 255, .7);

    font-size: .85rem;
    font-weight: 500;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, .8);
}

.footer span {
    color: var(--yellow);
    font-weight: 700;
}


/* =========================================================
   WHATSAPP FLOTANTE
========================================================= */

.whatsapp-float {
    position: fixed;

    width: 60px;
    height: 60px;

    right: 25px;
    bottom: 25px;

    background-color: #25D366;
    color: #fff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 32px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, .35);

    z-index: 9999;

    transition: all .25s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    color: #fff;

    transform: scale(1.10);

    box-shadow:
        0 7px 25px rgba(0, 0, 0, .45),
        0 0 15px rgba(37, 211, 102, .35);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    .home {
        padding-top: 18px;
    }

    .brand-logo {
        width: min(330px, 70vw);
        max-height: 145px;
    }

    .action-card {
        min-height: 330px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 767.98px) {

    .home {
        display: block;
        padding: 18px 0 24px;
    }

    .hero {
        margin-bottom: 20px;
    }

    .brand-logo {
        width: min(310px, 82vw);
        max-height: 130px;
    }

    h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .subtitle {
        margin-top: 10px;
    }

    .action-card {
        min-height: 0;
        padding: 18px 20px 16px;
    }

    .trust {
        flex-wrap: wrap;

        gap: 15px 20px;

        margin-top: 24px;
    }

    .trust-divider {
        display: none;
    }

    .location {
        flex-wrap: wrap;

        margin-top: 16px;

        font-size: .75rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;

        font-size: 29px;
    }
}


/* =========================================================
   ACCESIBILIDAD
   Reduce las animaciones si el usuario lo tiene configurado
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

    .action-card {
        opacity: 1;
        translate: 0 0;
    }
}