/* ============================================================
   MATEO CRUZ FOTOGRAFÍA — ELEGANCIA EDITORIAL
   Hoja de estilos compartida para todas las páginas HTML.
   Paleta: marfil, negro cálido y dorado champagne.
   ============================================================ */

/* 1. VARIABLES Y REINICIO */
:root {
    color-scheme: light;
    --ivory: #f5f0e8;
    --ivory-2: #fbf8f2;
    --paper: #fffdf8;
    --ink: #28251f;
    --ink-soft: #514b42;
    --muted: #81786c;
    --champagne: #b99a68;
    --champagne-dark: #927447;
    --line: #ded5c8;
    --line-dark: rgba(245, 240, 232, 0.22);
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(40, 37, 31, 0.07);
    --shadow-lg: 0 24px 70px rgba(40, 37, 31, 0.15);
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", Arial, Helvetica, sans-serif;
    --container: 1180px;
    --radius: 3px;
    --transition: 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    background: var(--ivory);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory-2);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: var(--sans);
}

img {
    display: block;
    max-width: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1.15rem;
    color: var(--ink-soft);
}

h1,
h2,
h3,
h4,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 1.35rem;
    font-size: clamp(3.15rem, 6vw, 6.2rem);
}

h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

h1 em,
h2 em,
h3 em {
    color: var(--champagne-dark);
    font-weight: 400;
}

::selection {
    color: var(--ink);
    background: #e5d5b8;
}

:focus-visible {
    outline: 2px solid var(--champagne-dark);
    outline-offset: 4px;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.section {
    padding-block: clamp(76px, 9vw, 132px);
}

.skip-link {
    position: absolute;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* 2. ENCABEZADO Y NAVEGACIÓN */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(222, 213, 200, 0.82);
    background: rgba(251, 248, 242, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--champagne);
    color: var(--champagne-dark);
    font-family: var(--serif);
    font-size: 1.05rem;
    letter-spacing: -0.08em;
}

.brand-name {
    display: grid;
    gap: 1px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.18rem;
    line-height: 1.1;
}

.brand-name small {
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.61rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nav-wrap nav {
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.7vw, 25px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: var(--champagne-dark);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-links .nav-cta {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--champagne);
    color: var(--ink);
}

.nav-links .nav-cta::after {
    display: none;
}

.nav-links .nav-cta:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 5px 0;
    background: var(--ink);
}

/* 3. TEXTOS AUXILIARES Y ENCABEZADOS DE SECCIÓN */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--champagne-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-heading h2 {
    max-width: 720px;
}

.section-heading > p {
    max-width: 610px;
    margin-bottom: 0;
    font-size: 0.98rem;
}

.services-head,
.portfolio-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.services-head .section-heading,
.portfolio-head .section-heading {
    margin-bottom: 0;
}

.text-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--champagne);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.text-link:hover {
    gap: 17px;
    border-color: var(--ink);
    color: var(--champagne-dark);
}

.arrow {
    display: inline-block;
    font-size: 1.05em;
    transition: transform var(--transition);
}

a:hover .arrow,
button:hover .arrow {
    transform: translate(2px, -2px);
}

/* 4. BOTONES */
.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 22px;
    border: 1px solid var(--ink);
    border-radius: 0;
    color: var(--paper);
    background: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
    color: var(--ink);
    background: transparent;
    transform: translateY(-2px);
}

.btn--paper {
    border-color: var(--champagne);
    color: var(--ink);
    background: var(--champagne);
}

.btn--paper:hover {
    border-color: var(--champagne-dark);
    color: var(--paper);
    background: var(--champagne-dark);
}

.btn--light {
    border-color: rgba(245, 240, 232, 0.55);
    color: var(--paper);
    background: transparent;
}

.btn--light:hover {
    border-color: var(--paper);
    color: var(--ink);
    background: var(--paper);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* 5. PORTADA DE INICIO */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 8vw, 112px) 0 clamp(72px, 9vw, 126px);
    background: var(--ivory);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-block: 20px;
}

.hero-copy h1 {
    max-width: 700px;
}

.hero-copy > p {
    max-width: 540px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-meta span + span::before {
    margin-right: 20px;
    color: var(--champagne);
    content: "✳";
}

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 0 28px 28px 0;
}

