/* =========================================================
   CURSOR CORATTO
   Patita abierta / patita cerrada al presionar
   ========================================================= */

html,
body,
body * {
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='%237b542f'%3E%3Cellipse cx='17' cy='22' rx='7.4' ry='6.1'/%3E%3Cellipse cx='7.8' cy='12.8' rx='3.2' ry='4.3' transform='rotate(-28 7.8 12.8)'/%3E%3Cellipse cx='13.8' cy='8.2' rx='3' ry='4.1' transform='rotate(-10 13.8 8.2)'/%3E%3Cellipse cx='20.2' cy='8.2' rx='3' ry='4.1' transform='rotate(10 20.2 8.2)'/%3E%3Cellipse cx='26.2' cy='12.8' rx='3.2' ry='4.3' transform='rotate(28 26.2 12.8)'/%3E%3C/g%3E%3C/svg%3E")
        17 18,
        auto;
}

/* Patita cerrada y dorada mientras se mantiene presionado */
html.cursor-paw-pressed,
html.cursor-paw-pressed body,
html.cursor-paw-pressed body * {
    cursor:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='%23b77a2c'%3E%3Cellipse cx='17' cy='21' rx='8' ry='6.8'/%3E%3Cellipse cx='10.2' cy='12.6' rx='3.4' ry='3.8' transform='rotate(-18 10.2 12.6)'/%3E%3Cellipse cx='14.8' cy='9.7' rx='3.2' ry='3.7' transform='rotate(-6 14.8 9.7)'/%3E%3Cellipse cx='19.2' cy='9.7' rx='3.2' ry='3.7' transform='rotate(6 19.2 9.7)'/%3E%3Cellipse cx='23.8' cy='12.6' rx='3.4' ry='3.8' transform='rotate(18 23.8 12.6)'/%3E%3C/g%3E%3C/svg%3E")
        17 19,
        pointer;
}

:root {
    --public-cream: #f8efe5;
    --public-brown: #3d261a;
    --public-gold: #bd8b45;
    --public-paper: #fffaf4
}

.public-page {
    margin: 0;
    background: var(--public-cream);
    color: var(--public-brown);
    font-family: Arial, sans-serif
}

.public-page main {
    min-height: 65vh
}

.public-shell {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: clamp(90px, 12vw, 150px) 0 80px
}

.public-hero-card,
.public-form-card {
    background: var(--public-paper);
    border: 1px solid rgba(61, 38, 26, .12);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(61, 38, 26, .08);
    padding: clamp(28px, 6vw, 70px)
}

.public-eyebrow {
    display: block;
    color: var(--public-gold);
    font-size: .78rem;
    letter-spacing: .16em;
    font-weight: 700;
    margin-bottom: 16px
}

.public-hero-card h1,
.public-form-card h1 {
    font-family: Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.02;
    max-width: 850px;
    margin: 0 0 22px
}

.public-hero-card p {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.75
}

.public-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.public-form .full {
    grid-column: 1/-1
}

.public-form label {
    display: grid;
    gap: 8px;
    font-weight: 700
}

.public-form input,
.public-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(61, 38, 26, .22);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    font: inherit;
    color: inherit
}

.public-form textarea {
    min-height: 150px;
    resize: vertical
}

.public-form__check {
    display: flex !important;
    grid-column: 1/-1;
    align-items: flex-start;
    font-weight: 400 !important
}

.public-form__check input {
    width: auto;
    margin-top: 4px
}

.form-errors,
.form-success {
    grid-column: 1/-1;
    border-radius: 14px;
    padding: 14px 18px
}

.form-errors {
    background: #fff0ed;
    color: #812b1f
}

.form-success {
    background: #f5ead8;
    color: #53341e
}

