/* =========================================================
   NOSSO - AMBOS
   ETAPA 2
========================================================= */

:root {
    --color-primary: #183b4e;
    --color-primary-dark: #102c3b;
    --color-primary-light: #315d73;

    --color-accent: #c49b75;
    --color-accent-soft: #ead8c7;

    --color-background: #f7f8f7;
    --color-surface: #ffffff;
    --color-surface-alt: #eef2f2;

    --color-text: #172126;
    --color-text-soft: #68747a;
    --color-border: #dfe5e5;

    --color-success: #27734f;
    --color-success-soft: #e6f3ec;

    --color-error: #b43d3d;
    --color-error-soft: #faeaea;

    --color-warning: #9a6a22;
    --color-warning-soft: #fff5df;

    --shadow-sm:
        0 8px 25px rgba(25, 43, 51, 0.07);

    --shadow-md:
        0 18px 50px rgba(25, 43, 51, 0.12);

    --shadow-lg:
        0 30px 80px rgba(25, 43, 51, 0.16);

    --radius-xs: 7px;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 30px;

    --container-width: 1240px;

    --transition: 180ms ease;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--color-background);
    color: var(--color-text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;
}


/* =========================================================
   BOTONES
========================================================= */

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 24px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-weight: 700;

    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        opacity var(--transition);
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--color-primary);
    color: #ffffff;

    box-shadow:
        0 10px 22px rgba(24, 59, 78, 0.18);
}

.button-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.button-primary:disabled {
    opacity: 0.45;
}

.button-secondary {
    background: transparent;

    border-color: var(--color-primary);

    color: var(--color-primary);
}

.button-secondary:hover:not(:disabled) {
    background: var(--color-primary);

    color: #ffffff;
}

.button-full {
    width: 100%;
}

.icon-button {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    background: #ffffff;
    color: var(--color-text);

    font-size: 28px;
    line-height: 1;
}

.text-button {
    padding: 4px;

    border: 0;

    background: transparent;
    color: var(--color-primary);

    font-weight: 700;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;

    z-index: 1000;

    top: 0;

    background:
        rgba(247, 248, 247, 0.92);

    border-bottom:
        1px solid rgba(223, 229, 229, 0.85);

    backdrop-filter: blur(18px);
}

.header-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;

    flex-shrink: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-logo {
    width: 110px;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-secondary {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.brand-secondary {
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--color-accent);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;

    margin-left: auto;
}

.main-navigation a {
    position: relative;

    font-size: 14px;
    font-weight: 650;

    color: #425058;

    transition: color var(--transition);
}

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 2px;

    background: var(--color-primary);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform var(--transition);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-button,
.cart-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 14px;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    background: #ffffff;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 750;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.account-button:hover,
.cart-button:hover {
    border-color: var(--color-primary);

    box-shadow: var(--shadow-sm);
}

.account-icon {
    font-size: 16px;
}

.cart-count {
    min-width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    padding-inline: 5px;

    border-radius: 999px;

    background: var(--color-primary);

    color: #ffffff;

    font-size: 11px;
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);

    background: #ffffff;
}

.mobile-menu-button span {
    width: 100%;
    height: 2px;

    display: block;

    margin: 5px 0;

    background: var(--color-primary);
}


/* =========================================================
   HERO
========================================================= */

.hero
{
    position: relative;
    overflow: hidden;

    padding:
        clamp(68px, 9vw, 125px)
        0
        clamp(75px, 10vw, 135px);

    background-image:
        url("./assets/images/portada-hero.webp?v=1");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* =========================================================
   HERO - PROTECCIÓN DE TEXTO SOBRE LA IMAGEN
========================================================= */

.hero::before
{
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.88) 28%,
            rgba(255, 255, 255, 0.58) 45%,
            rgba(255, 255, 255, 0.12) 65%,
            rgba(255, 255, 255, 0) 78%
        );

    pointer-events: none;
}

.hero-grid
{
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, 0.95fr);

    align-items: center;

    gap: clamp(50px, 8vw, 110px);
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: var(--color-accent);

    font-size: 12px;
    font-weight: 850;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;

    margin-bottom: 26px;

    color: var(--color-primary);

    font-size:
        clamp(47px, 6.3vw, 85px);

    font-weight: 850;

    letter-spacing: -4px;
}

