/* =========================
   VARIABLES DE COLORES
========================= */

:root {
    --white: #ffffff;
    --cream: #f8f3ee;
    --blush: #d7aaa5;
    --blush-dark: #b97f79;
    --ink: #2f2927;
    --muted: #746966;
    --line: #e9ded8;
}


/* =========================
   ESTILOS GENERALES
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--cream);
    font-family: "DM Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   HEADER
========================= */

.site-header {
    min-height: 92px;
    padding: 0 clamp(24px, 6vw, 96px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    position: relative;
    z-index: 10;

    background-color: var(--white);
    border-bottom: 1px solid rgba(47, 41, 39, 0.06);
}


/* =========================
   LOGO
========================= */

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.brand__name {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
}

.brand__detail {
    margin-top: 7px;

    color: var(--muted);

    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* =========================
   MENÚ DE NAVEGACIÓN
========================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.1vw, 34px);
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;

    transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--blush-dark);
}


/* Botón "Pide cita" del menú */

.main-nav .nav-cta {
    padding: 12px 20px;

    color: var(--white);
    background-color: var(--ink);

    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
    color: var(--white);
    background-color: var(--blush-dark);
}


/* =========================
   BOTÓN DEL MENÚ MÓVIL
========================= */

.menu-toggle {
    width: 44px;
    height: 44px;

    display: none;
    place-content: center;
    gap: 5px;

    background-color: transparent;
    border: none;

    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;

    display: block;

    background-color: var(--ink);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 92px);

    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr) minmax(380px, 1.1fr);

    align-items: stretch;
}


/* =========================
   TEXTO DEL HERO
========================= */