.auth-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px
}

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;

    display: none;
    grid-template-columns: minmax(14rem, 1.05fr) repeat(2, minmax(10rem, .95fr));
    grid-template-rows: auto;
    column-gap: 2rem;
    row-gap: 0;

    width: min(48rem, calc(100vw - 2rem));
    margin-top: .55rem;
    padding: 1.5rem;

    border: 1px solid rgb(166 108 39 / 16%);
    border-radius: 0 0 1.5rem 1.5rem;

    background:
        radial-gradient(circle at 4% 12%,
            rgb(189 125 49 / 12%),
            transparent 13rem),
        #fffaf3;

    box-shadow:
        0 1.5rem 3.5rem rgb(61 38 26 / 15%);

    transform: translateX(-50%);
}

.nav-dropdown__menu::before {
    content:
        "EXPLORA CORATTO\A"
        "Todo para cuidarlos mejor\A"
        "Alimentación, bienestar, juego y accesorios para encontrar más rápido lo que necesitas.";

    grid-column: 1;
    grid-row: 1 / span 4;

    display: block;
    padding: .25rem 1.75rem .5rem 0;

    border-right: 1px solid rgb(166 108 39 / 16%);

    color: #635044;

    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.55;
    white-space: pre-line;
}

.nav-dropdown__menu::first-line {
    color: #a56727;

    font-family: var(--sans);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    height: .65rem;
}

.nav-dropdown.is-open .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown:hover .nav-dropdown__menu {
    display: grid;
}

