/* =========================================
   VARIABLES Y TIPOGRAFÍAS (Estilo Fabulous)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --isa-dark: #111111;
    --isa-light: #Faf9f8;
    --isa-accent: #b0895c;
    --isa-muted: #767676;
    --white: #ffffff;
    --border-color: #E5E5E5;
}

/* =========================================
   RESET BÁSICO
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--white);
    color: var(--isa-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================
   ANNOUNCEMENT BAR & HEADER
========================================= */
.announcement-bar {
    background-color: var(--isa-accent);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 85px;
}

.nav-left {
    display: flex;
    gap: 2rem;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}

.nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--isa-accent);
}

.btn-header {
    border: 1px solid var(--isa-dark);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}

.btn-header:hover {
    background: var(--isa-accent);
    border-color: var(--isa-accent);
    color: var(--white);
}

@media (max-width: 992px) {

    .nav-left,
    .nav-right .nav-link {
        display: none;
    }

    .nav-inner {
        grid-template-columns: auto 1fr;
        justify-content: space-between;
    }

    .nav-right {
        gap: 1rem;
    }
}

/* =========================================
   HERO BANNER (FONDO ENTERO + LIBRO FLOTANTE)
========================================= */
.hero-full-banner {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--isa-light);
    margin-bottom: 140px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(250, 249, 248, 0.95) 0%, rgba(250, 249, 248, 0.7) 45%, rgba(250, 249, 248, 0.05) 100%);
    z-index: 2;
}

.hero-content-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-content {
    flex: 0 0 45%;
    max-width: 500px;
    padding: 7rem 0;
}

.book-content h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5
rem;
    color: var(--isa-dark);
    font-family: 'Playfair Display', serif;
}

.book-content p {
    font-size: 1.3rem;
    color: var(--isa-muted);
    margin-bottom: 2rem;
    max-width: 400px;
}

.btn-amazon {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: #111;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    transition: background 0.3s, transform 0.3s;
    line-height: 1.2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-amazon:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-amazon span.small {
    font-size: 1rem;
    color: #ccc;
}

.btn-amazon span.large {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: sans-serif;
}

.book-floating-wrapper {
    position: absolute;
    right: 8%;
    bottom: -160px;
    width: 360px;
    z-index: 20;
    transition: transform 0.6s ease;
}

.book-floating-wrapper:hover {
    transform: translateY(-15px);
}

.book-floating-cover {
    width: 100%;
    filter: drop-shadow(-20px 30px 25px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.book-badge {
    position: absolute;
    top: 50px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: #1a1a1a;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
    z-index: 21;
    transition: transform 0.3s;
}

.book-floating-wrapper:hover .book-badge {
    transform: scale(1.05) rotate(5deg);
}

.signature-floating {
    position: absolute;
    left: 15%;
    bottom: -60px;
    width: 225px;
    z-index: 30;
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.05));
}

@media (max-width: 992px) {
    .hero-full-banner {
        min-height: auto;
        padding: 6rem 0 3rem 0;
        margin-bottom: 2rem;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(250, 249, 248, 0.95) 0%, rgba(250, 249, 248, 0.85) 50%, rgba(250, 249, 248, 0.2) 100%);
    }

    .hero-content-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2rem;
    }

    .book-content {
        flex: 0 0 100%;
        margin-bottom: 0;
        padding: 0;
    }

    .book-content p {
        margin: 0 auto 2rem auto;
    }

    .btn-amazon {
        margin: 0 auto;
    }

    .book-floating-wrapper {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        width: 240px;
        margin: 0 auto;
    }

    .book-floating-wrapper:hover {
        transform: translateY(-10px);
    }

    .book-badge {
        top: 20px;
        right: -20px;
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }

    .signature-floating {
        display: none;
    }
}