.hero-photo-frame {
    position: relative;
    overflow: hidden;
    min-height: 530px;
    background: #d5c9b8;
}

.hero-photo {
    width: 100%;
    height: 610px;
    object-fit: cover;
    object-position: center;
}

.hero-photo-frame::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 253, 248, 0.36);
    content: "";
    pointer-events: none;
}

.photo-label {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: min(270px, 70%);
    padding: 25px 28px;
    color: var(--paper);
    background: var(--ink);
}

.photo-label span {
    display: block;
    margin-bottom: 8px;
    color: #d7c4a3;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.photo-label strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.18;
}

.vertical-note {
    position: absolute;
    top: 8px;
    right: -4px;
    color: var(--muted);
    font-size: 0.61rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

/* 6. FRANJA EDITORIAL */
.service-strip {
    border-block: 1px solid var(--line);
    background: var(--paper);
}

.strip-inner {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.strip-inner span {
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-style: italic;
    white-space: nowrap;
}

.strip-inner i {
    margin-left: 18px;
    color: var(--champagne);
    font-family: var(--sans);
    font-size: 0.8rem;
    font-style: normal;
}

/* 7. INTRODUCCIÓN / TEXTO DIVIDIDO */
.intro-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.6fr);
    gap: clamp(35px, 8vw, 120px);
}

.intro-side {
    padding-top: 10px;
}

.side-note {
    max-width: 280px;
    font-size: 0.88rem;
    line-height: 1.9;
}

.intro-main h2 {
    max-width: 850px;
    font-size: clamp(2.4rem, 4.5vw, 4.65rem);
    line-height: 1.19;
}

.intro-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-top: 35px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.intro-bottom p {
    max-width: 550px;
    margin-bottom: 0;
}

.intro-bottom .text-link {
    flex-shrink: 0;
}

/* 8. SERVICIOS */
.services {
    background: var(--paper);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px clamp(22px, 3vw, 42px) 34px;
    border-right: 1px solid var(--line);
    transition: background var(--transition);
}

.service-card:first-child {
    border-left: 1px solid var(--line);
}

.service-card:hover {
    background: var(--ivory-2);
}

.service-number,
.feature-number {
    color: var(--champagne-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.service-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 31px 0 20px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--champagne-dark);
    font-family: var(--serif);
    font-size: 1.45rem;
}

.service-card h3 {
    max-width: 270px;
}

.service-card p {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.8;
}

.service-card .text-link {
    margin-top: 15px;
}

/* 9. PORTAFOLIO Y GALERÍAS */
.portfolio-preview {
    background: var(--ivory);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
    min-height: 260px;
    padding: 0;
    border: 0;
    background: #ded5c8;
    text-align: left;
    cursor: pointer;
    isolation: isolate;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease;
}

.gallery-item:nth-child(3n + 1) img {
    min-height: 390px;
}

.gallery-item:hover img {
    filter: saturate(0.9);
    transform: scale(1.045);
}

.gallery-overlay {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 48%;
    padding: 55px 24px 23px;
    color: var(--white);
    background: linear-gradient(transparent, rgba(25, 22, 18, 0.78));
}

.gallery-overlay small {
    margin-bottom: 5px;
    color: #e8d7b8;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gallery-overlay strong {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 400;
    line-height: 1.2;
}

.gallery-open {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 50%;
    color: white;
    background: rgba(30, 27, 22, 0.2);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-open,
.gallery-item:focus-visible .gallery-open {
    opacity: 1;
    transform: translateY(0);
}

.gallery-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
}

.filter-btn {
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink-soft);
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"],
.filter-btn.active {
    border-color: var(--ink);
    color: var(--paper);
    background: var(--ink);
}

.portfolio-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-gallery .gallery-item {
    min-height: 330px;
}

.image-note {
    margin-top: 17px;
    color: var(--muted);
    font-size: 0.75rem;
}

/* 10. SOBRE EL FOTÓGRAFO */
.about {
    color: var(--paper);
    background: var(--ink);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(45px, 8vw, 110px);
}

.about-image-wrap {
    position: relative;
    padding: 0 24px 24px 0;
}

.about-image-wrap::after {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 62%;
    border: 1px solid var(--champagne);
    content: "";
}

.about-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 610px;
    object-fit: cover;
    filter: saturate(0.75);
}