.hero__content {
    padding:
        clamp(72px, 9vw, 140px) clamp(32px, 7vw, 110px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
}


/* Círculo decorativo */

/*
.hero__content::before {
    content: "";

    width: 88px;
    height: 88px;

    position: absolute;
    top: 10%;
    left: 7%;

    border: 1px solid var(--blush);
    border-radius: 50%;

    opacity: 0.35;
}
*/


/* Texto pequeño superior */

.eyebrow {
    margin-bottom: 24px;

    color: var(--blush-dark);

    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* Título principal */

h1 {
    max-width: 680px;

    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 5.3vw, 6.1rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h1 em {
    color: var(--blush-dark);
    font-weight: 500;
}


/* Subtítulo */

.hero__subtitle {
    max-width: 540px;
    margin-top: 34px;

    font-family: "Playfair Display", serif;
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    line-height: 1.35;
}


/* Texto descriptivo */

.hero__text {
    max-width: 500px;
    margin-top: 18px;

    color: var(--muted);

    font-size: 1rem;
    line-height: 1.8;
}


/* =========================
   BOTÓN DEL HERO
========================= */

.hero__button {
    width: fit-content;
    margin-top: 38px;
    padding: 16px 23px;

    display: inline-flex;
    align-items: center;
    gap: 34px;

    color: var(--white);
    background-color: var(--blush-dark);

    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.hero__button:hover,
.hero__button:focus-visible {
    background-color: var(--ink);
    transform: translateY(-2px);
}

.hero__button span {
    font-size: 1.15rem;
}


/* =========================
   IMAGEN DEL HERO
========================= */

.hero__visual {
    min-height: 620px;
    padding: clamp(24px, 4vw, 62px);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    background-color: var(--blush);
}


/* Círculo decorativo sobre el fondo */

.hero__visual::before {
    content: "";

    width: min(34vw, 520px);
    aspect-ratio: 1;

    position: absolute;
    top: -18%;
    right: -10%;

    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
}


/* Marco de la fotografía */

.hero__image-frame {
    width: min(78%, 570px);
    aspect-ratio: 4 / 5;

    position: relative;
    overflow: hidden;

    border-radius: 220px 220px 18px 18px;

    box-shadow:
        0 30px 70px rgba(71, 44, 40, 0.2);
}


/* Fotografía */

.hero__image-frame img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;
}


/* Texto situado sobre la imagen */

.image-note {
    padding: 14px 22px;

    position: absolute;
    right: clamp(20px, 4vw, 58px);
    bottom: clamp(20px, 4vw, 52px);

    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(8px);

    font-family: "Playfair Display", serif;
    font-size: 0.92rem;
}


/* =========================
   TABLETS Y PANTALLAS MEDIAS
========================= */

@media (max-width: 980px) {

    .site-header {
        min-height: 80px;
    }

    /* Mostramos el botón del menú */

    .menu-toggle {
        display: grid;
    }

    /* Ocultamos inicialmente el menú */

    .main-nav {
        padding: 18px 24px 28px;

        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        background-color: var(--white);
        border-top: 1px solid var(--line);

        box-shadow:
            0 18px 34px rgba(47, 41, 39, 0.1);
    }

    /* Esta clase se añade desde JavaScript */

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 0;
    }

    .main-nav .nav-cta {
        margin-top: 10px;
        text-align: center;
    }

    /* El hero pasa de dos columnas a una */

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero__content {
        min-height: 590px;

        padding:
            80px clamp(24px, 8vw, 80px);
    }

    .hero__visual {
        min-height: auto;
        padding: 54px 24px 78px;
    }

    .hero__image-frame {
        width: min(76%, 520px);
    }
}


/* =========================
   TELÉFONOS MÓVILES
========================= */

@media (max-width: 560px) {

    .site-header {
        padding: 0 20px;
    }

    .brand__name {
        font-size: 1.55rem;
    }

    .hero__content {
        min-height: auto;
        padding: 70px 24px 72px;
    }

    .hero__content::before {
        display: none;
    }

    h1 {
        font-size: clamp(2.8rem, 15vw, 4rem);
    }

    .hero__subtitle {
        margin-top: 28px;
    }

    .hero__button {
        width: 100%;
        justify-content: space-between;
    }

    .hero__image-frame {
        width: 100%;
        border-radius: 160px 160px 14px 14px;
    }

    .image-note {
        right: 24px;
        bottom: 26px;

        font-size: 0.82rem;
    }
}


/* =========================
   ACCESIBILIDAD
========================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* =========================
   SOBRE MÍ
========================= */

.about {
    display: none;
    padding: 120px 8%;
    background: #ffffff;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 100px;
    align-items: center;
}

.about__content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 35px;
}

.about__content h2 em {
    font-weight: 500;
}

.about__content p {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.about__content strong {
    color: #222;
    font-weight: 600;
}

/* Datos destacados */

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.about__stat {
    min-height: 170px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid #e7e2dd;
    background: #faf8f6;
}

.about__number {
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: #222;
}

.about__label {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */

@media (max-width: 900px) {

    .about {
        padding: 80px 6%;
    }

    .about__container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}

@media (max-width: 550px) {

    .about__stats {
        grid-template-columns: 1fr;
    }

    .about__stat {
        min-height: 130px;
    }

}

/* =========================
   SERVICIOS
========================= */

.services {
    display: none;

    min-height: calc(100vh - 92px);

    padding:
        clamp(80px, 8vw, 120px) clamp(24px, 7vw, 110px);

    background-color: var(--cream);
}


/* Contenedor */

.services__container {
    max-width: 1380px;
    margin: 0 auto;
}


/* =========================
   CABECERA DE SERVICIOS
========================= */

.services__header {
    max-width: 850px;
    margin-bottom: 70px;
}


.services__header h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(2.8rem, 5vw, 5rem);

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -0.035em;
}


.services__header h2 em {
    color: var(--blush-dark);

    font-weight: 500;
}


.services__intro {
    max-width: 680px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 1rem;

    line-height: 1.8;
}


/* =========================
   GRID
========================= */

.services__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* =========================
   TARJETA
========================= */

.service-card {
    min-height: 420px;

    padding: clamp(32px, 4vw, 52px);

    position: relative;

    background-color: var(--white);

    border: 1px solid var(--line);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.service-card:hover {
    transform: translateY(-5px);

    border-color: var(--blush);

    box-shadow:
        0 25px 55px rgba(71, 44, 40, 0.08);
}


/* Número */

.service-card__number {
    display: block;

    margin-bottom: 45px;

    color: var(--blush-dark);

    font-family: "Playfair Display", serif;

    font-size: 1rem;

    letter-spacing: 0.12em;
}


/* Título */

.service-card h3 {
    margin-bottom: 18px;

    font-family: "Playfair Display", serif;

    font-size: clamp(1.8rem, 2.5vw, 2.5rem);

    font-weight: 500;

    line-height: 1.15;
}


/* Descripción */

.service-card__description {
    max-width: 520px;

    margin-bottom: 30px;

    color: var(--muted);

    font-size: 0.96rem;

    line-height: 1.7;
}


/* Lista */

.service-card ul {
    list-style: none;
}


.service-card li {
    padding: 10px 0;

    position: relative;

    color: var(--ink);

    border-bottom: 1px solid var(--line);

    font-family: "DM Sans", sans-serif;

    font-size: 0.95rem;
}


.service-card li:last-child {
    border-bottom: none;
}


.service-card li::before {
    content: "—";

    margin-right: 12px;

    color: var(--blush-dark);
}


.service-card li span {
    color: var(--muted);

    font-size: 0.85rem;
}


/* =========================
   MICROPIGMENTACIÓN
========================= */

.service-card--featured {
    grid-column: 1 / -1;

    min-height: auto;

    background-color: var(--blush);

    border-color: transparent;
}


.service-card--featured h3 {
    font-size: clamp(2.4rem, 4vw, 4rem);
}


.service-card--featured .service-card__description {
    color: rgba(47, 41, 39, 0.75);
}


.service-card--featured li {
    border-color: rgba(47, 41, 39, 0.14);
}


.service-card--featured .service-card__number {
    margin-bottom: 0;

    color: var(--ink);
}


/* Número + especialidad */

.service-card__featured-title {
    margin-bottom: 45px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.service-card__tag {
    padding: 9px 15px;

    color: var(--ink);

    background-color: rgba(255, 255, 255, 0.55);

    font-size: 0.68rem;

    font-weight: 600;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================
   CTA INFERIOR
========================= */

.services__cta {
    margin-top: 70px;

    padding-top: 45px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    border-top: 1px solid var(--line);
}


.services__cta p {
    font-family: "Playfair Display", serif;

    font-size: clamp(1.3rem, 2vw, 1.8rem);
}


/* Botón */

.services__button {
    flex-shrink: 0;

    padding: 16px 23px;

    display: inline-flex;

    align-items: center;

    gap: 35px;

    color: var(--white);

    background-color: var(--blush-dark);

    font-size: 0.76rem;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.services__button:hover {
    background-color: var(--ink);

    transform: translateY(-2px);
}


/* =========================
   SERVICIOS RESPONSIVE
========================= */

@media (max-width: 900px) {

    .services {
        padding:
            80px clamp(24px, 6vw, 60px);
    }


    .services__grid {
        grid-template-columns: 1fr;
    }


    .service-card--featured {
        grid-column: auto;
    }


    .service-card {
        min-height: auto;
    }


    .services__cta {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 550px) {

    .services {
        padding:
            65px 20px;
    }


    .services__header {
        margin-bottom: 45px;
    }


    .service-card {
        padding: 30px 25px;
    }


    .service-card__number {
        margin-bottom: 30px;
    }


    .service-card__featured-title {
        margin-bottom: 30px;
    }


    .services__button {
        width: 100%;

        justify-content: space-between;
    }

}

/* =========================
   GALERÍA
========================= */

.gallery {
    display: none;

    min-height: calc(100vh - 92px);

    padding:
        clamp(80px, 8vw, 120px) clamp(24px, 7vw, 110px);

    background-color: var(--cream);
}


/* Contenedor */

.gallery__container {
    max-width: 1380px;
    margin: 0 auto;
}


/* =========================
   CABECERA
========================= */

.gallery__header {
    max-width: 850px;
    margin-bottom: 70px;
}

.gallery__header h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 500;

    line-height: 1.05;
    letter-spacing: -0.035em;
}

.gallery__header h2 em {
    color: var(--blush-dark);
    font-weight: 500;
}

.gallery__intro {
    max-width: 680px;

    margin-top: 28px;

    color: var(--muted);

    font-size: 1rem;
    line-height: 1.8;
}


/* =========================
   GRID
========================= */

.gallery__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;
}


/* =========================
   TARJETAS
========================= */

.gallery-card {
    overflow: hidden;

    background-color: var(--white);
    border: 1px solid var(--line);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 25px 55px rgba(71, 44, 40, 0.10);
}


/* Los trabajos de antes y después
   ocupan toda la fila */

.gallery-card--double {
    grid-column: 1 / -1;
}


/* =========================
   IMÁGENES
========================= */

.gallery-card__images {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.gallery-card__image {
    height: 520px;

    position: relative;
    overflow: hidden;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card__image img {
    transform: scale(1.025);
}


/* Etiquetas ANTES / DESPUÉS */

.gallery-card__label {
    padding: 9px 15px;

    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;

    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(8px);

    font-size: 0.68rem;
    font-weight: 600;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* =========================
   TEXTO DE LAS TARJETAS
========================= */

.gallery-card__content {
    padding: 32px 35px 38px;
}

.gallery-card__category {
    margin-bottom: 12px;

    color: var(--blush-dark);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gallery-card__content h3 {
    margin-bottom: 14px;

    font-family: "Playfair Display", serif;

    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    font-weight: 500;
}

.gallery-card__content>p:last-child {
    max-width: 700px;

    color: var(--muted);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================
   GALERÍA RESPONSIVE
========================= */

@media (max-width: 900px) {

    .gallery {
        padding:
            80px clamp(24px, 6vw, 60px);
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .gallery-card--double {
        grid-column: auto;
    }

    .gallery-card__image {
        height: 460px;
    }
}


@media (max-width: 600px) {

    .gallery {
        padding: 65px 20px;
    }

    .gallery__header {
        margin-bottom: 45px;
    }

    .gallery-card__images {
        grid-template-columns: 1fr;
    }

    .gallery-card__image {
        height: 440px;
    }

    .gallery-card__content {
        padding: 27px 24px 32px;
    }
}

/* ========================================
   SELECTOR DE IDIOMA
======================================== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.language-button {
    width: 36px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 8px;

    cursor: pointer;

    opacity: 0.6;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.language-flag {
    width: 25px;
    height: auto;

    display: block;

    border-radius: 3px;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.12);
}


/* Al pasar el ratón */

.language-button:hover {
    opacity: 1;
    transform: translateY(-1px);
}


/* Idioma seleccionado */

.language-button.is-active {
    opacity: 1;

    background-color: rgba(190, 150, 135, 0.10);

    border-color: rgba(120, 85, 75, 0.25);
}

/* =========================
   CONTACTO
========================= */

.contacto {
    padding: 100px 8%;
    background-color: #f8f3ee;
}

.contacto-contenido {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contacto-subtitulo {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: #a77c6c;
    margin-bottom: 12px;
}

.contacto h2 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    color: #4a3832;
    margin-bottom: 20px;
}

.contacto-texto {
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
    color: #6d5a52;
}

.contacto-datos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 28px;

    text-decoration: none;
    background-color: #ffffff;

    border: 1px solid #eaded8;
    border-radius: 12px;

    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contacto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(74, 56, 50, 0.08);
}

.contacto-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a77c6c;
}

.contacto-item strong {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #4a3832;
}

.contacto-ubicacion {
    margin-top: 40px;
    color: #8b746a;
}

/* MÓVIL */

@media (max-width: 768px) {

    .contacto {
        padding: 70px 6%;
    }

    .contacto h2 {
        font-size: 2.3rem;
    }

    .contacto-datos {
        grid-template-columns: 1fr;
    }

}

/* =========================
   LOGO CABECERA
========================= */

.site-header .brand {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.site-header .brand__logo {
    display: block;
    width: 55px;
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
}

.site-header .brand__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

@media (max-width: 768px) {

    .site-header .brand {
        flex-direction: row !important;
        gap: 8px;
    }

    .site-header .brand__logo {
        width: 44px;
        height: 44px;
    }

}