/* =========================================
   VARIABLES & DESIGN SYSTEM (Classic Hotel)
   ========================================= */
:root {
    /* Colors - Monochrome & Elegant */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9F9F9;
    --color-text: #1A1A1A;     
    --color-text-light: #666666;
    --color-border: #E5E5E5;
    --color-accent: #233C5A;   /* Blue from logo for subtle emphasis */

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    --container-width: 1400px;
    --container-narrow: 800px;
    
    /* Transitions */
    --transition-smooth: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section {
    padding: var(--space-xl) 0;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.subtitle, .subtitle-dark {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.subtitle { color: #fff; }
.subtitle-dark { color: var(--color-text-light); }

.section-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--color-border);
    margin: var(--space-md) auto;
}

/* =========================================
   BUTTONS & LINKS
   ========================================= */
.btn-outline {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-text);
}

.link-line {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 5px;
}

.link-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.link-line:hover::after {
    transform: scaleX(0);
    transform-origin: right;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: absolute; /* Overlays the hero */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-svg {
    color: #ffffff;
    transition: color 0.3s ease;
    display: block;
}

.navbar.scrolled .logo-svg {
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-links a {
    color: var(--color-text);
}

.nav-links a:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 1px;
    background-color: #fff;
    transition: var(--transition-fast);
}

.navbar.scrolled .menu-toggle span {
    background-color: var(--color-text);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

/* Decorative Background Image */
.deco-botanical {
    position: absolute;
    opacity: 0.18; /* Increased visibility */
    z-index: 0;
    pointer-events: none;
    max-width: none;
    mix-blend-mode: multiply; /* Removes white background if image isn't transparent */
    clip-path: inset(4%); /* Crops out the outer border/frame from the image */
}
.deco-1 {
    top: 0%;
    right: -10%;
    width: 450px;
    transform: rotate(15deg);
}
.deco-2 {
    top: 30%;
    left: -10%;
    width: 400px;
    transform: rotate(-10deg);
}

.nav-dropdown-trigger::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(-135deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.8rem 0;
    min-width: 180px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

/* Invisible bridge between trigger and dropdown to prevent close on gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--color-text) !important;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--color-bg-alt);
    padding-left: 1.8rem;
    opacity: 1;
    color: var(--color-accent) !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Subtle dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero .title {
    font-size: clamp(4rem, 8vw, 7rem);
    color: #fff;
    margin-bottom: var(--space-lg);
    line-height: 1;
}

/* =========================================
   HISTORIA (Split Section)
   ========================================= */
.history-split {
    display: flex;
    min-height: 80vh;
    padding: 0; /* Remove top/bottom padding to go edge to edge */
}

.split-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-col {
    padding: var(--space-xl) var(--space-lg);
    background-color: var(--color-bg-alt);
}

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

.content-wrapper p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.img-col {
    position: relative;
    overflow: hidden;
}

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

/* =========================================
   ALOJAMIENTOS
   ========================================= */
.accommodations-list {
    padding-bottom: 0;
}

.intro-text {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.apt-row {
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
}

.apt-row.reverse {
    flex-direction: row-reverse;
    background-color: var(--color-bg-alt);
}

.apt-img {
    flex: 1;
    height: 70vh;
    overflow: hidden;
}

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

.apt-text {
    flex: 1;
    padding: var(--space-xl) 10%;
    position: relative;
}

.apt-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
    opacity: 0.5;
}

.apt-text h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.apt-meta {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.apt-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.apt-text p:not(.apt-quote) {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.testimonial-card {
    text-align: center;
    padding: 0 var(--space-sm);
}

.quote-mark {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-border);
    line-height: 0.5;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.testimonial-author {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-bg);
    padding: var(--space-xl) 0 var(--space-md);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-logo {
    color: var(--color-text);
    margin: 0 auto var(--space-md);
    display: block;
}

.footer-details p {
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.footer-nav {
    margin: var(--space-md) 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    transition: var(--transition-fast);
}

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

.copyright {
    color: #aaa;
    font-size: 0.85rem;
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

.fade-in.is-visible {
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* El hero usa GSAP para animar — los contenedores .fade-up
   deben ser visibles desde el inicio para que GSAP controle
   los hijos sin interferencias del sistema CSS */
.kondo-hero .fade-up,
.kondo-hero .fade-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal-image {
    position: relative;
}

.reveal-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-bg);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 1;
}

.reveal-image.is-visible::after {
    transform: scaleY(0);
}

/* =========================================
   SUBPAGES (History & Accommodations)
   ========================================= */
.subpage-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: var(--space-xl);
}

.subpage-hero .title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: #fff;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Grid for text and amenities */
.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.amenities-box {
    background-color: var(--color-bg-alt);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
}

.amenities-list {
    list-style: none;
    margin-top: var(--space-md);
}

.amenities-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.amenities-list li:last-child {
    border-bottom: none;
}

/* Photo Slider (Multi-Image) */
.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto var(--space-xl);
    overflow: hidden;
    background-color: var(--color-bg-alt);
    padding: 1rem 0; /* Espacio superior e inferior */
}

.slider-track {
    display: flex;
    gap: 2rem; /* Espaciado entre imágenes */
    padding: 0 1rem; /* Pequeño margen inicial */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 calc(50% - 1rem); /* Muestra exactamente 2 imágenes completas sin cortarse (calculando el gap de 2rem) */
    height: 60vh;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    border: none;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* =========================================
   APARTMENT DETAIL PAGE — Redesigned Layout
   ========================================= */

/* Main content section */
.apt-detail-section {
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative background pattern */
.apt-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--color-bg-alt);
    z-index: 0;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.apt-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* — Left column: Description — */
.apt-detail-description {
    padding-right: 2rem;
}

.apt-detail-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.apt-detail-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background: var(--color-accent);
}

.apt-detail-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-weight: 400;
    font-style: italic;
    position: relative;
}

/* Decorative large quotation mark */
.apt-detail-heading::before {
    content: '"';
    position: absolute;
    top: -2.5rem;
    left: -1rem;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--color-accent);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.apt-detail-text {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.apt-detail-text:last-of-type {
    margin-bottom: 0;
}

/* Decorative divider between description and highlights */
.apt-detail-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.apt-detail-divider::before,
.apt-detail-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--color-border), transparent);
}

.apt-detail-divider::after {
    background: linear-gradient(to left, var(--color-border), transparent);
}

.apt-detail-divider-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    opacity: 0.4;
    flex-shrink: 0;
}

/* Key highlights strip */
.apt-detail-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
}