.hero h1 span {
    display: block;

    color: var(--color-accent);
}

.hero-description
{
    max-width: 660px;
    margin-bottom: 32px;

    color: var(--color-primary);

    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 500;

    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.55);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 46px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;

    gap: 34px;
}

.hero-features div {
    display: flex;
    flex-direction: column;
}

.hero-features strong
{
    color: var(--color-primary);
    font-weight: 850;
}

.hero-features span
{
    color: #4f5f66;
    font-size: 13px;
    font-weight: 500;
}

/* =========================================================
   HERO - LOGO
========================================================= */

.hero-visual {
    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-container {
    width: min(100%, 500px);
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    box-shadow:
        0 28px 70px
        rgba(24, 59, 78, 0.16);

    transition:
        transform 300ms ease,
        box-shadow 300ms ease;
}

.hero-logo-container:hover {
    transform: translateY(-5px);

    box-shadow:
        0 34px 80px
        rgba(24, 59, 78, 0.20);
}

.hero-logo-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */

.products-section,
.about-section,
.contact-section {
    padding:
        clamp(75px, 9vw, 120px)
        0;
}

.products-section {
    background: #ffffff;
}

.section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 450px);

    gap: 50px;

    align-items: end;

    margin-bottom: 42px;
}

.section-heading h2,
.about-content h2,
.contact-information h2 {
    margin-bottom: 0;

    color: var(--color-primary);

    font-size:
        clamp(36px, 4vw, 55px);

    letter-spacing: -2px;
}

.section-heading > p {
    margin-bottom: 4px;

    color: var(--color-text-soft);
}


/* =========================================================
   PRODUCTOS
========================================================= */

.products-status {
    padding: 40px;

    text-align: center;

    color: var(--color-text-soft);
}

.products-status[hidden] {
    display: none;
}

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.product-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-surface);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);

    border-color: #cfd8d8;

    box-shadow: var(--shadow-md);
}

.product-image-wrapper {
    position: relative;

    aspect-ratio: 4 / 4.5;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f0f3f2,
            #e6eceb
        );
}

.product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 400ms ease;
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-stock-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 7px 10px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.94);

    color: var(--color-primary);

    font-size: 11px;
    font-weight: 800;

    box-shadow: var(--shadow-sm);
}

.product-stock-badge.out-of-stock {
    color: var(--color-error);
}

.product-content {
    padding: 20px;

    display: flex;
    flex-direction: column;

    flex-grow: 1;
}

.product-card-code {
    margin-bottom: 5px;

    color: var(--color-text-soft);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.product-content h3 {
    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 18px;
}

.product-price-container {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 14px;
}

.product-price {
    color: var(--color-text);

    font-size: 22px;
    font-weight: 850;
}

.product-old-price {
    color: var(--color-text-soft);

    font-size: 13px;

    text-decoration: line-through;
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 20px;
}

.product-size {
    min-width: 31px;

    padding: 4px 8px;

    text-align: center;

    border-radius: 6px;

    background: var(--color-surface-alt);

    color: var(--color-text-soft);

    font-size: 11px;
    font-weight: 700;
}

.product-size.no-stock {
    opacity: 0.38;

    text-decoration: line-through;
}

.product-content .button {
    margin-top: auto;
}


/* =========================================================
   NOSOTROS
========================================================= */

.about-section {
    background:
        linear-gradient(
            180deg,
            #f7f8f7,
            #eff3f2
        );
}

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);

    gap:
        clamp(50px, 8vw, 100px);

    align-items: start;
}

.about-content p:not(.section-eyebrow) {
    color: var(--color-text-soft);

    font-size: 17px;
}

.about-content h2 {
    margin-bottom: 26px;
}

.about-highlight {
    margin-top: 36px;

    padding: 22px;

    display: flex;
    flex-direction: column;

    border-left:
        4px solid var(--color-accent);

    background: #ffffff;
}

.about-highlight strong {
    color: var(--color-primary);

    font-size: 24px;
}

.about-highlight span {
    color: var(--color-text-soft);
}

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.benefit-card {
    min-height: 220px;

    padding: 26px;

    border-radius: var(--radius-md);

    background: #ffffff;

    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    width: 44px;
    height: 44px;

    margin-bottom: 24px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--color-primary);

    color: #ffffff;

    font-size: 11px;
    font-weight: 850;
}

