/* =========================================================
   MI HUELLITA
   CSS COMPLETO - DISEÑO MEJORADO
   ========================================================= */

/* =========================
   VARIABLES
   ========================= */

:root {
    --purple: #4b168d;
    --purple-dark: #30105f;
    --purple-medium: #6125a4;
    --purple-light: #eee6fb;
    --purple-soft: #f8f5fd;

    --pink: #e92670;
    --pink-light: #fff0f6;

    --text: #24173a;
    --text-light: #5f566c;
    --muted: #756b83;

    --white: #ffffff;
    --black: #161219;

    --border: #e8e1f1;

    --shadow-sm: 0 5px 18px rgba(67, 27, 116, 0.08);
    --shadow: 0 15px 40px rgba(67, 27, 116, 0.13);
    --shadow-lg: 0 25px 70px rgba(67, 27, 116, 0.20);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --container: 1250px;

    --transition: all 0.3s ease;
}


/* =========================
   RESET
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Nunito", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
    font-family: "Nunito", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    outline: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}


/* =========================
   UTILIDADES
   ========================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}


/* =========================
   TOP BAR
   ========================= */

.topbar {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    padding: 8px 20px;

    background: var(--purple-dark);
    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    text-align: center;
}

.topbar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar span:nth-child(2),
.topbar span:nth-child(4) {
    opacity: 0.45;
}

/* =========================
   LOGO
   ========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.logo-paw {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--purple);
    color: var(--white);

    font-size: 27px;

    box-shadow: 0 6px 16px rgba(75, 22, 141, 0.22);

    transition: var(--transition);
}

.logo:hover .logo-paw {
    transform: rotate(-8deg) scale(1.05);
}

.logo-text strong {
    display: block;

    color: var(--purple);

    font-size: 27px;
    line-height: 1;

    font-weight: 900;
}

.logo-text small {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.2;

    font-weight: 700;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 38px;

    height: 100%;
}

nav a {
    position: relative;

    display: flex;
    align-items: center;

    height: 100%;

    color: #4d4359;

    font-size: 15px;
    font-weight: 700;

    transition: var(--transition);
}

nav a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 0;
    height: 3px;

    border-radius: 10px 10px 0 0;

    background: var(--purple);

    transform: translateX(-50%);

    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--purple);
}

nav a:hover::after,
nav a.active::after {
    width: 28px;
}


/* =========================
   HEADER ACTIONS
   ========================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--purple);
}

.header-actions > span {
    position: relative;

    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    font-size: 23px;

    cursor: pointer;

    transition: var(--transition);
}

.header-actions > span:hover {
    transform: translateY(-2px);
    color: var(--purple-medium);
}

.cart-count {
    position: absolute;

    top: -7px;
    right: -8px;

    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--pink);
    color: var(--white);

    font-size: 10px !important;
    font-weight: 900;
}


/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    min-height: 470px;

    display: flex;
    align-items: center;

    padding: 55px 7%;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(245, 239, 252, 0.98) 0%,
            rgba(245, 239, 252, 0.93) 37%,
            rgba(245, 239, 252, 0.55) 60%,
            rgba(245, 239, 252, 0.05) 100%
        ),
        url("../img/hero-perro.jpg") center right / cover no-repeat;
}

.hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -150px;
    bottom: -170px;

    border-radius: 50%;

    background: rgba(103, 50, 164, 0.08);
}

.hero::after {
    content: "🐾";

    position: absolute;

    left: 3%;
    bottom: 30px;

    color: var(--purple);

    font-size: 55px;

    opacity: 0.15;

    transform: rotate(-12deg);
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;

    animation: fadeUp .7s ease both;
}


/* =========================
   HERO
   ========================= */

.liquidacion {
    display: inline-block;

    margin-bottom: 18px;
    padding: 10px 28px;

    color: var(--white);
    background: var(--pink);

    border-radius: 8px;

    font-size: clamp(32px, 4vw, 56px);
    line-height: .95;

    font-weight: 900;

    transform: rotate(-2deg);

    box-shadow: 0 10px 25px rgba(233, 38, 112, .18);
}