.apt-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
}

.apt-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    flex-shrink: 0;
}
.apt-highlight-icon svg {
    width: 100%;
    height: 100%;
}

/* — Right column: Equipment card — */
.apt-detail-equipment {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

/* Accent top border */
.apt-detail-equipment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 0 0 2px 2px;
}

.apt-equipment-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
}

.apt-equipment-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text);
    font-weight: 400;
    margin: 0;
}

.apt-equipment-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.apt-equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.apt-equipment-list li {
    position: relative;
    padding: 0.9rem 0;
    padding-left: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.apt-equipment-list li:last-child {
    border-bottom: none;
}

.apt-equipment-list li:hover {
    background: var(--color-bg-alt);
    margin: 0 -1rem;
    padding-left: 2.5rem; /* 1.5rem + 1rem */
    padding-right: 1rem;
    border-radius: 6px;
}

.apt-equipment-list li:hover .apt-equip-bullet {
    left: 1rem;
}

.apt-equipment-list li strong {
    color: var(--color-text);
    font-weight: 600;
    margin-right: 0.2rem;
}

/* Decorative equipment bullet */
.apt-equip-bullet {
    position: absolute;
    left: 0;
    top: 1.3rem;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    transition: left 0.2s ease;
}

/* =========================================
   SINGLE IMAGE GALLERY SLIDER
   ========================================= */
/* =========================================
   3-CARD GALLERY SLIDER (Urbankeys Style)
   ========================================= */
.slider-container.slider-single-image,
.slider-container.slider-3-card,
.slider-container.slider-vertical-full {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-bg-alt);
    padding: 3rem 2.5rem;
    margin: 0 auto 4rem;
    max-width: 1350px;
    width: 95%;
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: relative;
}

/* Section header: Title & counter on left, arrows on right top */
.slider-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
    margin-bottom: 2rem;
    width: 100%;
}

.slider-header-title-group {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
}

.slider-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    font-weight: 400;
}

