* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #f0ebe6;
    --color-accent: #8b7355;
    --color-light: #faf9f7;
    --color-dark: #0d0d0d;
    --color-white: #ffffff;
    --color-terracotta: #c4a77d;
    --color-sage: #9caa8c;
    --color-granate: #3c1a1c;
    --color-granate-light: #3c1a1caa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-light);
    color: var(--color-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
    CURSOR PERSONALIZADO
=========================== */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.cursor.active {
    transform: scale(2.5);
    opacity: 0.5;
}

/* ===========================
   PRELOADER
=========================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--color-white);
    letter-spacing: 15px;
    text-transform: uppercase;
    overflow: hidden;
}

.preloader-line {
    width: 150px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.preloader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: loadingBar 1.5s ease-in-out forwards;
}

@keyframes loadingBar {
    to { left: 0; }
}

/* ===========================
   HEADER / NAVIGATION
=========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 35px;
    height: 1px;
    background: var(--color-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle:hover span:first-child {
    transform: translateX(5px);
}

.nav-toggle:hover span:last-child {
    transform: translateX(-5px);
}

/* Full Screen Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-dark);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    list-style: none;
    text-align: center;
}

.nav-menu li {
    overflow: hidden;
    margin: 20px 0;
}

.nav-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--color-white);
    text-decoration: none;
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.nav-overlay.active .nav-menu a {
    transform: translateY(0);
}

.nav-menu a:hover {
    color: var(--color-granate-light);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--color-dark);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: grayscale(20%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.1) 40%, 
        rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 80px 120px;
    max-width: 1000px;
}

.hero-label {
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-label::before {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--color-terracotta);
}

.hero-title span {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 40px;
}

.hero-title span {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    line-height: 1.8;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 80px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--color-white);
}

.scroll-text {
    writing-mode: vertical-rl;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ===========================
   INTRO SECTION
=========================== */
.intro-section {
    padding: 180px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
    background: var(--color-light);
}

.intro-text {
    max-width: 550px;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-granate);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-granate);
}

.intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.intro-title span {
    font-style: italic;
    color: var(--color-granate);
}

.intro-description {
    font-size: 1.05rem;
    line-height: 2;
    color: #666;
    font-weight: 300;
}

.intro-stats {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-top: 10px;
}

.intro-image {
    position: relative;
    height: 700px;
}

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

.image-caption {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-granate);
    color: var(--color-white);
    padding: 30px 40px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===========================
   BIOGRAPHY SECTION
=========================== */
.biography-section {
    padding: 160px 80px;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.biography-section::before {
    content: '"';
    position: absolute;
    top: 80px;
    left: 60px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 25rem;
    color: var(--color-secondary);
    line-height: 1;
    z-index: 0;
    opacity: 0.6;
}

.biography-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.biography-image-wrapper {
    position: relative;
}

.biography-image {
    width: 100%;
    height: 650px;
    object-fit: cover;
    filter: grayscale(15%);
    transition: filter 0.6s ease;
}

.biography-image-wrapper:hover .biography-image {
    filter: grayscale(0%);
}

.biography-image-frame {
    position: absolute;
    top: 30px;
    left: 30px;
    right: -30px;
    bottom: -30px;
    border: 1px solid var(--color-granate);
    z-index: -1;
}

.biography-name-vertical {
    position: absolute;
    right: -150px;
    top: 75%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--color-dark);
    white-space: nowrap;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}

.biography-content {
    padding: 20px 0;
}

.biography-label {
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-granate);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.biography-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--color-granate);
}

.biography-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.biography-name span {
    font-style: italic;
    color: var(--color-granate);
}

.biography-role {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
}

.biography-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-primary);
    margin-bottom: 35px;
    padding-left: 25px;
    border-left: 2px solid var(--color-granate);
}

.biography-text {
    font-size: 1rem;
    line-height: 2;
    color: #555;
    font-weight: 300;
    margin-bottom: 25px;
}

.biography-text:last-of-type {
    margin-bottom: 40px;
}