.about-caption {
    position: absolute;
    z-index: 2;
    bottom: 42px;
    left: 22px;
    padding: 8px 13px;
    color: var(--ink);
    background: var(--champagne);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-copy h2,
.about-copy h3 {
    color: var(--paper);
}

.about-copy h2 em {
    color: #d7bd90;
}

.about-copy > p {
    color: #d0c7ba;
    font-size: 0.94rem;
}

.about .eyebrow {
    color: #d7bd90;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
    margin: 34px 0;
    padding-block: 26px;
    border-block: 1px solid var(--line-dark);
}

.about-value {
    display: grid;
    gap: 5px;
}

.about-value strong {
    color: var(--paper);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
}

.about-value span {
    color: #c3b9aa;
    font-size: 0.8rem;
    line-height: 1.7;
}

/* 11. PROCESO */
.process {
    background: var(--paper);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 44px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-step {
    position: relative;
    padding: 34px clamp(20px, 3vw, 40px) 28px;
    border-right: 1px solid var(--line);
}

.process-step:first-child {
    border-left: 1px solid var(--line);
}

.step-number {
    display: block;
    margin-bottom: 28px;
    color: var(--champagne-dark);
    font-family: var(--serif);
    font-size: 2.1rem;
}

.process-step h3 {
    font-size: 1.65rem;
}

.process-step p {
    margin-bottom: 0;
    font-size: 0.88rem;
}

/* 12. PÁGINAS INTERIORES: HERO */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 7vw, 100px) 0;
    background: var(--ivory);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
}

.page-hero-copy {
    position: relative;
    z-index: 2;
}

.page-hero-copy h1 {
    font-size: clamp(3rem, 5.8vw, 5.4rem);
}

.page-hero-copy > p {
    max-width: 600px;
    font-size: 0.98rem;
    line-height: 1.85;
}

.page-hero-image {
    overflow: hidden;
    min-height: 460px;
    background: #d5c9b8;
}

.page-hero-image img {
    width: 100%;
    height: 510px;
    object-fit: cover;
}

.compact-hero {
    padding-block: clamp(60px, 8vw, 112px);
}

.compact-hero .page-hero-copy {
    max-width: 850px;
}

.compact-hero h1 {
    max-width: 850px;
}

.compact-hero .page-hero-copy > p {
    max-width: 670px;
}

/* 13. TEXTOS PARTIDOS Y BLOQUES EDITORIALES */
.split-copy {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(42px, 8vw, 120px);
}

.split-copy h2 {
    font-size: clamp(2.1rem, 3.6vw, 3.5rem);
}

.split-copy p {
    font-size: 0.94rem;
}

.split-copy .text-link {
    margin-top: 8px;
}

/* 14. TARJETAS DE CARACTERÍSTICAS */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
}

.feature-card {
    min-height: 255px;
    padding: 25px 24px;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    border-color: var(--champagne);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.feature-number {
    display: inline-block;
    margin-bottom: 28px;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 400;
}

.feature-card h3 {
    font-size: 1.45rem;
}

.feature-card p {
    margin-bottom: 0;
    font-size: 0.84rem;
}

/* 15. PAQUETES Y PRECIOS */
.packages {
    background: #eee6da;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    margin-top: 40px;
}

.package-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(26px, 3.3vw, 42px);
    border: 1px solid #d6cbbc;
    background: var(--paper);
}

