/*
 * Estilos de Atalaya Property Photography.
 * Los bloques editoriales posteriores refinan la base; conserva su orden porque
 * algunas reglas repetidas funcionan como sobrescrituras deliberadas.
 */
:root {
    --ink: #34382f;
    --paper: #faf9f6;
    --sand: #ece3d7;
    --muted: #67675e;
    --button-bg: #2b231f;
    --button-hover: #3d4242;
    --button-soft-bg: #ece3d7;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.75;
}
h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
}
h1 {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
}
h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin-bottom: 1.5rem;
}
h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}
p {
    color: var(--muted);
}
.navbar {
    background: var(--paper);
    padding: 1rem 0;
}
.navbar-brand {
    letter-spacing: 0.16em;
    font-size: 0.95rem;
    line-height: 1.4;
}
.navbar-brand small {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.32em;
}
.navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    line-height: 0;
}
.navbar-brand-logo img {
    display: block;
    width: clamp(160px, 19vw, 220px);
    height: auto;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1.3rem;
}
.hero {
    min-height: 78vh;
    display: flex;
    align-items: end;
    background:
        linear-gradient(0deg, rgba(28, 30, 24, 0.78), rgba(28, 30, 24, 0.15)),
        url("images/hero.jpg") center/cover;
    background-color: #77796b;
    color: white;
}
.hero-inner {
    padding-top: 8rem;
    padding-bottom: 5rem;
}
.hero p,
.contact p {
    color: #fff;
}
.btn {
    border-radius: 0;
    padding: 0.8rem 1.4rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.btn-dark {
    background: var(--ink);
    border-color: var(--ink);
}
.section {
    padding-block: clamp(4rem, 8vw, 8rem);
}
.sand {
    background: var(--sand);
}
.photo {
    background: var(--photo) center/cover no-repeat;
    background-color: #d9d3c6;
}
.tall {
    aspect-ratio: 4/5;
}
.landscape {
    aspect-ratio: 4/3;
}
.project {
    font-size: 1.4rem;
    margin-top: 1rem;
}
.narrow {
    max-width: 780px;
}
.statement {
    background: #e5e1d7;
}
.text-link {
    color: var(--ink);
    text-underline-offset: 5px;
}
.step {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #77796b;
    border-top: 1px solid #b9b4a8;
    padding-top: 1rem;
}
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--ink);
    --bs-accordion-btn-focus-box-shadow: none;
}
.accordion-button {
    padding: 1.5rem 0;
    font-family: "DM Sans", sans-serif;
}
.contact {
    background: var(--ink);
    color: white;
}
footer {
    font-size: 0.8rem;
}
footer a {
    color: var(--ink);
}
@media (max-width: 767px) {
    .hero {
        min-height: 65vh;
    }
    .hero-inner {
        padding-bottom: 3rem;
    }
    .navbar-nav {
        padding-top: 1rem;
    }
    .section {
        padding-block: 3.5rem;
    }
    .hero .btn {
        padding: 0.7rem 0.9rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.hero {
    background:
        linear-gradient(90deg, rgba(22, 25, 20, 0.72), rgba(22, 25, 20, 0.12)),
        var(--hero) center/cover no-repeat;
    min-height: 84vh;
    align-items: center;
}
.hero h1 {
    max-width: 950px;
    font-size: clamp(2.8rem, 5.8vw, 5.4rem);
}
.hero .lead {
    max-width: 650px;
}
.hero-inner {
    padding-block: 5rem;
}
.photo {
    display: block;
    width: 100%;
    object-fit: cover;
    height: auto;
}
.wide {
    aspect-ratio: 16/9;
}
.portrait {
    aspect-ratio: 4/5;
}
.service-photo {
    aspect-ratio: 4/5;
}
.service {
    margin-bottom: 5rem;
}
.service:last-child {
    margin-bottom: 0;
}
.copy {
    max-width: 480px;
    margin: auto;
    padding: 1rem;
}
.copy h3 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 1.4rem;
}
.benefit {
    padding: 1rem;
}
.benefit h3 {
    font-size: 1.65rem;
}
.symbol {
    display: block;
    font-size: 2.5rem;
    color: #82796b;
    margin-bottom: 0.8rem;
}
.section h2 {
    max-width: 900px;
    margin-inline: auto;
}
.contact .eyebrow {
    color: #e5e1d7;
}
@media (max-width: 767px) {
    .hero {
        min-height: 75vh;
    }
    .service {
        margin-bottom: 3rem;
    }
    .service-photo {
        aspect-ratio: 4/3;
    }
    .portrait {
        aspect-ratio: 4/3;
    }
    .copy {
        padding: 0;
    }
    .hero-inner {
        padding-block: 3rem;
    }
}
/* Ajuste editorial V2 */
body {
    font-size: 16px;
    line-height: 1.7;
}
.hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    max-width: 720px;
    line-height: 1.2;
}
h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    margin-bottom: 1rem;
}
.copy h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin-bottom: 1rem;
}
.benefit h3 {
    font-size: 1.25rem;
}
.lead {
    font-size: 1.08rem;
}
.section {
    padding-block: clamp(3rem, 5vw, 5rem);
}
.personal-copy {
    max-width: 660px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}