.biography-quote {
    background: var(--color-secondary);
    padding: 30px 35px;
    margin: 40px 0;
    position: relative;
}

.biography-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-granate);
    margin: 0;
}

.biography-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--color-granate);
    opacity: 0.3;
    line-height: 1;
}

.biography-signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-granate);
    margin-top: 30px;
}

@media (max-width: 992px) {
    .biography-section { padding: 100px 40px; }
    .biography-container { grid-template-columns: 1fr; gap: 60px; }
    .biography-image { height: 500px; }
    .biography-name-vertical { display: none; }
    .biography-section::before { font-size: 15rem; top: 40px; left: 20px; }
}

@media (max-width: 768px) {
    .biography-section { padding: 80px 25px; }
    .biography-name { font-size: 2.5rem; }
    .biography-intro { font-size: 1.3rem; padding-left: 20px; }
    .biography-image { height: 400px; }
    .biography-image-frame { top: 15px; left: 15px; right: -15px; bottom: -15px; }
    .biography-section::before { display: none; }
}

/* ===========================
   GALLERY GRID - BENTO STYLE
=========================== */
.gallery-section {
    padding: 0;
    background: var(--color-primary);
}

.gallery-header {
    padding: 150px 80px 80px;
    text-align: center;
    background: var(--color-light);
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 30px;
}

.gallery-subtitle {
    font-size: 1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 8px;
    padding: 8px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--color-dark);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    filter: grayscale(30%) brightness(0.9);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(60, 26, 41, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-item-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-white);
    fill: none;
    stroke-width: 2;
}

/* Bento Grid Layout - 15 items */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(7) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(8) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(9) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(10) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(11) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(12) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(13) { grid-column: span 1; grid-row: span 2; }
.gallery-item:nth-child(14) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(15) { grid-column: span 2; grid-row: span 1; }

/* ===========================
   ARCHITECTURE SECTION
=========================== */
.architecture-section {
    padding: 180px 80px;
    background: var(--color-white);
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.arch-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arch-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 40px;
}

.arch-text {
    font-size: 1.05rem;
    line-height: 2;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

.arch-features {
    list-style: none;
    margin-top: 40px;
}

.arch-features li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    font-size: 1rem;
    color: #444;
}

.arch-features li::before {
    content: '—';
    color: var(--color-granate);
    font-weight: 600;
}

.arch-features .feature-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arch-features .feature-title {
    font-weight: 600;
    color: #222;
}

.arch-features .feature-subtext {
    font-size: 0.95rem;
    color: #6b6b6b;
    font-style: italic;
    line-height: 1.4;
}

.arch-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.arch-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.arch-images img:first-child {
    grid-column: span 2;
    height: 400px;
}

/* ===========================
   VIDEO SECTION
=========================== */
.video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.video-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 40px;
}

.video-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.2;
}

.video-text {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.9;
    font-weight: 300;
}

.play-button {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto 0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.play-button:hover {
    transform: scale(1.1);
    border-color: var(--color-white);
    background: var(--color-granate);
}

.play-button svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
    margin-left: 5px;
}

/* ===========================
   DETAILS SECTION
=========================== */
.details-section {
    padding: 180px 80px;
    background: var(--color-light);
}

.details-header {
    text-align: center;
    margin-bottom: 50px;
}

.details-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 12px;
}

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

.detail-card {
    text-align: center;
}

.detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

.detail-card:hover .detail-image {
    filter: grayscale(0%);
}

.detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-granate);
}

.detail-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #777;
    font-weight: 300;
}

/* ===========================
   HORIZONTAL GALLERY - AUTO INFINITE CAROUSEL (CAMBIO APLICADO)
=========================== */
.horizontal-gallery {
    padding: 150px 0;
    background: var(--color-dark);
    overflow: hidden;
}

.horizontal-gallery-header {
    padding: 0 80px;
    margin-bottom: 30px;
}

.horizontal-gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--color-white);
    font-weight: 300;
    margin: 0 0 8px 0;
}