.benefit-card h3 {
    color: var(--color-primary);
}

.benefit-card p {
    margin-bottom: 0;

    color: var(--color-text-soft);
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-section {
    background: #ffffff;
}

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(420px, 1.2fr);

    gap:
        clamp(50px, 8vw, 110px);

    align-items: start;
}

.contact-information h2 {
    margin-bottom: 22px;
}

.contact-information >
p:not(.section-eyebrow) {
    color: var(--color-text-soft);

    font-size: 17px;
}

.contact-details {
    margin-top: 35px;

    display: grid;
    gap: 18px;
}

.contact-details div {
    display: flex;
    flex-direction: column;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--color-border);
}

.contact-details strong {
    color: var(--color-primary);
}

.contact-link {
    width: fit-content;

    margin: 2px 0;

    color: var(--color-primary);

    font-size: 15px;
    font-weight: 750;

    transition:
        color var(--transition),
        transform var(--transition);
}

.contact-link:hover {
    color: var(--color-accent);

    transform: translateX(3px);
}

.contact-details span {
    color: var(--color-text-soft);

    font-size: 14px;
}


/* =========================================================
   FORMULARIOS
========================================================= */

.contact-form,
.auth-form {
    padding:
        clamp(24px, 4vw, 38px);

    border-radius: var(--radius-lg);

    background: var(--color-background);

    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 750;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    outline: 0;

    background: #ffffff;

    color: var(--color-text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(24, 59, 78, 0.08);
}

textarea {
    resize: vertical;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--color-error);
}

.form-error {
    min-height: 18px;

    display: block;

    margin-top: 5px;

    color: var(--color-error);

    font-size: 12px;
}

.form-message {
    min-height: 20px;

    margin-top: 14px;

    font-size: 13px;
    font-weight: 650;
}

.form-message.success {
    color: var(--color-success);
}

.form-message.error {
    color: var(--color-error);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--color-primary-dark);

    color:
        rgba(255, 255, 255, 0.75);
}

.footer-grid {
    padding: 60px 0;

    display: grid;

   grid-template-columns:
    1.4fr
    0.7fr
    0.7fr
    0.8fr;

    gap: 60px;
}

.footer-brand {
    margin-bottom: 18px;
}