.personal-question {
    font-family:
        Playfair Display,
        Georgia,
        serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    max-width: 650px;
    margin: 2.5rem auto 0;
    text-align: center;
    color: var(--ink);
}
.hero {
    min-height: 75vh;
}
.hero .lead {
    max-width: 550px;
}
.eyebrow {
    letter-spacing: 0.13em;
}
.service-photo {
    aspect-ratio: 4/5;
}
@media (max-width: 767px) {
    .hero {
        min-height: 65vh;
    }
    .service-photo {
        aspect-ratio: 4/3;
    }
    .personal-copy {
        margin-bottom: 1.5rem;
    }
}

/* V3: transicion editorial */
.intro-reflection {
    background: var(--sand);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    text-align: center;
}
.intro-reflection p {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.55;
    max-width: 790px;
    margin: 0 auto;
    color: var(--ink);
}
/* V4 */
.about-copy {
    max-width: 570px;
}
.about-copy h3 {
    font-size: 1.35rem;
}
.process-title {
    font-size: 1.35rem;
}
.step {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.closing-photo {
    height: clamp(220px, 35vw, 440px);
    object-fit: cover;
}
.btn-whatsapp,
.whatsapp-float {
    background: #25794e;
    color: white;
    border: 1px solid #25794e;
}
.btn-whatsapp:hover,
.whatsapp-float:hover {
    background: #195d3a;
    color: white;
}
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    box-shadow: 0 3px 14px #0003;
}
.whatsapp-float:focus-visible {
    outline: 3px solid #34382f;
    outline-offset: 3px;
}
footer {
    padding-right: 75px !important;
}

/* PRUEBA TIPOGRÁFICA: Bodoni Moda + Manrope */
/* Texto general e interfaz */
body,
button,
input,
textarea,
select,
.navbar,
.nav-link,
.navbar-brand,
.eyebrow,
.btn,
footer {
    font-family: "Manrope", sans-serif;
}

/* Títulos y frases editoriales */
h1,
h2,
h3,
h4,
h5,
h6,
.hero h1,
.section h2,
.copy h3,
.benefit h3,
.process-title,
.personal-question,
.intro-reflection p {
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 500;
}

/* Mantener la jerarquía visual y evitar títulos demasiado pesados */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

/* Ajuste tipográfico: Manrope 400, cuerpo ligeramente menor y más aire */
body,
.nav-link,
.navbar-brand,
button,
input,
textarea,
select,
.accordion-button,
footer {
    font-family: "Manrope", sans-serif;
    font-weight: 400;
}
body {
    font-size: 15px;
    line-height: 1.85;
}
p,
.lead,
.copy p:not(.eyebrow),
.personal-copy,
.about-copy,
.accordion-body {
    font-size: 0.94rem;
    line-height: 1.85;
    font-weight: 400;
}
.nav-link {
    font-size: 0.88rem;
}
.eyebrow {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
}
.btn {
    font-family: "Manrope", sans-serif;
    font-weight: 500;
}

/* SERVICIOS: cuatro columnas */
.services-section {
    max-width: 1440px;
    padding-left: clamp(18px, 2.5vw, 36px);
    padding-right: clamp(18px, 2.5vw, 36px);
}
.services-grid {
    --bs-gutter-x: clamp(1.5rem, 2.8vw, 3rem);
    --bs-gutter-y: 2.75rem;
}
.service-card {
    height: 100%;
}
.service-card-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 1.35rem;
}
.service-card .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
}
.service-card h3 {
    font-size: clamp(1.2rem, 1.35vw, 1.6rem);
    line-height: 1.25;
    margin-bottom: 0.9rem;
}
.service-card p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.85;
}
@media (max-width: 991px) {
    .services-section {
        max-width: 960px;
    }
    .service-card h3 {
        font-size: 1.45rem;
    }
}
@media (max-width: 575px) {
    .services-section {
        padding-left: 18px;
        padding-right: 18px;
    }
    .services-grid {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 2.5rem;
    }
    .service-card-photo {
        aspect-ratio: 4 / 3;
    }
}

/* Corazón lineal: mismo lenguaje visual que los otros símbolos */
.symbol-heart {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ATALAYA — marca en la esquina superior izquierda */
.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "Bodoni Moda", "Bodoni MT", "Didot", Georgia, serif !important;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1.05;
    color: var(--ink, #34382f) !important;
    padding-block: 0.2rem;
    white-space: nowrap;
}
.navbar-brand small {
    display: block !important;
    margin-top: 0.32rem;
    font-family: "Manrope", "Avenir Next", Arial, sans-serif !important;
    font-size: 0.53rem;
    font-weight: 400;
    letter-spacing: 0.19em;
    line-height: 1.3;
}
@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1.35rem;
    }
    .navbar-brand small {
        font-size: 0.48rem;
        letter-spacing: 0.14em;
    }
}