.slider-counter {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.slider-counter .current-slide {
    color: var(--color-text);
    font-weight: 600;
}

/* Navigation arrow buttons on top right */
.slider-nav-btns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-single-image .slider-btn,
.slider-container .slider-btn {
    position: static;
    transform: none;
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--color-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    cursor: pointer;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-single-image .slider-btn:hover,
.slider-container .slider-btn:hover {
    background: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.slider-single-image .prev-btn,
.slider-container .prev-btn {
    left: auto;
}

.slider-single-image .next-btn,
.slider-container .next-btn {
    right: auto;
}

.slider-single-image .slider-wrapper,
.slider-container .slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

.slider-single-image .slider-track,
.slider-container .slider-track {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-single-image .slide,
.slider-container .slide {
    flex: 0 0 calc((100% - 3rem) / 3);
    width: calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
    height: 420px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.slider-single-image .slide:hover,
.slider-container .slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .slider-container.slider-single-image {
        max-width: 100%;
        width: 100%;
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
    .slider-single-image .slider-track,
    .slider-container .slider-track {
        gap: 1.25rem;
    }
    .slider-single-image .slide,
    .slider-container .slide {
        flex: 0 0 calc((100% - 1.25rem) / 2);
        width: calc((100% - 1.25rem) / 2);
        max-width: calc((100% - 1.25rem) / 2);
        height: 380px;
    }
}

@media (max-width: 768px) {
    .slider-section-header {
        margin-bottom: 1.5rem;
    }
    .slider-section-title {
        font-size: 1.6rem;
    }
    .slider-single-image .slider-track,
    .slider-container .slider-track {
        gap: 0;
    }
    .slider-single-image .slide,
    .slider-container .slide {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        height: 320px;
        border-radius: 14px;
    }
    .slider-single-image .slider-btn,
    .slider-container .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }
}

@media (max-width: 992px) {
    .apt-detail-grid,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .apt-detail-description {
        padding-right: 0;
    }

    .apt-detail-equipment {
        margin-top: 1rem;
        padding: 2.2rem 1.8rem;
    }
    
    .slide {
        flex: 0 0 100%; /* En móvil muestra exactamente 1 imagen completa */
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .apt-detail-section {
        padding: 4rem 0;
    }
    .apt-detail-grid {
        gap: 2.5rem;
    }
    .apt-detail-heading {
        font-size: 2.2rem;
    }
    .apt-detail-heading::before {
        font-size: 4rem;
        top: -1.2rem;
    }
    .apt-detail-equipment {
        padding: 1.8rem 1.25rem;
        border-radius: 16px;
    }
    .apt-detail-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    .slider-vertical-full .slide {
        height: 50vh;
        min-height: 300px;
        aspect-ratio: 3/4;
    }
}

@media (max-width: 576px) {
    .apt-detail-highlights {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .history-split {
        flex-direction: column;
    }
    
    .img-col {
        height: 50vh;
        width: 100%;
    }
    
    .apt-row, .apt-row.reverse {
        flex-direction: column;
    }
    
    .apt-img {
        width: 100%;
        height: 50vh;
    }
    
    .apt-text {
        padding: var(--space-lg) var(--space-md);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: var(--color-text);
        display: block;
        padding: 0.5rem 0;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        border: none;
        padding: 0 0 0 1.5rem;
        margin-top: 0.5rem;
        min-width: auto;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown.active .nav-dropdown-trigger::after {
        transform: rotate(-135deg);
    }
    
    .nav-dropdown-menu::before, .nav-dropdown::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero .title {
        font-size: 3.5rem;
    }
}

/* =========================================
   NUEVO HOME (KONDO STYLE)
   ========================================= */

/* Nav Actions */
.nav-action {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-action .kondo-btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
}

/* Typography Overrides for Kondo */
.kondo-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}
.kondo-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg);
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 5px;
}
.kondo-subtitle-dark {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: inline-block;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
    font-weight: 500;
}
.kondo-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-text);
}
.kondo-heading-white {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
}
.kondo-text-light {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Buttons */
.kondo-btn-primary {
    background-color: var(--color-text);
    color: #fff;
    padding: 1rem 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.kondo-btn-primary:hover {
    background-color: var(--color-accent);
    color: #fff;
}
.kondo-btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 1rem 2.5rem;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.kondo-btn-secondary:hover {
    background-color: var(--color-text);
    color: #fff;
}
.kondo-btn-text {
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}
.kondo-btn-text:hover {
    text-decoration: underline;
}
.kondo-btn-video {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}
.kondo-btn-video:hover .play-icon {
    background-color: #fff;
    color: var(--color-text);
}

/* Hero Section */
.kondo-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    z-index: 0; /* Crea contexto de apilamiento propio */
}
.kondo-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform-origin: center center;
    will-change: transform;
}
.kondo-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}
.kondo-hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    width: 100%;
    position: relative;
    z-index: 3;
}
.kondo-hero-content {
    max-width: 600px;
}
.kondo-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.kondo-hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.kondo-hero-cards {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.kondo-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem;
    color: #fff;
    min-width: 200px;
    border-radius: 4px;
}
.kondo-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}
.kondo-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Origin Section (Sección Historia - Rediseño) */
.origin-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg);
    overflow: visible;
}
.origin-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.origin-images {
    position: relative;
}
.origin-img-stack {
    position: relative;
    padding-bottom: 3rem;
    padding-right: 2rem;
}
.origin-img-primary {
    width: 82%;
    height: 560px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.origin-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 8px solid var(--color-bg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.origin-year {
    position: absolute;
    top: -1.5rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: 400;
    color: var(--color-accent);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.origin-text {
    /* No hidden states — always visible */
}
.origin-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 5px;
    margin-bottom: 1.5rem;
}
.origin-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.origin-description {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}
.origin-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}
.origin-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 500;
}
.origin-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Origin responsive */
@media (max-width: 992px) {
    .origin-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .origin-img-primary {
        width: 100%;
        height: 400px;
    }
    .origin-img-secondary {
        width: 45%;
        max-height: 240px;
    }
}

