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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f3eee7;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


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

:root {
    --cream: #f3eee7;
    --cream-light: #f8f5f0;
    --white: #ffffff;
    --black: #111111;
    --gray: #d8d0c7;
    --border: #ddd6ce;
    --text-soft: #625c56;

    --serif: Georgia, "Times New Roman", serif;
}


/* ========================================
   HEADER
======================================== */

.header {
    height: 78px;

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

    padding: 0 6%;

    background: rgba(250, 248, 245, .97);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.logo {
    font-size: 22px;
    letter-spacing: -1px;
}

.nav {
    display: flex;
    gap: 38px;
}

.nav a {
    font-size: 14px;
    transition: opacity .2s ease;
}

.nav a:hover {
    opacity: .5;
}

.btn-header {
    background: var(--black);
    color: white;

    padding: 16px 28px;

    border-radius: 40px;

    font-size: 11px;
    letter-spacing: 1.5px;
}


/* ========================================
   GENERAL
======================================== */

.section {
    padding: 110px 6%;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 5px;
    line-height: 1.5;

    margin-bottom: 28px;
}

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

    width: fit-content;

    margin-top: 34px;

    padding: 19px 31px;

    background: var(--black);
    color: white;

    border-radius: 50px;

    font-size: 11px;
    letter-spacing: 1.4px;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.btn-dark:hover {
    transform: translateY(-2px);
    opacity: .85;
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: calc(100vh - 78px);

    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-text {
    padding: 75px 7%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-family: var(--serif);

    font-size: clamp(75px, 8vw, 145px);
    font-weight: 400;

    line-height: .83;

    letter-spacing: -7px;
}

.hero h1 em {
    display: block;

    font-weight: 400;
}

.hero-description {
    max-width: 590px;

    margin-top: 42px;

    font-size: 18px;
    line-height: 1.7;
}

.hero-small {
    margin-top: 65px;

    font-size: 9px;
    line-height: 2;

    letter-spacing: 5px;
}

.hero-image {
    background: #d8d0c7;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ========================================
   HEADINGS
======================================== */

.section-heading,
.portfolio-heading,
.shop-heading {
    display: grid;

    grid-template-columns: 1.25fr .75fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 60px;
}

.section-heading h2,
.portfolio-heading h2,
.shop-heading h2,
.about-content h2 {
    font-family: var(--serif);

    font-size: clamp(55px, 6vw, 100px);
    font-weight: 400;

    line-height: .93;

    letter-spacing: -4px;
}

.section-heading h2 em,
.portfolio-heading h2 em,
.shop-heading h2 em,
.about-content h2 em {
    font-weight: 400;
}

.section-description,
.portfolio-heading > p,
.shop-heading > p {
    max-width: 520px;

    font-size: 16px;
    line-height: 1.7;
}


/* ========================================
   SERVICIOS
======================================== */

.services {
    background: var(--cream-light);
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.service-card {
    background: white;

    border: 1px solid var(--border);

    overflow: hidden;

    cursor: pointer;

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

.service-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, .08);
}

.service-card img {
    width: 100%;

    aspect-ratio: 1 / .82;

    object-fit: cover;

    filter: grayscale(100%);

    transition:
        filter .3s ease,
        transform .4s ease;
}

.service-card:hover img {
    filter: grayscale(20%);
    transform: scale(1.025);
}

.service-content {
    min-height: 190px;

    padding: 26px;

    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-family: var(--serif);

    font-size: 25px;
    font-weight: 400;

    margin-bottom: 13px;
}

.service-content p {
    font-size: 14px;
    line-height: 1.55;

    color: var(--text-soft);
}

.service-content span {
    margin-top: auto;

    padding-top: 25px;

    font-family: var(--serif);
    font-size: 24px;
}


/* ========================================
   PORTFOLIO
======================================== */

.portfolio {
    background: var(--cream);
}

.portfolio-hidden {
    display: none;
}

.portfolio-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.portfolio-card {
    background: white;

    overflow: hidden;

    border: 1px solid #e0dad3;
}

.portfolio-card-image {
    overflow: hidden;
}

.portfolio-card img {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    transition: transform .4s ease;
}

.portfolio-card:hover img {
    transform: scale(1.03);
}

.portfolio-card-info {
    padding: 21px 22px 25px;
}

.portfolio-card-info small {
    font-size: 9px;

    letter-spacing: 3px;

    color: #78716a;
}

.portfolio-card-info h3 {
    margin-top: 10px;

    font-family: var(--serif);

    font-size: 23px;
    font-weight: 400;
}

.portfolio-contact {
    margin-top: 65px;

    padding: 50px;

    background: white;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 35px;
}

.portfolio-contact p {
    max-width: 590px;

    font-family: var(--serif);

    font-size: 29px;
    line-height: 1.25;
}

.portfolio-contact .btn-dark {
    margin-top: 0;

    flex-shrink: 0;
}


/* ========================================
   INDUMENTARIA
======================================== */

.shop {
    background: #121212;
    color: white;
}

.shop-heading > p {
    color: #d0cac4;
}

.shop-categories {
    display: flex;
    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 45px;
}

.shop-filter {
    padding: 13px 27px;

    background: transparent;
    color: white;

    border: 1px solid #696969;

    border-radius: 40px;

    font-size: 12px;

    transition: .2s ease;
}

.shop-filter:hover,
.shop-filter.active {
    background: white;
    color: black;

    border-color: white;
}


/* ========================================
   PRODUCTOS
======================================== */

.products-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 23px;
}

.product-card {
    background: #f7f4ef;
    color: #111;

    overflow: hidden;
}

.product-image-wrapper {
    position: relative;

    overflow: hidden;

    background: #ebe6df;
}

.product-image {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;
}

.product-image-buttons {
    position: absolute;

    left: 14px;
    bottom: 14px;

    display: flex;
    gap: 7px;
}

.image-switch {
    border: none;

    padding: 8px 13px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .95);
    color: black;

    font-size: 10px;
}

.image-switch.active {
    background: black;
    color: white;
}

.product-info {
    padding: 26px;
}

.product-type {
    margin-bottom: 10px;

    font-size: 9px;

    letter-spacing: 2.7px;

    color: #77716b;
}

.product-info h3 {
    font-family: var(--serif);

    font-size: 26px;
    font-weight: 400;

    line-height: 1.15;

    margin-bottom: 8px;
}

.product-price {
    margin-bottom: 22px;

    color: #716b65;

    font-size: 13px;
}

.product-options {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 11px;

    margin-bottom: 17px;
}

.product-option {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.product-option.full {
    grid-column: 1 / -1;
}

.product-option label {
    font-size: 9px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.product-option select {
    width: 100%;

    padding: 13px 11px;

    background: white;

    border: 1px solid #cac4bd;

    outline: none;
}

.product-whatsapp {
    width: 100%;

    padding: 16px;

    border: none;

    background: black;
    color: white;

    font-size: 10px;

    letter-spacing: 1.3px;

    transition: opacity .2s ease;
}

.product-whatsapp:hover {
    opacity: .8;
}


/* ========================================
   CUSTOM
======================================== */

.custom-product {
    margin-top: 80px;

    padding: 75px 7%;

    background: #e6ddd2;
    color: #111;

    text-align: center;
}

.custom-product .eyebrow {
    margin-bottom: 18px;
}

.custom-product h3 {
    max-width: 900px;

    margin: auto;

    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 74px);
    font-weight: 400;

    line-height: 1;
}

.custom-product > p:not(.eyebrow) {
    max-width: 680px;

    margin: 25px auto 0;

    font-size: 16px;
    line-height: 1.7;
}

.btn-light {
    display: inline-flex;

    margin-top: 30px;

    padding: 17px 29px;

    border: 1px solid black;

    border-radius: 40px;

    font-size: 10px;

    letter-spacing: 1.5px;

    transition: .2s ease;
}

.btn-light:hover {
    background: black;
    color: white;
}


/* ========================================
   SOBRE MARTINA
======================================== */

.about {
    background: #f7f3ed;

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 90px;

    align-items: center;
}

.about-image {
    width: 100%;
    height: 720px;

    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);
}

.about-content {
    max-width: 760px;
}

.about-content h2 {
    margin-bottom: 38px;
}

.about-content h2 em {
    display: block;
}

.about-content p:not(.eyebrow) {
    max-width: 680px;

    margin-top: 20px;

    font-size: 16px;
    line-height: 1.8;
}


/* ========================================
   CONTACTO
======================================== */

.contact {
    background: #111;
    color: white;

    text-align: center;
}

.contact .eyebrow {
    margin-bottom: 25px;
}

.contact h2 {
    font-family: var(--serif);

    font-size: clamp(75px, 10vw, 150px);
    font-weight: 400;

    line-height: .88;

    letter-spacing: -6px;
}

.contact h2 em {
    display: block;

    font-weight: 400;
}

.contact > p:not(.eyebrow) {
    margin: 35px auto 0;

    color: #c7c7c7;

    font-size: 16px;
}

.contact-buttons {
    margin-top: 43px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}

.contact-main,
.contact-secondary {
    padding: 18px 29px;

    border-radius: 50px;

    font-size: 10px;

    letter-spacing: 1.4px;
}

.contact-main {
    background: white;
    color: black;
}

.contact-secondary {
    border: 1px solid #555;
}


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

footer {
    padding: 29px 6%;

    background: #090909;
    color: #8b8b8b;

    border-top: 1px solid #252525;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 9px;

    letter-spacing: 2px;
}


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

.whatsapp-floating {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 999;

    padding: 14px 19px;

    background: black;
    color: white;

    border: 1px solid #444;

    border-radius: 40px;

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

    font-size: 10px;

    letter-spacing: 1px;
}


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

@media (max-width: 1050px) {

    .nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 620px;
    }

    .section-heading,
    .portfolio-heading,
    .shop-heading {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-image {
        height: 650px;
    }

}


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

@media (max-width: 650px) {

    .header {
        height: 68px;

        padding: 0 19px;
    }

    .logo {
        font-size: 17px;
    }

    .btn-header {
        padding: 12px 15px;

        font-size: 8px;
    }

    .hero {
        min-height: auto;
    }

    .hero-text {
        padding: 65px 23px;
    }

    .hero h1 {
        font-size: 67px;

        letter-spacing: -4px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-image {
        min-height: 480px;
    }

    .section {
        padding: 80px 22px;
    }

    .section-heading h2,
    .portfolio-heading h2,
    .shop-heading h2,
    .about-content h2 {
        font-size: 51px;

        letter-spacing: -2px;
    }

    .services-grid,
    .portfolio-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .service-card img {
        aspect-ratio: 4 / 3;
    }

    .portfolio-card img,
    .product-image {
        aspect-ratio: 4 / 5;
    }

    .portfolio-contact {
        padding: 33px 25px;

        flex-direction: column;

        align-items: flex-start;
    }

    .portfolio-contact p {
        font-size: 25px;
    }

    .shop-categories {
        gap: 8px;
    }

    .shop-filter {
        padding: 11px 18px;
    }

    .product-options {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 470px;
    }

    .about-content h2 {
        font-size: 55px;
    }

    .contact h2 {
        font-size: 64px;

        letter-spacing: -3px;
    }

    footer {
        flex-direction: column;

        gap: 13px;
    }

}


/* ========================================
   AGREGADOS PARA LA VERSIÓN ONLINE
   (no cambian el diseño, solo completan
   lo que faltaba)
======================================== */

[hidden] {
    display: none !important;
}

/* Contorno visible al navegar con teclado */
.service-card:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

/* Botón de arrepentimiento (obligatorio) en el footer */
.footer-link {
    text-decoration: underline;
    text-underline-offset: 3px;

    color: #c9c9c9;

    transition: color .2s ease;
}

.footer-link:hover {
    color: white;
}

/* Si una foto no carga, queda el fondo liso en vez del ícono roto */
.product-image.is-broken {
    visibility: hidden;
}

/* Mensajes cuando una categoría está vacía o cargando */
.products-empty {
    grid-column: 1 / -1;

    padding: 40px 0;

    color: #d0cac4;

    font-family: var(--serif);
    font-size: 22px;
}

.portfolio-empty {
    grid-column: 1 / -1;

    padding: 40px 0;

    color: var(--text-soft);

    font-family: var(--serif);
    font-size: 22px;
}

@media (max-width: 650px) {

    /* Espacio para que el botón flotante de WhatsApp no tape el footer */
    footer {
        padding-bottom: 90px;
    }
}



/* ========================================
   PORTFOLIO: TARJETAS Y FOTO EN GRANDE
======================================== */

/* En compu, 4 fotos por fila (así no quedan gigantes) */
@media (min-width: 1051px) {

    .portfolio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.portfolio-card {
    cursor: zoom-in;
}

.portfolio-card-image {
    display: block;

    width: 100%;

    padding: 0;

    border: 0;

    background: #e9e3db;

    cursor: zoom-in;
}

.portfolio-card-image:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: -4px;
}

.portfolio-card-info small {
    display: block;

    text-transform: uppercase;
}

.portfolio-card-info h3 {
    font-size: 21px;
    line-height: 1.2;
}

.portfolio-card-info h3:first-child {
    margin-top: 0;
}

/* Visor: la foto en grande */

body.viewer-open {
    overflow: hidden;
}

.photo-viewer {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: flex;

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

    padding: 60px 80px;

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

.photo-viewer-figure {
    display: flex;

    flex-direction: column;

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

    width: 100%;
    height: 100%;

    gap: 18px;
}

.photo-viewer-image {
    width: auto;
    max-width: 100%;

    max-height: calc(100% - 70px);

    object-fit: contain;
}

.photo-viewer-caption {
    color: #f3eee7;

    text-align: center;
}

.photo-viewer-caption small {
    display: block;

    font-size: 10px;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #c9c1b8;
}

.photo-viewer-caption span {
    display: block;

    margin-top: 6px;

    font-family: var(--serif);

    font-size: 24px;
}

.photo-viewer-close,
.photo-viewer-nav {
    position: absolute;

    border: 0;

    background: transparent;

    color: #f3eee7;

    font-family: var(--serif);

    line-height: 1;

    cursor: pointer;

    opacity: .8;

    transition: opacity .2s ease;
}

.photo-viewer-close:hover,
.photo-viewer-nav:hover {
    opacity: 1;
}

.photo-viewer-close {
    top: 14px;
    right: 22px;

    font-size: 46px;
}

.photo-viewer-nav {
    top: 50%;

    transform: translateY(-50%);

    padding: 10px 14px;

    font-size: 64px;
}

.photo-viewer-prev {
    left: 10px;
}

.photo-viewer-next {
    right: 10px;
}

.photo-viewer-count {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 18px;

    text-align: center;

    font-size: 11px;

    letter-spacing: 3px;

    color: #9d958c;
}

@media (max-width: 650px) {

    .photo-viewer {
        padding: 60px 12px 50px;
    }

    .photo-viewer-nav {
        top: auto;
        bottom: 4px;

        transform: none;

        font-size: 48px;
    }

    .photo-viewer-prev {
        left: 20px;
    }

    .photo-viewer-next {
        right: 20px;
    }

    .photo-viewer-caption span {
        font-size: 20px;
    }
}