.footer-brand .brand-main {
    color: #ffffff;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid >
div:first-child p {
    max-width: 400px;
}

.footer-grid strong {
    margin-bottom: 7px;

    color: #ffffff;
}

.footer-grid a:not(.brand) {
    font-size: 14px;
}

.footer-grid a:not(.brand):hover {
    color: #ffffff;
}

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom .container {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-button {
    position: fixed;

    z-index: 900;

    right: 22px;
    bottom: 22px;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #25d366;

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;

    box-shadow:
        0 15px 35px
        rgba(37, 211, 102, 0.30);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.whatsapp-button:hover {
    transform:
        translateY(-4px)
        scale(1.03);

    box-shadow:
        0 20px 38px
        rgba(37, 211, 102, 0.38);
}


/* =========================================================
   CARRITO
========================================================= */

.drawer-overlay {
    position: fixed;

    z-index: 1400;

    inset: 0;

    background:
        rgba(15, 28, 34, 0.48);

    backdrop-filter: blur(3px);
}

.cart-drawer {
    position: fixed;

    z-index: 1500;

    top: 0;
    right: 0;

    width:
        min(440px, 100%);

    height: 100dvh;

    display: flex;
    flex-direction: column;

    padding: 24px;

    background: #ffffff;

    box-shadow:
        -20px 0 50px
        rgba(0, 0, 0, 0.14);

    transform:
        translateX(105%);

    transition:
        transform 260ms ease;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: start;
    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--color-border);
}

.cart-drawer-header h2 {
    margin: 0;

    color: var(--color-primary);
}

.cart-items {
    overflow-y: auto;

    flex-grow: 1;

    padding: 15px 2px;
}

.cart-item {
    display: grid;

    grid-template-columns:
        72px
        minmax(0, 1fr)
        auto;

    gap: 13px;

    padding: 15px 0;

    border-bottom:
        1px solid var(--color-border);
}

.cart-item img {
    width: 72px;
    height: 82px;

    object-fit: cover;

    border-radius: 10px;

    background: var(--color-surface-alt);
}

.cart-item-content strong {
    display: block;

    color: var(--color-primary);
}

.cart-item-content span {
    display: block;

    margin-top: 2px;

    color: var(--color-text-soft);

    font-size: 12px;
}

.cart-item-quantity {
    margin-top: 8px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    width: 26px;
    height: 26px;

    padding: 0;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    background: #ffffff;
}

.cart-remove {
    align-self: start;

    border: 0;

    background: transparent;

    color: var(--color-error);

    font-size: 22px;
}

.cart-empty {
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--color-text-soft);
}

.cart-empty[hidden] {
    display: none;
}

.cart-empty span {
    margin-bottom: 12px;

    font-size: 44px;
}

.cart-empty strong {
    color: var(--color-primary);
}

.cart-summary {
    padding-top: 20px;

    border-top:
        1px solid var(--color-border);
}

.cart-summary > div {
    margin-bottom: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-summary strong {
    color: var(--color-primary);

    font-size: 23px;
}

.cart-summary small {
    display: block;

    margin-top: 10px;

    text-align: center;

    color: var(--color-text-soft);
}


/* =========================================================
   MODAL GENERAL
========================================================= */

.modal {
    width:
        min(1100px, calc(100% - 30px));

    max-width: 1100px;

    max-height:
        calc(100dvh - 30px);

    padding: 0;

    overflow: visible;

    border: 0;
    border-radius: var(--radius-lg);

    background: #ffffff;

    box-shadow: var(--shadow-lg);
}

.modal::backdrop {
    background:
        rgba(16, 31, 39, 0.65);

    backdrop-filter: blur(6px);
}

.modal-close {
    position: absolute;

    z-index: 20;

    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--color-border);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.94);

    color: var(--color-primary);

    font-size: 27px;

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   DETALLE PRODUCTO
========================================================= */

.product-modal {
    overflow: auto;
}

.product-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(390px, 0.92fr);

    min-height: 650px;
}


/* =========================================================
   GALERÍA
========================================================= */

.product-gallery {
    padding: 24px;

    display: flex;
    flex-direction: column;

    gap: 13px;

    background: #f4f6f5;

    border-radius:
        var(--radius-lg)
        0
        0
        var(--radius-lg);
}

.product-main-image-wrapper {
    position: relative;

    flex-grow: 1;

    min-height: 520px;

    overflow: hidden;

    border-radius: var(--radius-md);

    background: #e9eeee;
}

.product-main-image {
    width: 100%;
    height: 100%;

    position: absolute;

    inset: 0;

    object-fit: cover;
}

.product-detail-badge {
    position: absolute;

    z-index: 2;

    top: 16px;
    left: 16px;

    padding: 7px 12px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.94);

    color: var(--color-primary);

    font-size: 11px;
    font-weight: 800;

    box-shadow: var(--shadow-sm);
}

.product-detail-badge[hidden] {
    display: none;
}

.product-thumbnails {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding-bottom: 2px;
}

.product-thumbnail {
    width: 72px;
    min-width: 72px;
    height: 82px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 10px;

    background: #ffffff;

    opacity: 0.68;

    transition:
        border-color var(--transition),
        opacity var(--transition),
        transform var(--transition);
}

.product-thumbnail:hover {
    opacity: 1;
}