/* Accommodations Grid */
.kondo-accommodations {
    background-color: var(--color-bg-alt);
    padding: var(--space-xl) 0;
}
.kondo-section-header {
    margin-bottom: var(--space-xl);
}
.kondo-apt-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    position: relative;
    counter-reset: apt-counter;
}
/* Decorative spine line */
.kondo-apt-list::before {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-text-light) 10%, var(--color-text-light) 90%, transparent);
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.3;
}
.kondo-apt-card {
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    counter-increment: apt-counter;
    position: relative;
    z-index: 1;
}
/* Decorative dot intersecting the spine */
.kondo-apt-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.kondo-apt-card:nth-child(even) {
    direction: rtl;
}
.kondo-apt-card:nth-child(even) > * {
    direction: ltr;
}
.kondo-apt-img {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.kondo-apt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform-origin: center center;
}
.kondo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    color: var(--color-text);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.kondo-apt-body {
    padding: 6rem 0 2rem;
    position: relative;
}
.kondo-apt-body::before {
    content: "0" counter(apt-counter);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 8rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    opacity: 0.08;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.kondo-apt-card:nth-child(even) .kondo-apt-body::before {
    left: auto;
    right: 0;
}
.kondo-apt-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}
.kondo-apt-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    flex-shrink: 0;
}
.kondo-apt-meta {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 500;
}
.kondo-apt-desc {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Testimonials */
.kondo-testimonials {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg);
}