.hero-title {
    margin-bottom: 15px;

    color: var(--purple-dark);

    font-size: clamp(35px, 5vw, 68px);
    line-height: .96;

    font-weight: 900;

    letter-spacing: -1.5px;
}

.hero-title span {
    color: var(--purple);
}

.hero-description {
    max-width: 430px;

    margin-bottom: 25px;

    color: #514760;

    font-size: 17px;
    line-height: 1.55;

    font-weight: 600;
}

.hero-price {
    display: inline-flex;
    flex-direction: column;

    min-width: 145px;

    margin-right: 10px;
    padding: 13px 28px;

    border-radius: 13px;

    color: var(--white);
    background: var(--purple);

    box-shadow: 0 12px 25px rgba(75, 22, 141, .2);
}

.hero-price small {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-price strong {
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 54px;

    padding: 15px 26px;

    border-radius: 30px;

    background: var(--white);
    color: var(--purple);

    font-size: 15px;
    font-weight: 900;

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.hero-btn:hover {
    background: var(--purple);
    color: var(--white);

    transform: translateY(-3px);
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.section {
    padding: 85px 5%;
}

.section-heading {
    max-width: 720px;

    margin: 0 auto 48px;

    text-align: center;
}

.section-heading .eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    padding: 7px 15px;

    border-radius: 20px;

    background: var(--purple-light);
    color: var(--purple);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    color: var(--purple-dark);

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.05;

    font-weight: 900;
}

.section-heading p {
    max-width: 580px;

    margin: 10px auto 0;

    color: var(--muted);

    font-size: 16px;
    font-weight: 600;
}


/* =========================
   PRODUCTS GRID
   ========================= */

.products {
    width: min(100%, 1250px);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;
}


/* =========================
   PRODUCT CARD
   ========================= */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--white);

    border: 1px solid #eee8f4;

    border-radius: 20px;

    box-shadow: 0 6px 22px rgba(56, 28, 92, .07);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.product-card:hover {
    transform: translateY(-9px);

    border-color: #d9c6ed;

    box-shadow: 0 22px 45px rgba(67, 27, 116, .16);
}


/* =========================
   PRODUCT IMAGE
   ========================= */

.product-image {
    position: relative;

    height: 245px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #faf8fd,
            #f3eef9
        );
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 20px;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}


/* =========================
   IMAGE SHADOW
   ========================= */

.product-image::after {
    content: "";

    position: absolute;

    left: 15%;
    right: 15%;
    bottom: 18px;

    height: 14px;

    border-radius: 50%;

    background: rgba(54, 27, 74, .13);

    filter: blur(9px);

    z-index: 0;
}

.product-image img {
    position: relative;
    z-index: 1;
}


/* =========================
   HEART
   ========================= */

.heart {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(75, 22, 141, .08);

    border-radius: 50%;

    background: rgba(255, 255, 255, .92);

    color: var(--purple);

    font-size: 23px;

    box-shadow: 0 5px 15px rgba(50, 20, 80, .10);

    transition: var(--transition);
}

.heart:hover {
    background: var(--pink-light);

    color: var(--pink);

    transform: scale(1.12);
}


/* =========================
   PRODUCT INFO
   ========================= */

.product-info {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 19px 19px 20px;
}

.product-info h3 {
    min-height: 42px;

    margin-bottom: 5px;

    color: var(--purple-dark);

    font-size: 16px;
    line-height: 1.3;

    font-weight: 900;
}

.price {
    margin-bottom: 15px;

    color: var(--purple);

    font-size: 23px;
    line-height: 1;

    font-weight: 900;
}


/* =========================
   COLOR DOTS
   ========================= */

.dots {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 15px;
}

.dot {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    border: 2px solid var(--white);

    box-shadow: 0 0 0 1px #ddd;

    transition: var(--transition);
}

.dot:hover {
    transform: scale(1.2);
}