.package-card--featured {
    border-color: var(--ink);
    color: var(--paper);
    background: var(--ink);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.package-tag {
    display: inline-block;
    margin-bottom: 22px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    color: var(--champagne-dark);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.package-card--featured .package-tag {
    border-color: rgba(215, 189, 144, 0.45);
    color: #dec9a8;
}

.package-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.package-card--featured h3 {
    color: var(--paper);
}

.package-card > p {
    min-height: 78px;
    font-size: 0.86rem;
}

.package-card--featured > p {
    color: #d0c7ba;
}

.package-list {
    display: grid;
    gap: 11px;
    width: 100%;
    margin: 10px 0 30px;
    padding: 23px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.package-card--featured .package-list {
    border-color: var(--line-dark);
}

.package-list li {
    position: relative;
    padding-left: 23px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.6;
}

.package-list li::before {
    position: absolute;
    top: -1px;
    left: 0;
    color: var(--champagne-dark);
    content: "✳";
    font-size: 0.83rem;
}

.package-card--featured .package-list li {
    color: #ddd3c5;
}

.package-card .btn {
    width: 100%;
    margin-top: auto;
}

.package-note {
    max-width: 900px;
    margin: 32px auto 0;
    color: var(--muted);
    font-size: 0.77rem;
    text-align: center;
}

.terms-panel,
.terms-section {
    max-width: 880px;
    margin-inline: auto;
}

.terms-panel {
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid var(--line);
    background: var(--paper);
}

.terms-panel h2,
.terms-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.terms-section {
    padding-top: 42px;
}

/* 16. PREGUNTAS FRECUENTES */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(42px, 8vw, 110px);
}

.faq-intro h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.faq-intro p {
    max-width: 440px;
}

.faq-intro .text-link {
    margin-top: 8px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question,
.faq-item summary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-plus {
    flex-shrink: 0;
    color: var(--champagne-dark);
    font-family: var(--sans);
    font-size: 1.3rem;
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-plus,
.faq-item[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 34px 22px 0;
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 0.87rem;
}

/* 17. CTA OSCURA */
.final-cta,
.home-cta {
    color: var(--paper);
    background: var(--ink);
}

.final-cta-inner,
.home-cta-inner {
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.final-cta .eyebrow,
.home-cta .eyebrow {
    color: #d7bd90;
}

.final-cta h2,
.home-cta h2 {
    color: var(--paper);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.final-cta p,
.home-cta p {
    max-width: 610px;
    margin-inline: auto;
    color: #d0c7ba;
}

.final-cta .hero-actions,
.home-cta .hero-actions {
    justify-content: center;
}

/* 18. CONTACTO Y FORMULARIOS */
.contact {
    background: var(--ivory);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(42px, 7vw, 100px);
}

.contact-copy h2 {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.contact-copy > p {
    max-width: 490px;
}

.contact-details {
    display: grid;
    gap: 22px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-detail-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--champagne-dark);
    font-size: 1.05rem;
}

.contact-detail div {
    display: grid;
    gap: 2px;
}

.contact-detail small {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-detail strong,
.contact-detail strong a {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-note {
    margin-top: 25px;
    color: var(--muted);
    font-size: 0.76rem;
}

.contact-form {
    padding: clamp(25px, 4.2vw, 48px);
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 {
    font-size: 2rem;
}

.contact-form > p {
    margin-bottom: 28px;
    font-size: 0.85rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 16px;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #d6cbbc;
    border-radius: 0;
    outline: none;
    color: var(--ink);
    background: #fffefa;
    font-size: 0.84rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9b9184;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 3px rgba(185, 154, 104, 0.13);
}

.form-actions {
    display: grid;
    justify-items: start;
    gap: 13px;
    margin-top: 24px;
}

.form-help {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.65;
}

.form-status {
    margin-top: 14px;
    color: var(--champagne-dark);
    font-size: 0.82rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft) !important;
    font-weight: 400 !important;
    line-height: 1.6;
}

.checkbox-label input {
    width: 17px;
    min-height: 17px;
    margin: 3px 0 0;
    accent-color: var(--champagne-dark);
}

/* 19. PIE DE PÁGINA */
.footer {
    padding-top: 60px;
    color: var(--paper);
    background: #201e1a;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 46px;
}

.footer .brand-name {
    color: var(--paper);
}

.footer .brand-name small {
    color: #bdb2a3;
}

.footer .brand-mark {
    color: #d7bd90;
    border-color: #927447;
}

.footer-brand {
    max-width: 370px;
}

.footer-brand > p {
    max-width: 330px;
    margin: 22px 0 24px;
    color: #c5bbae;
    font-size: 0.84rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(245, 240, 232, 0.24);
    color: #e4d7c2;
    transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.social-links a:hover {
    border-color: var(--champagne);
    color: var(--ink);
    background: var(--champagne);
    transform: translateY(-3px);
}

.social-links svg {
    display: block;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 25px;
    max-width: 480px;
    padding-top: 11px;
}

.footer-links a {
    color: #d4cbbf;
    font-size: 0.78rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #d7bd90;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 70px;
    padding-block: 16px;
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    color: #a99f91;
    font-size: 0.7rem;
}

.back-top {
    flex-shrink: 0;
    color: #d7bd90;
}

.back-top:hover {
    color: var(--paper);
}

/* 20. LIGHTBOX / TOAST PREPARADOS PARA JS */
.lightbox {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: rgba(24, 22, 18, 0.94);
}

.lightbox.is-open,
.lightbox[aria-hidden="false"] {
    display: flex;
}

.lightbox figure {
    display: grid;
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    justify-items: center;
    gap: 12px;
    margin: 0;
}

.lightbox figure img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox figcaption {
    color: var(--paper);
    font-family: var(--serif);
    font-size: 1.25rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--paper);
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

.toast {
    position: fixed;
    z-index: 600;
    right: 20px;
    bottom: 20px;
    max-width: min(400px, calc(100vw - 40px));
    padding: 14px 18px;
    border: 1px solid var(--champagne);
    color: var(--paper);
    background: var(--ink);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--transition), transform var(--transition);
}

.toast.show,
.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 21. REVEAL NO DEPENDE DE JS PARA SER VISIBLE */
.reveal {
    animation: editorial-entry 650ms ease both;
}

@keyframes editorial-entry {
    from { opacity: 0.96; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 22. PANTALLAS MEDIANAS */
@media (max-width: 1050px) {
    .container {
        width: min(var(--container), calc(100% - 44px));
    }

    .nav-wrap {
        min-height: 80px;
        gap: 18px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.72rem;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-name small {
        font-size: 0.56rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1fr);
        gap: 42px;
    }

    .hero-photo {
        height: 540px;
    }

    .page-hero-grid {
        gap: 42px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card {
        min-height: 220px;
    }
}

/* 23. TABLET Y MÓVIL */
@media (max-width: 780px) {
    html {
        scroll-padding-top: 25px;
    }

    .container {
        width: min(var(--container), calc(100% - 38px));
    }

    .section {
        padding-block: 72px;
    }

    .nav-wrap {
        min-height: 78px;
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .nav-wrap nav {
        width: 100%;
        order: 3;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 4px 19px;
        flex-wrap: wrap;
        padding: 4px 0 6px;
    }

    .nav-links a {
        min-height: 34px;
        font-size: 0.76rem;
    }

    .nav-links a::after {
        bottom: 0;
    }

    .nav-links .nav-cta {
        min-height: 34px;
        padding-inline: 11px;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        padding-block: 64px 76px;
    }

    .hero-grid,
    .page-hero-grid,
    .about-grid,
    .contact-grid,
    .faq-grid,
    .split-copy {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-copy {
        padding-block: 0;
    }

    h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .hero-visual {
        max-width: 650px;
    }

    .hero-photo-frame {
        min-height: 0;
    }

    .hero-photo {
        height: clamp(380px, 85vw, 610px);
    }

    .vertical-note {
        right: 3px;
    }

    .strip-inner {
        min-height: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 14px 26px;
        padding-block: 22px;
    }

    .strip-inner span {
        font-size: 1.08rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .side-note {
        max-width: 500px;
        margin-bottom: 0;
    }

    .intro-main h2 {
        font-size: clamp(2.3rem, 7vw, 3.7rem);
    }

    .intro-bottom,
    .services-head,
    .portfolio-head,
    .gallery-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro-bottom {
        gap: 22px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:first-child {
        min-height: 0;
        padding: 26px 24px 30px;
        border: 0;
        border-bottom: 1px solid var(--line);
    }

    .service-card:last-child {
        border-bottom: 0;
    }

    .service-icon {
        margin: 22px 0 14px;
    }

    .service-card p {
        max-width: 580px;
    }

    .gallery,
    .gallery-preview,
    .portfolio-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-item,
    .portfolio-gallery .gallery-item {
        min-height: 270px;
    }

    .gallery-item img,
    .gallery-item:nth-child(3n + 1) img {
        min-height: 270px;
    }

    .gallery-overlay {
        padding: 44px 14px 16px;
    }

    .gallery-overlay strong {
        font-size: 1.2rem;
    }

    .gallery-open {
        width: 32px;
        height: 32px;
        opacity: 1;
        transform: none;
    }

    .about-grid {
        gap: 45px;
    }

    .about-image-wrap {
        max-width: 600px;
    }

    .about-image {
        height: clamp(380px, 80vw, 560px);
    }

    .about-copy h2 {
        font-size: clamp(2.2rem, 7vw, 3.6rem);
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step,
    .process-step:first-child {
        padding: 28px 5px;
        border: 0;
        border-bottom: 1px solid var(--line);
    }

    .process-step:last-child {
        border-bottom: 0;
    }

    .step-number {
        margin-bottom: 16px;
    }

    .page-hero-grid {
        gap: 36px;
    }

    .page-hero-copy h1 {
        font-size: clamp(2.9rem, 9vw, 4.7rem);
    }

    .page-hero-image,
    .page-hero-image img {
        min-height: 0;
        height: clamp(340px, 75vw, 520px);
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .package-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .package-card--featured {
        transform: none;
    }

    .package-card > p {
        min-height: 0;
    }

    .faq-grid {
        gap: 35px;
    }

    .faq-intro h2 {
        font-size: clamp(2.2rem, 7vw, 3.3rem);
    }

    .contact-grid {
        gap: 42px;
    }

    .contact-copy h2 {
        font-size: clamp(2.3rem, 7vw, 3.4rem);
    }

    .footer-main {
        flex-direction: column;
        gap: 35px;
    }

    .footer-links {
        justify-content: flex-start;
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding-block: 62px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.02rem;
    }

    .nav-links {
        gap: 2px 14px;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .eyebrow {
        font-size: 0.61rem;
        letter-spacing: 0.12em;
    }

    .hero {
        padding-block: 48px 64px;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 13vw, 4rem);
    }

    .hero-copy > p,
    .page-hero-copy > p {
        font-size: 0.9rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-photo {
        height: 390px;
    }

    .hero-visual {
        padding-right: 14px;
        padding-bottom: 20px;
    }

    .photo-label {
        width: 215px;
        padding: 18px;
    }

    .photo-label strong {
        font-size: 1.25rem;
    }

    .vertical-note {
        right: -2px;
        font-size: 0.52rem;
    }

    .strip-inner {
        gap: 12px 18px;
    }

    .strip-inner i {
        margin-left: 9px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .intro-main h2 {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .service-card {
        padding-inline: 18px;
    }

    .gallery,
    .gallery-preview,
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .portfolio-gallery .gallery-item {
        min-height: 360px;
    }

    .gallery-item img,
    .gallery-item:nth-child(3n + 1) img {
        min-height: 360px;
    }

    .gallery-overlay {
        padding: 56px 19px 20px;
    }

    .gallery-overlay strong {
        font-size: 1.45rem;
    }

    .filters {
        gap: 7px;
    }

    .filter-btn {
        min-height: 39px;
        padding: 8px 12px;
        font-size: 0.72rem;
    }

    .about-image {
        height: 400px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--full {
        grid-column: auto;
    }

    .contact-form {
        padding: 24px 18px;
    }

    .contact-form h3 {
        font-size: 1.7rem;
    }

    .final-cta h2,
    .home-cta h2 {
        font-size: clamp(2.25rem, 10vw, 3.3rem);
    }

    .footer {
        padding-top: 45px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* 24. MOVIMIENTO REDUCIDO Y ESTADOS DESHABILITADOS */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}


/* =====================================================
   JAVASCRIPT ENHANCEMENTS: MOBILE MENU + SCROLL REVEAL
   These rules are progressive: without JS, nav links remain visible.
===================================================== */
@media (max-width: 780px) {
    html.js-enabled .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        flex-shrink: 0;
    }

    html.js-enabled .nav-wrap nav {
        width: 100%;
        order: 3;
    }

    html.js-enabled .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 16px;
    }

    html.js-enabled .nav-links.is-open {
        display: flex;
    }

    html.js-enabled .nav-links li {
        width: 100%;
    }

    html.js-enabled .nav-links a {
        display: flex;
        width: 100%;
        min-height: 42px;
        padding-inline: 4px;
        white-space: normal;
    }

    html.js-enabled .nav-links .nav-cta {
        width: max-content;
        margin-top: 8px;
        padding-inline: 14px;
    }
}

.gallery-item[hidden] {
    display: none !important;
}

html.has-scroll-reveal .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
    animation: none;
}

html.has-scroll-reveal .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
    transition: opacity 650ms ease, transform 650ms ease;
}

@media (prefers-reduced-motion: reduce) {
    html.has-scroll-reveal .reveal:not(.is-visible),
    html.has-scroll-reveal .reveal.is-visible {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
