/* 
    Rancho Las Liebres - Estilos
    Paleta:
    Primary: #11340c
    Light: #faffff
    Neutral: #f5f5f0
    Text: #1a1a1a
    Accent: #c9a96e
*/

:root {
    --primary: #11340c;
    --primary-light: #2d5a1e;
    --light: #faffff;
    --neutral: #f5f5f0;
    --text-main: #1a1a1a;
    --text-muted: #4a5a44;
    --accent: #c9a96e;
    --white: #ffffff;
    --whatsapp: #25D366;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Outfit', sans-serif;

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(17,52,12,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; color: var(--text-muted); }

/* Tipografía */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.section-subtitle {
    display: inline-block;
    font-family: var(--font-accent);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-subtitle.text-center {
    display: block;
    text-align: center;
}

/* Botones y Badges */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--whatsapp);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #20bc5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-dark {
    border-color: var(--text-main);
    color: var(--text-main);
}
.btn-outline-dark:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-light { background: rgba(255,255,255,0.2); color: var(--white); backdrop-filter: blur(4px); }
.badge-gold { background: var(--accent); color: var(--white); margin-bottom: 1rem; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--white);
}

.navbar.scrolled .nav-left {
    color: var(--text-main);
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-socials a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.nav-socials a:hover {
    opacity: 1;
}

.nav-phone {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 105px;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 75px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--text-main);
}
.navbar.scrolled .nav-links a:not(.btn):hover {
    color: var(--primary);
}

.navbar .btn-outline {
    border-color: var(--white);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
}

.navbar.scrolled .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--primary);
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 52, 12, 0.45) 0%, rgba(17, 52, 12, 0.1) 40%, rgba(17, 52, 12, 0.35) 100%);
    z-index: 2;
}

.hero-container-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: -50px;
    width: 100%;
    z-index: 2;
}