/* Cabecera: imagen como elemento real para asegurar su carga en ambos idiomas */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #77796b !important;
}
.hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(22, 25, 20, 0.72), rgba(22, 25, 20, 0.12));
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
}

/* Paleta de botones solicitada: marrón oscuro, hover gris carbón y beige claro. */
.btn-dark,
.btn-success,
.btn-whatsapp,
.whatsapp-float {
    color: #fff;
    background-color: var(--button-bg);
    border-color: var(--button-bg);
}
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
.btn-dark.active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active,
.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
    color: #fff;
    background-color: var(--button-hover);
    border-color: var(--button-hover);
}
.btn-light {
    color: var(--button-bg);
    background-color: var(--button-soft-bg);
    border-color: var(--button-soft-bg);
}
.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    color: #fff;
    background-color: var(--button-hover);
    border-color: var(--button-hover);
}
.btn-outline-dark {
    color: var(--button-bg);
    border-color: var(--button-bg);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-outline-dark.active {
    color: #fff;
    background-color: var(--button-hover);
    border-color: var(--button-hover);
}
.btn-outline-light {
    color: var(--button-soft-bg);
    border-color: var(--button-soft-bg);
}
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    color: var(--button-bg);
    background-color: var(--button-soft-bg);
    border-color: var(--button-soft-bg);
}
.btn-dark:focus-visible,
.btn-success:focus-visible,
.btn-whatsapp:focus-visible,
.whatsapp-float:focus-visible,
.btn-light:focus-visible,
.btn-outline-dark:focus-visible,
.btn-outline-light:focus-visible {
    outline: 3px solid var(--button-hover);
    outline-offset: 3px;
    box-shadow: 0 0 0 0.2rem rgb(61 66 66 / 25%);
}

/* Visor de fotografías (lightbox) */
body.lightbox-open {
    overflow: hidden;
}
.lightbox-trigger {
    cursor: zoom-in;
}
.lightbox-trigger:focus-visible {
    outline: 3px solid var(--button-hover);
    outline-offset: 4px;
}
.lightbox {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: clamp(16px, 3vw, 40px);
    overflow: hidden;
    border: 0;
    background: #fff;
    color: var(--ink);
    opacity: 0;
    transition: opacity 220ms ease;
}
.lightbox.is-visible {
    opacity: 1;
}
.lightbox::backdrop {
    background: rgb(24 22 20 / 92%);
}
.lightbox__frame {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: scale(0.985);
    transition: transform 220ms ease;
}
.lightbox.is-visible .lightbox__frame {
    transform: scale(1);
}
.lightbox__image {
    display: block;
    max-width: min(100%, calc(100vw - 160px));
    max-height: calc(100vh - 150px);
    object-fit: contain;
}
.lightbox__description {
    max-width: min(760px, calc(100vw - 40px));
    text-align: center;
}
.lightbox__caption,
.lightbox__counter {
    margin: 0;
    color: var(--ink);
}
.lightbox__caption {
    font-size: 0.95rem;
    line-height: 1.5;
}
.lightbox__counter {
    margin-top: 4px;
    font-size: 0.78rem;
    opacity: 0.75;
}
.lightbox__control {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: var(--button-bg);
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;
    transition: background-color 160ms ease;
}
.lightbox__control:hover,
.lightbox__control:focus-visible {
    background: var(--button-hover);
}
.lightbox__control:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.lightbox__control[hidden] {
    display: none;
}
.lightbox__close {
    top: clamp(12px, 3vw, 32px);
    right: clamp(12px, 3vw, 32px);
    font-size: 2.1rem;
}
.lightbox__previous {
    top: 50%;
    left: clamp(12px, 3vw, 32px);
    transform: translateY(-50%);
}
.lightbox__next {
    top: 50%;
    right: clamp(12px, 3vw, 32px);
    transform: translateY(-50%);
}
@media (max-width: 575px) {
    .lightbox {
        padding: 12px;
    }
    .lightbox__image {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 150px);
    }
    .lightbox__control {
        width: 42px;
        height: 42px;
    }
    .lightbox__previous {
        left: 8px;
    }
    .lightbox__next {
        right: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lightbox,
    .lightbox__frame,
    .lightbox__control {
        transition: none;
    }
    .lightbox__frame {
        transform: none;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 3px 14px #0003;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        transform 160ms ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-2px);
    background: #1faa59;
    color: #fff;
}
.whatsapp-float:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
.whatsapp-float svg {
    display: block;
    width: 30px;
    height: 30px;
}
@media (max-width: 575px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        transition: none;
    }
}
