@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --paper-white: #fdfdfc;
    --paper-warm: #f7f3f0;
    --ink-black: #121212;
    --ink-gray: #4a4a4a;
    --ink-light: #9a9a9a;
    --border-color: rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--paper-white);
    color: var(--ink-black);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    cursor: crosshair;
}

/* Subtle Paper Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/felt.png");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1, h2, h3, .serif {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.italic {
    font-style: italic;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.logo-container img {
    height: 24px;
    filter: invert(1); /* Since it's logo_blanco and we want it visible on white/mixed */
    transition: var(--transition-smooth);
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: var(--transition-smooth);
    opacity: 0.7;
}

nav a:hover, nav a.active {
    opacity: 1;
}

/* Home / Editorial Grid */
main {
    padding-top: var(--spacing-xl);
}

#home {
    padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.editorial-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for a balanced editorial look */
    gap: 1px; /* Minimal gap for a "tiled" but clean look, or 0 for total continuity */
    width: 100%;
    background-color: var(--border-color); /* This creates thin lines between images */
}

.editorial-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5; /* Uniform format as requested */
    background-color: var(--paper-warm);
}

.editorial-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures all images fit the 4:5 box perfectly */
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Removing varied column spans for uniformity */
.item-half, .item-third, .item-two-thirds, .item-full { 
    grid-column: span 1; 
}
.item-offset-1 { grid-column-start: 2; }
.item-offset-2 { grid-column-start: 3; }

/* Smart closeout for isolated last images */
.editorial-layout .editorial-item:last-child:nth-child(even) {
    grid-column: span 2;
}

/* Special Composition: VISIÓN (Cover) */
.vision-composition {
    grid-column: span 2; /* Spans across the grid on top */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--ink-black);
    color: white;
    overflow: hidden;
    padding-bottom: 0;
    aspect-ratio: auto; /* Reset for hero */
}

.vision-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.vision-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally and vertically */
    pointer-events: none;
}

.vision-logo-centered {
    width: 320px; /* Elegant large size for center stage */
    max-width: 80vw;
    opacity: 0.95;
    filter: brightness(0) invert(1);
}

/* Autor Section */
#autor {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.autor-image-container {
    height: 80vh;
    overflow: hidden;
}

.autor-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autor-content {
    max-width: 500px;
}

.autor-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.autor-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-gray);
    text-align: justify;
}

/* Booking Section */
#book {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--paper-warm);
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.booking-header {
    grid-column: span 2;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.booking-header h2 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.booking-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step {
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.step.active {
    opacity: 1;
}

.step-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-md);
    display: block;
}

/* Session Options */
.session-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.option-card {
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.option-card:hover, .option-card.selected {
    background-color: var(--ink-black);
    color: white;
}

.option-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.option-price {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.option-details {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Calendar Styling */
.calendar-widget {
    background: white;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    border: 0.5px solid var(--border-color);
}

.calendar-day.disabled {
    color: var(--ink-light);
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.calendar-day.available {
    background-color: white;
    font-weight: 500;
}

.calendar-day.selected {
    background-color: var(--ink-black);
    color: white;
}

/* Time Slots */
.time-slots {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.time-btn {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.time-btn:hover, .time-btn.selected {
    background: var(--ink-black);
    color: white;
}

/* Footer */
footer {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-light);
}

/* --- PROCESS / VISION SECTION --- */
#process {
    background-color: var(--ink-black);
    color: var(--paper-white);
    padding: var(--spacing-xl) var(--spacing-lg);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.process-statement {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 300;
}

.process-statement span.dim-1 { color: rgba(255,255,255,0.6); }
.process-statement span.dim-2 { color: rgba(255,255,255,0.3); }

.process-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 1.5rem;
}

.process-footer {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 3rem;
}

/* Hardware Block */
.sensor-container {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 1.5rem;
}

.sensor-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: filter 1s ease;
}

.sensor-container:hover img {
    filter: brightness(1.1);
}

.sensor-caption {
    margin-top: 1rem;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    display: block;
}

/* Texture Grid - Clean Editorial */
.texture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 4rem;
    margin-top: 6rem;
}

.texture-main {
    position: relative;
}

.texture-main img {
    width: 100%;
    height: auto;
    display: block;
}

.texture-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-box {
    position: relative;
    overflow: hidden;
}

.detail-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-box:hover img {
    transform: scale(1.05);
}

.detail-label {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
    padding: 0.2rem 0.5rem;
    backdrop-filter: blur(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header { padding: 1rem 1.5rem; }
    nav ul { display: flex; gap: 1rem; font-size: 0.6rem; }
    
    #home { padding: 0 1rem var(--spacing-xl); }
    #autor, #book, #faq, #contacto { padding: var(--spacing-lg) 1.5rem; }
    
    #process { padding: var(--spacing-xl) 1.5rem; }
    .process-grid { grid-template-columns: 1fr; gap: 3rem; }
    .process-statement { font-size: 2.5rem; margin-bottom: 2rem; }
    
    .texture-grid { grid-template-columns: 1fr; gap: 3rem; }
    .texture-details { margin-left: 0 !important; margin-top: 0 !important; }
    
    .editorial-layout { grid-template-columns: repeat(2, 1fr); }
    .vision-composition { grid-column: span 2; height: 70vh; }
    
    #autor { grid-template-columns: 1fr; }
    .autor-title { font-size: 3rem; }
    
    .booking-container { grid-template-columns: 1fr; gap: 2rem; }
    .booking-header h2 { font-size: 2.5rem; }
    
    .calendar-widget { padding: 1rem; }
    .calendar-day { font-size: 0.7rem; padding: 10px 0; }
    
    .contact-container h2 { font-size: 2.5rem !important; }
}