.hero-content {
    text-align: left;
    color: var(--white);
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(17, 52, 12, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-badge .badge-icon {
    margin-right: 6px;
}

.hero-content h1 {
    font-family: var(--font-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Side Widgets */
.hero-side-widgets {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 50px;
    margin-right: 20px;
}

.hero-pagination {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
}

.hero-pagination span {
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    padding-right: 20px;
    text-align: right;
}

.hero-pagination span::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0px;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.hero-pagination span.active {
    color: var(--accent);
}

.hero-pagination span.active::after {
    width: 12px;
}

/* Watercolor Edges (replaces the ripped SVG paper) */
.watercolor-spill {
    position: absolute;
    background-color: var(--white);
    /* Aplicamos el SVG filter inyectado en index.html */
    filter: url(#watercolor-edge);
    z-index: 5;
}

.spill-bottom {
    bottom: -43px;
    left: -30px;
    right: -30px;
    height: 100px;
}

.spill-top {
    top: -43px;
    left: -30px;
    right: -30px;
    height: 100px;
}

/* Segunda Sección: About Us Minimalista */
.about-section {
    padding: 100px 0 0 0;
    background-color: var(--white);
}

.about-container-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 80px;
}

.about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    align-items: flex-start;
}

.about-text-col {
    width: 55%;
    text-align: left;
}

.about-video-col {
    width: 40%;
}

.about-title-new {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.1;
    font-family: var(--font-heading, sans-serif);
}

.about-subtitle-new {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
}

.about-paragraphs p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.about-video-new {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

.video-caption {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
}

@media (max-width: 992px) {
    .about-text-col, .about-video-col {
        width: 100%;
    }
    .about-video-col {
        margin-top: 50px;
    }
}

@media (max-width: 576px) {
    .about-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Panoramic Wrapper with Watercolor Effects */
.panoramic-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panoramic-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(17, 52, 12, 0.3);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panoramic-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px; /* Perfect desktop spacing */
}

.panoramic-text {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.25; /* Balanced spacing between lines */
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-family: var(--font-heading, sans-serif);
    margin: 0;
    text-align: center;
}

.panoramic-cta {
    background-color: #25d366;
    border: none;
    color: var(--white) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border-radius: 50px;
    text-decoration: none;
}

.panoramic-cta:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .panoramic-content {
        gap: 20px; /* Tighter balanced spacing for mobile screens */
    }
}

.panoramic-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}
/* Pricing Clean (Terrenos) */
.pricing-clean {
    padding: 100px 0;
    background-color: var(--white);
}

.pricing-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card-clean {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.pricing-card-clean:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-img-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pricing-card-clean:hover .card-img-clean {
    transform: scale(1.05);
}

.availability-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(17, 52, 12, 0.2);
    z-index: 2;
}

.card-content-clean {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.5rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.card-emotional {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 44px;
}

.card-details {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.detail-label {
    color: #888;
}

.detail-value {
    color: #222;
    font-weight: 600;
}

.card-price-block {
    margin-bottom: 24px;
}

.price-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
    margin: 0;
}

.btn-card-action {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    background-color: var(--white);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-card-action:hover {
    background-color: var(--primary);
    color: var(--white);
}

@media (max-width: 992px) {
    .pricing-grid-clean {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid-clean {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Financiamiento Banner */
.finance-banner {
    padding: 60px 0;
    background-color: var(--white);
}

.finance-box {
    background-color: #294738;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    gap: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.finance-text {
    flex: 1.2;
    text-align: left;
}

.finance-box .dot {
    background-color: #ffffff;
}

.finance-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: #ffffff;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 12px 0 16px 0;
    line-height: 1.1;
}

.finance-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 480px;
}

.finance-text .btn {
    background-color: #cca450 !important;
    border-color: #cca450 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(204, 164, 80, 0.3);
}

.finance-text .btn:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 52, 12, 0.4);
}

.finance-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 20px 25px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.stat-col:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-5px);
}

.stat-number {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.stat-col:last-child .stat-number {
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-top: 0;
    letter-spacing: 0;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 992px) {
    .finance-box {
        flex-direction: column;
        padding: 50px 30px;
        gap: 40px;
        text-align: center;
    }
    
    .finance-text {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .finance-text .about-eyebrow-icon {
        justify-content: center;
    }
    
    .finance-stats {
        width: 100%;
        gap: 15px;
    }
    
    .stat-col {
        align-items: center;
        text-align: center;
    }
}

/* Gallery Carousel & Lightbox */
.gallery-carousel-section {
    padding: 80px 0;
    background-color: var(--white);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 30px;
}

.carousel-title-col h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading);
}

.carousel-desc-col {
    max-width: 450px;
}

.carousel-desc-col p {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 5%; /* padding top/bottom for shadow */
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 280px;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide::before {
    content: '';
    display: block;
    padding-top: 130%; /* Portrait aspect ratio */
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
    color: var(--primary);
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.prev-btn {
    left: 2%;
}

.next-btn {
    right: 2%;
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

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

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #c9a84c;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
    z-index: 10000;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media (max-width: 992px) {
    .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .carousel-slide {
        flex: 0 0 calc(33.333% - 13px);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { right: 10px; top: 10px; }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: 240px;
    }
    .prev-btn, .next-btn {
        display: none;
    }
    .carousel-track {
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 calc(85% - 10px);
    }
}

/* Split Sections */
.split-sections {
    padding: 100px 0;
    background-color: var(--white);
}

.split-container {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.split-container.reverse {
    grid-template-columns: 0.88fr 1.12fr;
}

.split-container:last-child {
    margin-bottom: 0;
}

.split-text {
    padding: 10px;
}

.split-text h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--primary);
    font-family: var(--font-heading);
    margin: 10px 0 20px 0;
}

.split-text p {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 25px;
}

.split-image-wrapper {
    width: 100%;
    aspect-ratio: 1.2 / 1;
    height: auto;
}

.brush-mask {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Organic shape simulating a brush stroke / splash */
    border-radius: 61% 39% 74% 26% / 44% 53% 47% 56%;
    transition: border-radius 0.4s ease;
}

.brush-mask:hover {
    border-radius: 41% 59% 44% 56% / 64% 33% 67% 36%;
}

@media (max-width: 768px) {
    .split-container,
    .split-container.reverse {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .split-container.reverse .split-image-wrapper {
        grid-row: 1;
    }
    
    .split-container.reverse .split-text {
        grid-row: 2;
    }
    
    .split-image-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .align-left {
        justify-content: center;
    }
}

/* Contacto / Formulario */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--primary);
    z-index: -1;
}

.form-container {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-form { margin-top: 40px; }

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

.form-group { margin-bottom: 24px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background-color: #0a1f07;
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.footer-col h3 {
    color: var(--white);
    font-family: var(--font-accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p { color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float svg { width: 35px; height: 35px; }
.whatsapp-float:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 992px) {
    .value-container,
    .le-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .value-image img { height: 400px; border-radius: var(--radius-lg); }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--white);
        padding: 100px 30px 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a:not(.btn) {
        color: var(--primary) !important;
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .nav-links a.btn {
        margin-top: 10px;
        width: 100%;
        max-width: 250px;
        background-color: var(--primary);
        color: var(--white) !important;
        border-color: var(--primary);
    }

    .hero-cta { flex-direction: column; }
    .trust-container { justify-content: center; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-container { padding: 30px; }
    h1 { font-size: 2.5rem; }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 1000;
        cursor: pointer;
        position: relative;
    }
    
    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background-color: var(--white);
        transition: all 0.3s ease;
        border-radius: 3px;
        transform-origin: center;
    }
    
    .navbar.scrolled .mobile-menu-btn span { background-color: var(--primary); }
    
    .mobile-menu-btn.active span {
        background-color: var(--primary) !important;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