.gallery-track {
    display: flex;
    gap: 30px;
    padding: 0 80px;
    width: max-content;
    will-change: transform;

    --dur: 140s;
    animation: ff-marquee var(--dur) linear infinite;

    overflow: visible;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes ff-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

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

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

@media (prefers-reduced-motion: reduce) {
    .gallery-track {
        animation: none;
        transform: none;
    }
}

@media (max-width: 768px){
  .gallery-track{
    --dur: 140s; /* ajusta: 25s-40s suele ir bien */
  }
}

/* ===========================
   QUOTE SECTION
=========================== */
.quote-section {
    padding: 200px 80px;
    background: var(--color-secondary);
    text-align: center;
}

.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 1000px;
    margin: 0 auto 50px;
    color: var(--color-primary);
    font-style: italic;
}

.quote-author {
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-granate);
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section {
    padding: 180px 80px;
    background: var(--color-granate);
    color: var(--color-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

.contact-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.05rem;
    line-height: 2;
    opacity: 0.8;
    margin-bottom: 50px;
    font-weight: 300;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.5;
}

.contact-value {
    font-size: 1rem;
}

.contact-image {
    position: relative;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

/* ===========================
   INFO FORM SECTION
=========================== */
.info-form-section {
    padding: 50px 30px;
    background: var(--color-secondary);
}

.info-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.info-form-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-form-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--color-granate);
    margin-bottom: 15px;
}

.info-form-header p {
    font-size: 1.05rem;
    color: var(--color-primary);
    opacity: 0.7;
    font-weight: 300;
}

.info-form {
    background: var(--color-white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(60, 26, 28, 0.08);
    border: 1px solid rgba(60, 26, 28, 0.08);
}

.form-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: none;
}
.form-message.success { background: #e6ffed; color: #064e3b; border: 1px solid #a7f3d0; display: block; }
.form-message.error { background: #fff1f2; color: #7f1d1d; border: 1px solid #fecaca; display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.info-form .form-group {
    display: flex;
    flex-direction: column;
}

.info-form .form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 25px;
}

.info-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.info-form input,
.info-form select,
.info-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1.5px solid rgba(60, 26, 28, 0.15);
    background: var(--color-light);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.info-form input::placeholder,
.info-form textarea::placeholder {
    color: rgba(26, 26, 26, 0.4);
}

.info-form input:focus,
.info-form select:focus,
.info-form textarea:focus {
    border-color: var(--color-granate);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(60, 26, 28, 0.08);
}

.info-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233c1a1c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.info-form textarea {
    resize: vertical;
    min-height: 120px;
}

.info-form .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.info-form-btn {
    background: var(--color-granate);
    color: var(--color-white);
    border: none;
    padding: 16px 45px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
}

.info-form-btn:hover {
    background: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(60, 26, 28, 0.3);
}