.product-thumbnail.active {
    border-color: var(--color-primary);

    opacity: 1;

    transform:
        translateY(-1px);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   INFORMACIÓN DETALLE
========================================================= */

.product-detail-content {
    padding:
        clamp(42px, 5vw, 62px)
        clamp(30px, 4vw, 52px);

    align-self: center;
}

.product-detail-code {
    margin-bottom: 8px;

    color: var(--color-text-soft);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-detail-content h2 {
    margin-bottom: 13px;

    color: var(--color-primary);

    font-size:
        clamp(31px, 4vw, 45px);

    letter-spacing: -1.4px;
}

.product-detail-price-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 21px;
}

.modal-product-price {
    color: var(--color-text);

    font-size: 30px;
    font-weight: 850;
}

.modal-product-old-price {
    color: var(--color-text-soft);

    font-size: 16px;

    text-decoration: line-through;
}

.modal-product-old-price[hidden] {
    display: none;
}

.modal-product-description {
    margin-bottom: 20px;

    color: var(--color-text-soft);
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.product-detail-meta span {
    padding: 6px 10px;

    border-radius: 999px;

    background: var(--color-surface-alt);

    color: var(--color-text-soft);

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   OPCIONES
========================================================= */

.product-option {
    margin: 24px 0;
}

.product-option > label,
.option-heading > label {
    display: block;

    color: var(--color-primary);

    font-size: 14px;
    font-weight: 750;
}

.option-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}

.stock-live-indicator {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--color-success);

    font-size: 10px;
    font-weight: 700;
}

.stock-live-indicator > span {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: var(--color-success);

    box-shadow:
        0 0 0 4px
        rgba(39, 115, 79, 0.10);
}


/* =========================================================
   TALLES
========================================================= */

.size-selector {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.size-button {
    min-width: 48px;
    height: 43px;

    padding: 0 11px;

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-xs);

    background: #ffffff;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 750;

    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.size-button:hover:not(:disabled) {
    border-color: var(--color-primary);

    transform: translateY(-1px);
}

.size-button.selected {
    border-color: var(--color-primary);

    background: var(--color-primary);

    color: #ffffff;
}

.size-button:disabled {
    opacity: 0.35;

    text-decoration: line-through;
}


/* =========================================================
   STOCK
========================================================= */

.stock-information {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px 14px;

    border-radius: var(--radius-sm);

    background: var(--color-surface-alt);

    color: var(--color-text-soft);

    font-size: 13px;
}

.stock-information strong {
    color: var(--color-primary);
}

.stock-information strong.low-stock {
    color: var(--color-warning);
}

.stock-information strong.no-stock {
    color: var(--color-error);
}


/* =========================================================
   CANTIDAD
========================================================= */

.quantity-selector {
    width: 145px;

    display: grid;

    grid-template-columns:
        42px
        1fr
        42px;

    margin-top: 9px;

    border:
        1px solid var(--color-border);

    border-radius: 999px;

    overflow: hidden;

    background: #ffffff;
}

.quantity-selector button {
    border: 0;

    background: transparent;

    color: var(--color-primary);

    font-size: 20px;
    font-weight: 500;
}

.quantity-selector button:hover:not(:disabled) {
    background: var(--color-surface-alt);
}

.quantity-selector button:disabled {
    opacity: 0.35;
}

.quantity-selector input {
    width: 100%;
    height: 43px;

    padding: 0;

    border: 0;

    outline: 0;

    text-align: center;

    color: var(--color-primary);

    font-weight: 800;

    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    margin: 0;

    appearance: none;
}


/* =========================================================
   CALCULADOR DE ENVÍO
========================================================= */

.shipping-calculator {
    margin-top: 28px;

    padding: 17px;

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-md);

    background: #fafbfb;
}

.shipping-calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 13px;
}

.shipping-calculator-header > div {
    display: flex;
    flex-direction: column;
}

.shipping-calculator-header strong {
    color: var(--color-primary);

    font-size: 14px;
}

.shipping-calculator-header span {
    color: var(--color-text-soft);

    font-size: 11px;
}

.shipping-calculator-header > span {
    font-size: 24px;
}

.shipping-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 8px;
}

.shipping-form input {
    width: 100%;

    min-height: 46px;

    padding: 0 14px;

    border:
        1px solid var(--color-border);

    border-radius: 999px;

    outline: 0;

    background: #ffffff;

    color: var(--color-text);
}

.shipping-form input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(24, 59, 78, 0.07);
}

.shipping-form .button {
    min-height: 46px;

    padding-inline: 18px;
}

.shipping-result {
    display: none;

    margin-top: 12px;

    padding: 11px 13px;

    border-radius: var(--radius-sm);

    font-size: 12px;
}

.shipping-result.success {
    display: block;

    background: var(--color-success-soft);

    color: var(--color-success);
}

.shipping-result.error {
    display: block;

    background: var(--color-error-soft);

    color: var(--color-error);
}


/* =========================================================
   RESUMEN PRODUCTO
========================================================= */

.product-selection-summary {
    margin-top: 22px;

    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top:
        1px solid var(--color-border);
}

.product-selection-summary span {
    color: var(--color-text-soft);
}