/* =========================
   PRODUCT BUTTON
   ========================= */

.product-btn {
    width: 100%;

    margin-top: auto;

    padding: 12px 16px;

    border: 2px solid var(--purple);

    border-radius: 25px;

    background: var(--purple);

    color: var(--white);

    font-size: 14px;

    font-weight: 900;

    text-align: center;

    transition: var(--transition);
}

.product-btn:hover {
    background: var(--purple-dark);

    border-color: var(--purple-dark);

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(75, 22, 141, .20);
}


/* =========================================================
   HELP SECTION
   ========================================================= */

.help-section {
    padding: 0 5% 80px;
}

.help {
    width: min(100%, var(--container));

    min-height: 350px;

    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    background: var(--purple-light);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.help-photo {
    position: relative;

    min-height: 350px;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.08),
            rgba(0,0,0,.02)
        ),
        url("../img/hero-ayuda.jpg") center / cover no-repeat;
}

.help-photo::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(0,0,0,.18)
        );
}

.help-photo span {
    position: absolute;

    z-index: 2;

    top: 35px;
    left: 35px;

    color: var(--white);

    font-size: 32px;
    font-weight: 900;

    text-shadow: 0 2px 8px rgba(0,0,0,.65);

    transform: rotate(-5deg);
}

.help-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px 55px;
}

.help-content .icon {
    color: var(--purple);

    font-size: 35px;

    margin-bottom: 2px;
}

.help-content h2 {
    margin-bottom: 12px;

    color: var(--purple-dark);

    font-size: 43px;
    line-height: 1;

    font-weight: 900;
}

.help-content p {
    max-width: 500px;

    margin-bottom: 23px;

    color: #594e68;

    font-size: 16px;
    line-height: 1.6;

    font-weight: 600;
}

.help-btn {
    width: max-content;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 30px;

    border-radius: 30px;

    background: var(--purple);
    color: var(--white);

    font-size: 16px;
    font-weight: 900;

    box-shadow: 0 8px 20px rgba(75,22,141,.18);

    transition: var(--transition);
}

.help-btn:hover {
    background: var(--purple-dark);

    transform: translateY(-3px);
}


/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
    padding: 35px 5%;

    background: #faf8fd;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefit-list {
    width: min(100%, 1100px);

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    color: var(--purple-dark);

    font-size: 14px;
    font-weight: 800;
}

.benefit-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--purple-light);
    color: var(--purple);

    font-size: 20px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 55px 5% 20px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,.06),
            transparent 25%
        ),
        var(--purple-dark);

    color: var(--white);
}

.footer-grid {
    width: min(100%, var(--container));

    margin: auto;

    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;

    gap: 45px;
}

.footer-brand strong {
    display: block;

    color: var(--white);

    font-size: 29px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 240px;

    margin-top: 10px;

    color: #d9cceb;

    font-size: 14px;
    line-height: 1.6;
}

footer h4 {
    margin-bottom: 17px;

    color: var(--white);

    font-size: 15px;
    font-weight: 900;
}

footer ul li {
    margin-bottom: 9px;
}

footer ul li a {
    color: #d9cceb;

    font-size: 13px;

    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--white);

    padding-left: 4px;
}

.socials {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.social {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    color: var(--white);

    font-size: 12px;
    font-weight: 900;

    transition: var(--transition);
}

.social:hover {
    background: var(--white);

    color: var(--purple-dark);

    transform: translateY(-3px);
}

footer .footer-grid > div:last-child p {
    color: #d9cceb;

    font-size: 13px;
}

footer .footer-grid > div:last-child p + p {
    margin-top: 7px;
}

.footer-bottom {
    width: min(100%, var(--container));

    margin: 40px auto 0;

    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.15);

    color: #bfb0d3;

    font-size: 11px;
}