@media (max-width: 768px) {
    .info-form-section {
        padding: 80px 25px;
    }

    .info-form {
        padding: 30px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-form-header h2 {
        font-size: 2rem;
    }
}

/* ===========================
   FOOTER
=========================== */
.footer {
    padding: 60px 80px;
    background: var(--color-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--color-white);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox .lightbox-media {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox img,
.lightbox video {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 1px;
    background: var(--color-white);
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 280px;
    }
}

@media (max-width: 992px) {
    .header { padding: 25px 40px; }
    .hero-content { padding: 0 40px 80px; }
    .intro-section { grid-template-columns: 1fr; gap: 80px; padding: 120px 40px; }
    .intro-image { height: 500px; }
    .architecture-grid { grid-template-columns: 1fr; gap: 60px; }
    .details-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-section { grid-template-columns: 1fr; gap: 60px; padding: 120px 40px; }
    .quote-section { padding: 120px 40px; }
    .quote-text { font-size: 2.5rem; }
    .gallery-header { padding: 50px 40px 30px; }
    .gallery-title { font-size: 2rem; }
    .info-form-section { padding: 60px 20px; }
}

@media (max-width: 768px) {
    .cursor { display: none; }
    .header { padding: 20px 25px; }
    .logo { font-size: 1.1rem; letter-spacing: 5px; }
    .hero-content { padding: 0 25px 60px; }
    .hero-title { font-size: 2.5rem; }
    .hero-label { font-size: 0.65rem; }
    .scroll-indicator { display: flex; top: 20px; right: 25px; bottom: auto; z-index: 12; }
    
    .intro-section { padding: 80px 25px; }
    .intro-title { font-size: 2.5rem; }
    /* Mostrar intro-stats en una sola línea en pantallas pequeñas; permitir scroll horizontal si hace falta */
    .intro-stats {
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .intro-stats .stat-item { min-width: 110px; flex: 0 0 auto; }
    .intro-stats .stat-number { font-size: 2.2rem; }
    .intro-stats .stat-label { font-size: 0.7rem; }
    .stat-number { font-size: 3rem; }
    
    .gallery-grid { 
        grid-template-columns: repeat(2, 1fr); 
        grid-auto-rows: 220px;
    }
    .gallery-item-overlay { padding: 20px; }
    
    .architecture-section { padding: 80px 25px; }
    .arch-title { font-size: 2rem; }
    .arch-images { grid-template-columns: 1fr; }
    .arch-images img:first-child { grid-column: span 1; height: 300px; }
    
    .video-title { font-size: 2.5rem; }
    
    .details-section { padding: 80px 25px; }
    .details-title { font-size: 2rem; margin-bottom: 10px; }
    
    .horizontal-gallery { padding: 80px 0; }
    .horizontal-gallery-header { padding: 0 25px; }
    .gallery-track { padding: 0 25px; }
    .track-item { width: 280px; height: 350px; }
    
    .quote-section { padding: 80px 25px; }
    .quote-text { font-size: 1.8rem; }
    
    .contact-section { padding: 80px 25px; }
    .contact-info h2 { font-size: 2.5rem; }

    /* Ajustes de imagen en móvil: evitar alturas excesivas */
    .contact-image img {
        min-height: 260px;
        height: auto;
        object-fit: cover;
    }
    
    .footer { 
        flex-direction: column; 
        gap: 30px; 
        padding: 40px 25px; 
        text-align: center;
    }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }

    .nav-menu a { font-size: 2.5rem; }
}

/* Móvil: mostrar 2 estadísticas en la primera fila y la tercera en la segunda */
@media (max-width: 480px) {
    .intro-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 8px;
    }
    .intro-stats .stat-item {
        flex: 0 0 48%;
        max-width: 48%;
        text-align: center;
    }
    .intro-stats .stat-item:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .intro-stats .stat-number { font-size: 2rem; }
    .intro-stats .stat-label { font-size: 0.75rem; }
}

/* Mobile: ajustar posición de la imagen hero para desplazarla a la derecha */
@media (max-width: 768px) {
    .hero-image {
        object-position: 60% center;
    }
}

@media (max-width: 480px) {
    .hero-image {
        object-position: 40% center;
    }
}

/* Preloader: centrar y escalar en móvil */
@media (max-width: 480px) {
    .preloader {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }
    .preloader-text {
        font-size: 1.6rem;
        letter-spacing: 6px;
        text-align: center;
        line-height: 1.2;
    }
    .preloader-line {
        width: 40%;
        margin-top: 16px;
    }
}
@media (max-width: 480px) {
    .scroll-indicator {
        top: 10%; /* aumentar separación superior en móvil */
        right: 18px; /* ligero ajuste de la derecha para equilibrio */
    }
}

/* ===========================
   SMOOTH REVEAL ANIMATIONS
=========================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================
   CONTACT / BUTTON STYLES
=========================== */
.contact-details .contact-value a { text-decoration: none; }
.contact-details .contact-value button {
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.contact-details .contact-value button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    background: rgba(255, 255, 255, 0.767);
}
.contact-details .contact-value button:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* CTA - Tienda Online (antes de la galería) */
.cta-shop {
    max-width: 1200px;
    margin: 28px auto;
    padding: 18px 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, rgba(60,26,28,0.14), rgba(20,20,20,0.04));
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
}
.cta-shop-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
}
.cta-copy { display:flex; flex-direction: column; gap:6px; flex: 1; min-width: 0; }
.cta-text {
    color: var(--color-white);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    opacity: 0.98;
    line-height: 1.2;
}
.cta-subtext { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin: 0; }
.cta-actions { display:flex; align-items:center; gap:12px; flex: 0 0 auto; }
.cta-btn-link { text-decoration: none; display: inline-flex; }
.cta-btn {
    background: linear-gradient(180deg, #5b2326 0%, #401517 100%);
    color: var(--color-white);
    border: none;
    padding: 14px 26px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(60,26,28,0.25);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(60,26,28,0.32); background: linear-gradient(180deg, #7a2e32 0%, #5a1f21 100%); }
.cta-btn:active { transform: translateY(-1px); }
.cta-btn:focus { outline: 3px solid rgba(255,255,255,0.08); outline-offset: 3px; }

@media (max-width: 768px) {
    .cta-shop { padding: 14px 18px; margin: 14px 18px; }
    .cta-shop-inner { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
    .cta-copy { order: 1; }
    .cta-actions { order: 2; }
    .cta-text { font-size: 1rem; }
    .cta-subtext { font-size: 0.9rem; }
    .cta-btn { padding: 10px 18px; font-size: 0.95rem; }
}

/* CTA Section wrapper: fondo negro y centrado */
#cta-tienda {
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 28px 0;
}

/* Asegurar que el contenido del CTA se centre correctamente en móvil */
@media (max-width: 768px) {
    #cta-tienda { padding: 18px 0; }
}

/* Mobile specific adjustments for CTA (small screens) */
@media (max-width: 480px) {
    /* tighten the section and ensure visual balance */
    #cta-tienda {
        min-height: 160px;
        padding: 12px 8px;
    }

    /* make the card edge-to-edge with subtle inset */
    .cta-shop {
        margin: 8px 12px;
        padding: 12px 14px;
        border-radius: 10px;
        background: rgba(0,0,0,0.02);
        box-shadow: 0 6px 20px rgba(0,0,0,0.28);
        width: calc(100% - 24px);
    }

    .cta-shop-inner {
        flex-direction: column-reverse;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .cta-copy { width: 100%; }
    .cta-text { font-size: 0.98rem; }
    .cta-subtext { font-size: 0.85rem; }

    /* actions full width for easy tapping */
    .cta-actions { width: 100%; display: flex; justify-content: center; }
    .cta-btn-link { width: 100%; display: block; }
    .cta-btn { width: 100%; padding: 12px 14px; font-size: 0.98rem; border-radius: 12px; }

    /* reduce heavy backdrop on very small screens */
    .cta-shop { backdrop-filter: none; }
}

@media (max-width: 480px) {
    /* imagen de contacto más compacta en móviles muy pequeños */
    .contact-image img {
        min-height: 180px;
        height: auto;
    }
}

/* Small screens: reduce padding */
@media (max-width: 480px) {
    .contact-details .contact-value button { padding: 8px 14px; }
}

/* ===========================
   LANGUAGE SWITCH BUTTON
   =========================== */
.lang-switch {
    display: flex;
    align-items: end;
    right: 30px;
    gap: 8px;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    color: var(--color-white);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
}

.lang-switch a:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.lang-switch a:focus {
    outline: 3px solid rgba(255,255,255,0.12);
    outline-offset: 4px;
}

.lang-switch a.active {
    background: var(--color-terracotta);
    color: var(--color-dark);
    border-color: transparent;
}

@media (max-width: 768px) {
    .lang-switch a {
        height: 36px;
        min-width: 36px;
        font-size: 0.8rem;
        padding: 0 8px;
    }
}