.nav-dropdown__menu a {
    min-height: 3.25rem;
    padding: .7rem .8rem !important;

    border: 1px solid transparent;
    border-radius: .95rem;

    color: #513a2d !important;
    background: rgb(255 255 255 / 20%);

    font-size: .84rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    transition:
        background 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.nav-dropdown__menu a::after {
    display: none !important;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
    color: #3d291f !important;
    border-color: rgb(189 125 49 / 20%);
    background: #f1dfc6;
    transform: translateY(-1px);
}

.nav-dropdown__all {
    grid-column: 1;
    grid-row: 4;
    align-self: end;

    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;

    width: fit-content;
    min-height: auto;
    margin: 1.1rem 0 0;
    padding: .65rem 0 .25rem !important;

    border: 0 !important;
    border-bottom: 1px solid rgb(165 103 39 / 45%) !important;
    border-radius: 0 !important;

    color: #8f5c25 !important;
    background: transparent !important;

    font-family: var(--sans);
    font-size: .76rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;

    transition:
        color 170ms ease,
        border-color 170ms ease,
        transform 170ms ease;
}

.nav-dropdown__all:hover,
.nav-dropdown__all:focus-visible {
    color: #4c3325 !important;
    background: transparent !important;
    border-color: #4c3325 !important;
    transform: translateX(3px);
}


.nav-dropdown__all::before {
    font-size: .78rem;
}

.public-search {
    border-top: 1px solid rgba(61, 38, 26, .1);
    background: #fffaf4;
    padding: 16px
}

.public-search form {
    width: min(850px, calc(100% - 32px));
    margin: auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: end
}

.public-search label {
    grid-column: 1/-1;
    font-weight: 700
}

.public-search input {
    min-width: 0;
    border: 1px solid rgba(61, 38, 26, .22);
    border-radius: 999px;
    padding: 13px 18px
}

.public-search__close {
    border: 0;
    background: transparent;
    font-size: 2rem;
    cursor: pointer
}

.field-note {
    font-size: .9rem;
    opacity: .75
}

.site-header {
    z-index: 100
}

.main-nav a.active,
.main-nav button.active {
    color: var(--public-gold)
}
.header-mobile-account {
    display: none;
}

@media(max-width:1180px) {
    .public-form {
        grid-template-columns: 1fr
    }

    .public-form .full {
        grid-column: auto
    }

    .nav-dropdown {
        display: block;
        width: 100%;
    }

    .main-nav button.main-nav__products {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;

        padding: 14px 0;

        text-align: left;
    }

    .main-nav__products-icon {
        width: 1.05rem;
        height: 1.05rem;
        flex: 0 0 auto;

        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;

        transition: transform 180ms ease;
    }

    .nav-dropdown.is-open .main-nav__products-icon {
        transform: rotate(180deg);
    }

    /* En móvil desaparece la presentación editorial del mega menú desktop. */
    .nav-dropdown__menu::before {
        content: none;
        display: none;
    }
    .nav-dropdown__category {
        grid-column: 1 !important;
        grid-row: auto !important;

        width: 100%;
    }

    .nav-dropdown__all {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    /* El estado móvil depende únicamente de .is-open. */
    .nav-dropdown:not(.is-open) .nav-dropdown__menu {
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid;
    }

    .nav-dropdown__menu {
        position: static;

        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-flow: row;
        gap: .15rem;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        margin: .15rem 0 .55rem;
        padding: .35rem 0 .45rem .8rem;

        overflow: hidden;

        border: 0;
        border-left: 1px solid rgb(189 125 49 / 28%);
        border-radius: 0;

        background: transparent;
        box-shadow: none;

        transform: none;
    }

    .nav-dropdown__menu a {
        display: flex;
        min-height: 2.65rem;
        align-items: center;

        padding: .55rem .7rem !important;

        border: 0;
        border-radius: .65rem;

        color: #5b4030 !important;
        background: transparent;

        font-size: .86rem !important;
        font-weight: 650 !important;
    }

    .nav-dropdown__menu a:hover,
    .nav-dropdown__menu a:focus-visible {
        color: #70451f !important;
        border-color: transparent;
        background: #f5e6d2;

        transform: none;
    }

    .nav-dropdown__all {
        grid-column: auto;
        grid-row: auto;

        width: 100%;
        min-height: 2.65rem;

        margin: .2rem 0 0;
        padding: .6rem .7rem !important;

        border: 0 !important;
        border-radius: .65rem !important;

        color: #9a632a !important;
        background: transparent !important;

        font-size: .78rem !important;
    }

    .public-search form {
        grid-template-columns: 1fr auto
    }

    .public-search label {
        grid-column: 1/-1
    }

    .public-search__close {
        grid-column: 2
    }

    .public-shell {
        width: min(100% - 24px, 1120px)
    }
    .header-mobile-account {
        display: inline-grid;
        place-items: center;
    
        width: 2.75rem;
        height: 2.75rem;
        flex: 0 0 2.75rem;
    
        margin-left: auto;
    
        border: 1px solid rgb(61 38 26 / 12%);
        border-radius: 50%;
    
        color: var(--public-brown);
        background: rgb(255 250 244 / 88%);
    
        text-decoration: none;
    }
    
    .header-mobile-account svg {
        width: 1.35rem;
        height: 1.35rem;
    
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .header-mobile-account:hover,
    .header-mobile-account:focus-visible {
        color: var(--public-gold);
        border-color: rgb(189 139 69 / 35%);
    }
}

/* =========================================================
   FOOTER PÚBLICO
   ========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;

    color: #f8efe5;
    background:
        radial-gradient(circle at 18% 20%,
            rgb(201 117 10 / 8%),
            transparent 22rem),
        linear-gradient(135deg,
            #11110f 0%,
            #090b0a 55%,
            #12100d 100%);

    border-top: 1px solid rgb(201 117 10 / 24%);
}

.site-footer__main {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.35fr) minmax(120px, 0.55fr) minmax(150px, 0.7fr) minmax(190px, 0.8fr) minmax(260px, 1.2fr);
    align-items: start;
    gap: 0;
    width: min(calc(100% - 48px), 1720px);
    max-width: none;
    padding-block: 1.15rem 0.35rem;
}

.site-footer__identity,
.site-footer__column,
.site-footer__newsletter {
    min-height: auto;
    padding-inline: clamp(1.25rem, 2.2vw, 2.25rem);
}

.site-footer__identity {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    padding-left: 0;
    overflow: hidden;
}

.site-footer__phrase {
    display: block;
    width: min(100%, 330px);
    height: 300px;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.site-footer__column,
.site-footer__newsletter {
    border-left: 1px solid rgb(201 117 10 / 25%);
}

.site-footer h2 {
    margin: 0 0 0.85rem;

    color: #d89121;

    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__column a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    margin-block: 0.18rem;

    color: rgb(255 250 244 / 78%);

    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.site-footer__column a:hover,
.site-footer__column a:focus-visible {
    color: #e8a335;
    transform: translateX(3px);
}

.site-footer__contact a span {
    width: 1rem;
    flex: 0 0 auto;

    color: #d89121;
    text-align: center;
}

.site-footer__newsletter p {
    max-width: 18rem;
    margin: 0 0 0.9rem;

    color: rgb(255 250 244 / 68%);

    font-size: 0.76rem;
    line-height: 1.5;
}

.site-footer__newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.6rem;

    width: min(100%, 19rem);
    min-height: 2.65rem;

    overflow: hidden;

    border: 1px solid rgb(216 145 33 / 34%);
    border-radius: 999px;

    background: #fffaf4;

    box-shadow:
        0 0.7rem 1.6rem rgb(0 0 0 / 18%),
        inset 0 1px 0 rgb(255 255 255 / 80%);
}

.site-footer__newsletter-form input {
    min-width: 0;
    padding: 0.72rem 0.95rem;

    border: 0;
    outline: 0;

    color: #3d261a;
    background: transparent;

    font: inherit;
    font-size: 0.78rem;
}

.site-footer__newsletter-form input::placeholder {
    color: #8a796d;
}

.site-footer__newsletter-form button {
    display: grid;
    place-items: center;

    width: 2.6rem;
    height: 2.6rem;
    padding: 0;

    border: 0;
    border-radius: 50%;

    color: #fff;
    background: linear-gradient(135deg, #dc9220, #b96208);

    cursor: pointer;

    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.site-footer__newsletter-form button:hover,
.site-footer__newsletter-form button:focus-visible {
    filter: brightness(1.08);
    transform: rotate(-8deg) scale(1.05);
}

.site-footer__bottom {
    border-top: 1px solid rgb(216 145 33 / 27%);
    background: rgb(0 0 0 / 16%);
}

.site-footer__bottom .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
}

.site-footer__bottom p {
    margin: 0;

    color: rgb(255 250 244 / 64%);

    font-size: 0.68rem;
    line-height: 1.4;
    text-align: center;
}

.site-footer__bottom-paw {
    position: absolute;
    right: 1rem;
    top: 50%;

    color: #d89121;
    font-size: 1rem;

    transform: translateY(-50%);
}

/* =========================================================
   FOOTER · TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 0;
    }

    .site-footer__identity {
        grid-column: 1 / -1;
        min-height: auto;
        padding-inline: 1.5rem;
    }

    .site-footer__phrase {
        width: min(100%, 390px);
    }

    .site-footer__column,
    .site-footer__newsletter {
        min-height: auto;
    }

    .site-footer__column:nth-of-type(2),
    .site-footer__newsletter {
        border-left: 1px solid rgb(201 117 10 / 25%);
    }
}

/* =========================================================
   FOOTER · MÓVIL
   ========================================================= */

@media (max-width: 640px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 0;
        padding-block: 2rem 1.25rem;
    }

    .site-footer__identity,
    .site-footer__column,
    .site-footer__newsletter {
        width: 100%;
        padding: 1.35rem 0;
        border-left: 0;
        border-bottom: 1px solid rgb(201 117 10 / 20%);
    }

    .site-footer__identity {
        padding-top: 0;
    }

    .site-footer__phrase {
        width: min(100%, 315px);
        max-height: 130px;
    }

    .site-footer__newsletter {
        border-bottom: 0;
    }

    .site-footer__newsletter-form {
        width: 100%;
    }

    .site-footer__bottom .container {
        min-height: 3.2rem;
        padding-right: 2.5rem;
    }

    .site-footer__bottom-paw {
        right: 0.3rem;
    }
}

.site-footer__newsletter-paw {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    background: currentColor;
    -webkit-mask: var(--paw-mask) center / contain no-repeat;
    mask: var(--paw-mask) center / contain no-repeat;
}