/* =========================================
   LOGOS / BRAND BAR
========================================= */
.brand-bar {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.brand-logos {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #d1d1d1;
}

@media (max-width: 768px) {
    .brand-logos {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =========================================
   SECCIONES GENERALES & EDITORIALES
========================================= */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--isa-accent);
    margin-bottom: rem;
    display: block;
}

.title {
    font-size: 3rem;
    color: var(--isa-dark);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-box {
    text-align: center;
}

.feature-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--isa-light);
    text-shadow: -1px -1px 0 #e5e5e5, 1px -1px 0 #e5e5e5, -1px 1px 0 #e5e5e5, 1px 1px 0 #e5e5e5;
    margin-bottom: rem;
    line-height: 1;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-desc {
    color: var(--isa-muted);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* =========================================
   COLLAGE ZONAS DEL HOGAR
========================================= */
.collage-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
}

.collage-left {
    width: 55%;
    height: 800px;
    position: relative;
}

.collage-right {
    width: 45%;
    display: flex;
    flex-direction: column;
    height: 800px;
}

.collage-right-top {
    display: flex;
    height: 45%;
}

.collage-right-bottom {
    height: 55%;
    position: relative;
}

.collage-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collage-item:hover img {
    transform: scale(1.03);
}

.collage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 35%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 3rem;
    pointer-events: none;
}