.footer-bottom span:last-child {
    color: #ddd0ec;

    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    header {
        padding: 0 3%;
    }

    nav {
        gap: 22px;
    }

    .hero {
        padding-left: 5%;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   TABLET PEQUEÑO
   ========================================================= */

@media (max-width: 800px) {

    .topbar {
        gap: 10px;
        font-size: 10px;
    }

    header {
        height: 72px;
    }

    nav {
        display: none;
    }

    .header-actions {
        gap: 13px;
    }

    .hero {
        min-height: 570px;

        align-items: flex-start;

        padding: 50px 25px;

        background:
            linear-gradient(
                180deg,
                rgba(245,239,252,.98) 0%,
                rgba(245,239,252,.90) 45%,
                rgba(245,239,252,.15) 100%
            ),
            url("img/hero-perro.jpg") center / cover no-repeat;
    }

    .hero-title {
        font-size: 48px;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 220px;
    }

    .help {
        grid-template-columns: 1fr;
    }

    .help-photo {
        min-height: 300px;
    }

    .help-content {
        padding: 40px 35px;
    }

    .benefit-list {
        grid-template-columns: 1fr;
    }

    .benefit {
        justify-content: flex-start;

        max-width: 350px;

        margin: auto;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .topbar {
        min-height: 34px;

        padding: 7px 10px;

        font-size: 9px;

        gap: 5px;
    }

    .topbar span:nth-child(2),
    .topbar span:nth-child(4) {
        display: none;
    }

    header {
        height: 68px;

        padding: 0 17px;
    }

    .logo {
        gap: 8px;
    }

    .logo-paw {
        width: 39px;
        height: 39px;

        font-size: 21px;
    }

    .logo-text strong {
        font-size: 21px;
    }

    .logo-text small {
        font-size: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions > span {
        font-size: 19px;
    }

    .hero {
        min-height: 570px;

        padding: 42px 20px;
    }

    .liquidacion {
        padding: 9px 19px;

        font-size: 34px;
    }

    .hero-title {
        margin-bottom: 14px;

        font-size: 43px;

        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-price {
        min-width: 130px;

        padding: 11px 20px;
    }

    .hero-price strong {
        font-size: 34px;
    }

    .hero-btn {
        min-height: 48px;

        padding: 13px 19px;

        font-size: 13px;
    }

    .section {
        padding: 60px 17px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .section-heading p {
        font-size: 14px;
    }


    /* PRODUCTOS */

    .products {
        grid-template-columns: repeat(2, 1fr);

        gap: 13px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-image {
        height: 165px;
    }

    .product-image img {
        padding: 13px;
    }

    .heart {
        top: 8px;
        right: 8px;

        width: 30px;
        height: 30px;

        font-size: 18px;
    }

    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        min-height: 35px;

        margin-bottom: 5px;

        font-size: 13px;
    }

    .price {
        margin-bottom: 12px;

        font-size: 19px;
    }

    .product-btn {
        padding: 9px 7px;

        font-size: 12px;

        border-radius: 20px;
    }

    .dots {
        margin-bottom: 10px;
    }

    .dot {
        width: 11px;
        height: 11px;
    }


    /* AYUDA */

    .help-section {
        padding: 0 17px 55px;
    }

    .help {
        border-radius: 18px;
    }

    .help-photo {
        min-height: 250px;
    }

    .help-photo span {
        top: 25px;
        left: 25px;

        font-size: 26px;
    }

    .help-content {
        padding: 35px 25px;
    }

    .help-content h2 {
        font-size: 36px;
    }

    .help-content p {
        font-size: 14px;
    }

    .help-btn {
        width: 100%;

        padding: 14px 20px;
    }

    .benefits {
        padding: 30px 20px;
    }

    footer {
        padding: 45px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;

        gap: 10px;

        margin-top: 30px;
    }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 430px) {

    .products {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 16px;
    }

    .product-info h3 {
        min-height: auto;

        font-size: 15px;
    }

    .price {
        font-size: 21px;
    }

    .product-btn {
        padding: 11px;

        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.product-card {
    animation: fadeUp .6s ease both;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

button:focus-visible,
a:focus-visible {

    outline: 3px solid rgba(75, 22, 141, .35);

    outline-offset: 3px;
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}