.product-selection-summary strong {
    color: var(--color-primary);

    font-size: 25px;
}

.product-add-button {
    margin-top: 16px;

    min-height: 54px;
}

.product-detail-note {
    margin:
        11px
        0
        0;

    text-align: center;

    color: var(--color-text-soft);

    font-size: 11px;
}


/* =========================================================
   AUTH
========================================================= */

.auth-modal {
    width:
        min(500px, calc(100% - 30px));
}

.auth-content {
    padding:
        45px
        clamp(24px, 5vw, 45px);
}

.auth-content h2 {
    margin-bottom: 10px;

    color: var(--color-primary);
}

.auth-content > p {
    color: var(--color-text-soft);
}

.auth-form {
    margin-top: 25px;

    padding: 0;

    background: transparent;

    box-shadow: none;
}

.auth-toggle {
    width: 100%;

    margin-top: 17px;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    z-index: 3000;

    left: 50%;
    bottom: 30px;

    min-width: 240px;

    max-width:
        min(430px, calc(100% - 30px));

    padding: 14px 20px;

    border-radius: 999px;

    background: var(--color-primary-dark);

    color: #ffffff;

    text-align: center;

    font-size: 13px;
    font-weight: 650;

    box-shadow: var(--shadow-md);

    opacity: 0;

    visibility: hidden;

    transform:
        translate(-50%, 20px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);
}