.collage-title {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.collage-link {
    color: var(--white);
    background: rgba(135, 145, 155, 0.85);
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    pointer-events: auto;
    transition: background 0.3s;
}

.collage-link:hover {
    background: var(--isa-accent);
}

.collage-text-block {
    width: 40%;
    background: var(--isa-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.collage-text-block .small-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    color: var(--isa-dark);
}

.collage-text-block .large-text {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--isa-dark);
    line-height: 1;
}

.collage-right-top .collage-item {
    width: 60%;
}

@media (max-width: 992px) {

    .collage-left,
    .collage-right {
        width: 100%;
    }

    .collage-left {
        height: 500px;
    }

    .collage-right {
        height: 700px;
    }
}

@media (max-width: 576px) {
    .collage-right-top {
        flex-direction: column;
        height: auto;
    }

    .collage-right-top .collage-item,
    .collage-text-block {
        width: 100%;
        height: 300px;
    }

    .collage-right-bottom {
        height: 400px;
    }
}

/* =========================================
   ANTES Y DESPUÉS (BEFORE & AFTER GRID)
========================================= */
.ba-section {
    background-color: var(--white);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ba-card {
    display: flex;
    flex-direction: column;
}

.ba-images {
    display: flex;
    gap: 4px;
    height: 450px;
    margin-bottom: 1.5rem;
}

.ba-half {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

.ba-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.ba-card:hover .ba-half img {
    transform: scale(1.05);
}

.ba-label {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--isa-dark);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.ba-half.antes img {
    filter: grayscale(80%);
}

.ba-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--isa-dark);
}

.ba-desc {
    text-align: center;
    font-size: 0.9rem;
    color: var(--isa-muted);
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .ba-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .ba-images {
        height: 400px;
    }
}

/* =========================================
   CARRUSEL MANUAL
========================================= */
.portfolio-banner {
    background-color: var(--isa-light);
    padding: 6rem 0 5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    max-width: 100%;
}

.slider-viewport {
    overflow: hidden;
    flex: 1;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item {
    width: 400px;
    height: 500px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.slider-item:hover img {
    transform: scale(1.05);
}

/* ===== BOTONES CORREGIDOS ===== */

.slider-wrapper {
    position: relative;
}

.slider-btn {
    position: absolute;
    top: 50%;
    ;

    background: rgba(0, 0, 0, 0.1);
    color: #333;

    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;

    font-size: 1.2rem;
    cursor: pointer;

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

    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    z-index: 10;
}

/* IZQUIERDA */
.slider-btn-prev {
    left: 15px;
}

/* DERECHA */
.slider-btn-next {
    right: 15px;
}

/* HOVER */
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: var(--isa-dark);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .slider-item {
        width: 280px;
        height: 380px;
    }
}

/* ===== SLIDER PRO UPGRADE ===== */

.slider-viewport {
    overflow: hidden;
    cursor: grab;
}

.slider-viewport:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    user-select: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item {
    flex-shrink: 0;
    pointer-events: none;
}

/* =========================================
   BANNER INTERMEDIO (ESTILO PARALLAX)
========================================= */
.banner-full {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 3.4rem;
    text-align: center;
    max-width: 510px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.btn-main {
    display: inline-block;
    background: var(--isa-accent);
    color: var(--white);
    padding: 1.2rem 3rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.15em;
    transition: background 0.3s;
}

.btn-main:hover {
    background: #9c784e;
}

/* =========================================
   SPLIT EDITORIAL (SOBRE LA DISEÑADORA)
========================================= */
.editorial-split {
    display: flex;
    align-items: center;
    background: var(--isa-light);
}

.editorial-img {
    flex: 1;
    height: 800px;
}

.editorial-text {
    flex: 1;
    padding: 6rem;
}

.editorial-text p {
    margin-bottom: 1.5rem;
    color: var(--isa-muted);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .editorial-split {
        flex-direction: column;
    }

    .editorial-img {
        width: 100%;
        height: 500px;
    }

    .editorial-text {
        padding: 3rem 20px;
    }
}

/* =========================================
   FORMULARIO MINIMALISTA (RESERVA)
========================================= */
.booking-section {
    background: var(--white);
    text-align: center;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: var(--isa-accent);
}

.btn-submit {
    background: var(--isa-accent);
    color: var(--white);
    padding: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #9c784e;
}

/* =========================================
   FOOTER CLÁSICO
========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    background: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.footer-grid > div:first-child {
    text-align: center;
}

.footer-grid > div:first-child p {
    text-align: center;
    margin: 0 auto;
}

.footer-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--isa-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--isa-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--isa-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== Reglas globales (fuera de cualquier media query) ===== */
section {
    position: relative;
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.portfolio-banner {
    overflow: hidden;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.editorial-split {
    display: flex;
    align-items: stretch;
    overflow: hidden; /* 👈 clave */
}

.editorial-img {
    flex: 1;
    overflow: hidden;
    max-height: 600px; /* ajusta a la altura que quieras */
}

.editorial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* para que no corte la cara */
    display: block;
}

.editorial-text {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .editorial-split {
        flex-direction: column;
    }

    .editorial-img {
        max-height: 400px;
    }

    .editorial-text {
        padding: 2rem;
    }
}

/* =========================================
   HERO MÓVIL — versión limpia y ordenada
   (oculta el rodillo de fondo, libro en flujo normal)
========================================= */
@media (max-width: 992px) {
    .hero-full-banner {
        min-height: auto;
        padding: 2.5rem 0 3.5rem;
        margin-bottom: 0;
        background-color: var(--isa-light);
        /* Fondo suave solo para móvil (el rodillo se mantiene en escritorio) */
        background-image: url('images/fondo_portada.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Ocultamos el <img> del rodillo en móvil; usamos el fondo suave de arriba */
    .hero-bg-image {
        display: none;
    }

    .hero-content-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 2.25rem;
    }

    .book-content {
        flex: 0 0 100%;
        max-width: 540px;
        padding: 0;
        margin: 0;
    }

    .book-content h2 {
        margin-bottom: 1rem;
    }

    .book-content p {
        margin: 0 auto 1.75rem;
        max-width: 420px;
    }

    .btn-amazon {
        margin: 0 auto;
    }

    /* El libro pasa a flujo normal, debajo del botón */
    .book-floating-wrapper {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        width: 230px;
        margin: 0.5rem auto 0;
    }

    .book-floating-wrapper:hover {
        transform: translateY(-8px);
    }

    .book-badge {
        top: 16px;
        right: -12px;
        width: 76px;
        height: 76px;
        font-size: 0.82rem;
    }

    .signature-floating {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-full-banner {
        padding: 1.75rem 0 3rem;
    }

    .hero-content-inner {
        gap: 2rem;
    }

    .book-floating-wrapper {
        width: 200px;
    }
}