/* Booking.com Rating Badge Banner */
.booking-rating-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg-alt, #faf7f2);
    border: 1px solid rgba(184, 115, 51, 0.18);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.booking-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.booking-badge-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.booking-score {
    background: #003580;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 8px 8px 8px 0;
    letter-spacing: -0.5px;
    box-shadow: 0 2px 8px rgba(0, 53, 128, 0.25);
}
.booking-badge-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.booking-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text, #2c2825);
    line-height: 1.1;
}
.booking-source {
    font-size: 0.85rem;
    color: var(--color-text-light, #706861);
    margin-top: 0.2rem;
}
.booking-source strong {
    color: #003580;
    font-weight: 600;
}
.booking-badge-sub {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--color-text-light, #706861);
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
.booking-dot {
    color: #b87333;
    font-size: 0.7rem;
}

.kondo-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.kondo-test-card {
    background: var(--color-bg-alt);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kondo-test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}
.kondo-test-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.kondo-stars {
    color: #eab308;
    letter-spacing: 3px;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.kondo-test-score {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #003580;
    background: rgba(0, 53, 128, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.kondo-test-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    text-wrap: pretty;
    text-wrap: balance;
}
.kondo-test-author strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
}
.kondo-test-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #2b7a4b;
    margin-top: 0.2rem;
    font-weight: 500;
}
.check-icon {
    flex-shrink: 0;
}

/* Banner */
.kondo-banner-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: var(--space-xl) 2rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.kondo-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}
.kondo-banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #fff;
}
.kondo-banner-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.kondo-footer {
    padding-top: var(--space-xl);
    padding-bottom: 2rem;
}
.kondo-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: left;
}
.kondo-footer-brand .footer-logo {
    margin: 0 0 1rem 0;
}
.kondo-footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}
.kondo-footer h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.kondo-footer-links a {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}
.kondo-footer-links a:hover {
    color: var(--color-accent);
}
.kondo-footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.kondo-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .kondo-about-grid, .kondo-footer-grid, .kondo-apt-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .kondo-apt-card:nth-child(even) {
        direction: ltr;
    }
    .kondo-apt-img {
        height: 300px;
    }
    .kondo-apt-list::before,
    .kondo-apt-card::after {
        display: none;
    }
    .kondo-apt-body::before {
        font-size: 5rem;
        top: -1rem;
    }
    .kondo-about-images .img-main {
        width: 100%;
        height: 400px;
    }
    .kondo-about-images .img-float {
        position: static;
        width: 100%;
        margin-top: 1rem;
        box-shadow: none;
        border: none;
    }
}
@media (max-width: 768px) {
    .kondo-hero-overlay {
        background: rgba(0,0,0,0.6);
    }
    .kondo-hero-cards {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-action .kondo-btn-primary {
        display: none;
    }
}

/* =========================================
   DYNAMIC ELEMENTS & FLUIDITY
   ========================================= */

/* Lenis Smooth Scroll CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.kondo-apt-icon {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
    flex-shrink: 0;
}
.kondo-apt-meta {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 500;
}
.kondo-apt-desc {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Testimonials */
.kondo-testimonials {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg);
}
.kondo-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.kondo-test-card {
    background: var(--color-bg-alt);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
}
.kondo-stars {
    color: #eab308;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.kondo-test-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
.kondo-test-author strong {
    display: block;
    color: var(--color-text);
    font-size: 1rem;
}
.kondo-test-author span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Banner */
.kondo-banner-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: var(--space-xl) 2rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.kondo-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}
.kondo-banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #fff;
}
.kondo-banner-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.kondo-footer {
    padding-top: var(--space-xl);
    padding-bottom: 2rem;
}
.kondo-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: left;
}
.kondo-footer-brand .footer-logo {
    margin: 0 0 1rem 0;
}
.kondo-footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}
.kondo-footer h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.kondo-footer-links a {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}
.kondo-footer-links a:hover {
    color: var(--color-accent);
}
.kondo-footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.kondo-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .kondo-about-grid, .kondo-footer-grid, .kondo-apt-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .kondo-apt-card:nth-child(even) {
        direction: ltr;
    }
    .kondo-apt-img {
        height: 300px;
    }
    .kondo-apt-list::before,
    .kondo-apt-card::after {
        display: none;
    }
    .kondo-apt-body::before {
        font-size: 5rem;
        top: -1rem;
    }
    .kondo-about-images .img-main {
        width: 100%;
        height: 400px;
    }
    .kondo-about-images .img-float {
        position: static;
        width: 100%;
        margin-top: 1rem;
        box-shadow: none;
        border: none;
    }
}
@media (max-width: 768px) {
    .kondo-hero-overlay {
        background: rgba(0,0,0,0.6);
    }
    .kondo-hero-cards {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-action .kondo-btn-primary {
        display: none;
    }
}

/* =========================================
   DYNAMIC ELEMENTS & FLUIDITY
   ========================================= */

/* Lenis Smooth Scroll CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Floating Animations for Decorations */
@keyframes floatAnim {
    0% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-15px) rotate(17deg); }
    100% { transform: translateY(0) rotate(15deg); }
}

@keyframes floatAnimAlt {
    0% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-12px) rotate(-12deg); }
    100% { transform: translateY(0) rotate(-10deg); }
}

.deco-1 {
    animation: floatAnim 8s ease-in-out infinite;
}

.deco-2 {
    animation: floatAnimAlt 10s ease-in-out infinite;
}

/* Enhanced Button Hover */
.kondo-btn-primary, .kondo-btn-secondary {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}
.kondo-btn-primary:hover, .kondo-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* =========================================
   LIGHTBOX (CAJA DE LUZ)
   ========================================= */
.slider-container .slide {
    cursor: zoom-in;
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 2rem;
    box-sizing: border-box;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-align: center;
    letter-spacing: 0.03em;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 100000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 100000;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-counter {
    position: absolute;
    top: 1.8rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 0.75rem;
    }
    .lightbox-next {
        right: 0.75rem;
    }
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .lightbox-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .lightbox-counter {
        top: 1.2rem;
        left: 1.2rem;
    }
}

/* =========================================
   COOKIE CONSENT POPUP
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    max-width: 420px;
    width: calc(100% - 4rem);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.75rem;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.96);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.cookie-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.cookie-banner-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    letter-spacing: 0.02em;
}

.cookie-banner-text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.cookie-banner-text a {
    color: var(--color-text);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cookie-btn-accept {
    flex: 1;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cookie-btn-accept:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cookie-btn-reject {
    flex: 1;
    background: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.cookie-btn-reject:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-color: var(--color-text-light);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        padding: 1.35rem;
        border-radius: 16px;
    }
}