.toast.is-visible {
    opacity: 1;

    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   RESPONSIVE 1100
========================================================= */

@media (max-width: 1100px) {

    .main-navigation {
        position: fixed;

        top: 77px;
        left: 20px;
        right: 20px;

        display: none;

        padding: 20px;

        flex-direction: column;
        align-items: stretch;

        border-radius: var(--radius-md);

        background: #ffffff;

        box-shadow: var(--shadow-md);
    }

      .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 780px;
    }

    .hero-visual {
        width: min(100%, 580px);

        margin-inline: auto;
    }

    .hero-logo-container {
        width: min(100%, 480px);
    }


    .main-navigation.is-open {
        display: flex;
    }

    .mobile-menu-button {
        display: block;

        margin-left: auto;
    }

    .header-actions {
        margin-left: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 780px;
    }
.hero-content
{
    position: relative;
    z-index: 2;
}
    .hero-visual {
        width: min(100%, 580px);

        margin-inline: auto;
    }

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE 900
========================================================= */

@media (max-width: 900px) {

    .section-heading,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 15px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        gap: 45px;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-grid >
    div:first-child {
        grid-column: 1 / -1;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        border-radius:
            var(--radius-lg)
            var(--radius-lg)
            0
            0;
    }

    .product-main-image-wrapper {
        min-height: 500px;
    }

}


/* =========================================================
   RESPONSIVE 640
========================================================= */

@media (max-width: 640px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container-width)
            );
    }

    .header-container {
        min-height: 68px;

        gap: 8px;
    }

   .brand-logo {
        width: 82px;
    }

    .brand-secondary {
        display: none;
    }

    .account-label,
    .cart-label {
        display: none;
    }

    .account-button,
    .cart-button {
        min-width: 42px;

        padding: 0 10px;
    }

    .mobile-menu-button {
        order: 4;

        margin-left: 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-navigation {
        top: 69px;
        left: 14px;
        right: 14px;
    }

    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        letter-spacing: -2.5px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-features {
        gap: 20px;
    }

    .hero-features div {
        width:
            calc(50% - 10px);
    }

    .hero-visual {
        min-height: 410px;
    }

    .hero-card-main {
        left: 50%;
        right: auto;

        width:
            min(88%, 360px);

        min-height: 370px;

        padding: 25px;

        transform:
            translateX(-50%)
            rotate(2deg);
    }

    .hero-uniform-illustration {
        width: 165px;
        height: 205px;
    }

    .floating-card-top {
        top: 30px;
        left: 0;
    }

    .floating-card-bottom {
        right: 0;
        bottom: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .product-card {
        width: 100%;

        max-width: 500px;

        margin-inline: auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-grid >
    div:first-child {
        grid-column: auto;
    }

    .footer-bottom .container {
        padding: 18px 0;

        flex-direction: column;
        justify-content: center;

        text-align: center;
    }

    .whatsapp-button {
        width: 54px;
        height: 54px;

        right: 15px;
        bottom: 15px;
    }

    .modal {
        width:
            calc(100% - 16px);

        max-height:
            calc(100dvh - 16px);

        border-radius: 20px;
    }

    .product-gallery {
        padding: 12px;

        border-radius:
            20px
            20px
            0
            0;
    }

    .product-main-image-wrapper {
        min-height: 380px;
    }

    .product-detail-content {
        padding: 30px 20px;
    }

    .product-detail-content h2 {
        font-size: 31px;
    }

    .option-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;
    }

    .shipping-form {
        grid-template-columns: 1fr;
    }

    .shipping-form .button {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE 390
========================================================= */

@media (max-width: 390px) {

    .header-container {
        gap: 5px;
    }

    .brand-main {
        font-size: 22px;
    }

    .account-button,
    .cart-button,
    .mobile-menu-button {
        min-width: 38px;

        width: auto;
        height: 38px;

        padding-inline: 8px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .product-main-image-wrapper {
        min-height: 330px;
    }

      .brand-logo {
        width: 76px;
    }
}

/* =========================================================
   CRÉDITO DESARROLLADOR
========================================================= */

.developer-credit {
    width: 100%;

    padding: 18px 20px;

    border-top: 1px solid
        rgba(255, 255, 255, 0.12);

    text-align: center;

    font-size: 12px;
    letter-spacing: 0.04em;
}

.developer-credit span {
    opacity: 0.7;
}

.developer-credit a {
    margin-left: 4px;

    color: inherit;

    font-weight: 800;
    letter-spacing: 0.08em;

    text-decoration: none;

    transition:
        opacity 180ms ease,
        color 180ms ease;
}

.developer-credit a:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* =========================================================
   HERO - AJUSTE PARA DISPOSITIVOS MÓVILES
========================================================= */

@media (max-width: 768px)
{
    .hero
    {
        background-position: 30% center;
        background-size: cover;
    }

    .hero-logo-container
    {
        max-width: 350px;
    }
}

/* =========================================================
   HERO - MEJOR LEGIBILIDAD EN MÓVILES
========================================================= */

@media (max-width: 768px) {

    /* Descripción principal */
    .hero-description {
        color: var(--color-primary);

        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.95),
            0 0 6px rgba(255, 255, 255, 0.65);
    }

     .hero-features div {
        padding: 7px 9px;

        border-radius: 8px;

        background: rgba(255, 255, 255, 0.20);
    }

    .hero-features strong {
        color: var(--color-primary);

        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.95),
            0 0 5px rgba(255, 255, 255, 0.75);
    }

    .hero-features span {
        color: #40545c;

        text-shadow:
            0 1px 2px rgba(255, 255, 255, 0.95),
            0 0 5px rgba(255, 255, 255, 0.65);
    }
}

/* =========================================================
   CALCULADOR DE ENVÍO - PROVINCIA + CÓDIGO POSTAL
========================================================= */

.shipping-calculator form {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(90px, 0.65fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
}

.shipping-calculator select,
.shipping-calculator input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;

    border: 1px solid #d9d9d9;
    border-radius: 10px;

    background: #fff;
    color: #333;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shipping-calculator select {
    cursor: pointer;
    appearance: auto;
}

.shipping-calculator select:focus,
.shipping-calculator input:focus {
    border-color: #777;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.shipping-calculator select:invalid {
    color: #777;
}

.shipping-calculator form button {
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    white-space: nowrap;
}
.shipping-calculator .shipping-result {
    margin-top: 10px;
}


/* =========================
   TABLET / MÓVIL
========================= */

@media (max-width: 640px) {

    .shipping-calculator form {
        grid-template-columns: 1fr 1fr;
    }

    .shipping-calculator select {
        grid-column: 1 / -1;
    }

    .shipping-calculator input {
        grid-column: 1;
    }

    .shipping-calculator form button {
        grid-column: 2;
        width: 100%;
    }
}


/* =========================
   MÓVIL PEQUEÑO
========================= */

@media (max-width: 420px) {

    .shipping-calculator form {
        grid-template-columns: 1fr;
    }

    .shipping-calculator select,
    .shipping-calculator input,
    .shipping-calculator form button {
        grid-column: 1;
        width: 100%;
    }
}