/* =========================================================================
   Aparcamiento Isabel La Católica - Premium Stylesheet
   Theme: Corporate Blue (Modern, Clean, Dynamic)
   ========================================================================= */

/* --- Variables --- */
:root {
    /* Colors */
    --clr-primary: #0056D2; /* Corporate Blue */
    --clr-primary-light: #2D7BE5;
    --clr-primary-dark: #003B99;
    --clr-accent: #00D2FF; /* Vibrant cyan for accents */
    
    --clr-bg-dark: #2A3B66; /* Final balanced corporate blue background */
    --clr-bg-surface: #0F172A; /* Unified Midnight Navy (Matches Footer) */
    --clr-bg-surface-light: #1E293B; 
    
    --clr-text-main: #F8FAFC; 
    --clr-text-muted: #CBD5E1; 
    --clr-text-light: #F8FAFC; 
    
    --clr-border: rgba(255, 255, 255, 0.1); 
    --clr-glass-bg: rgba(15, 23, 42, 0.9); 
    --clr-glass-border: rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Animation & Layout */
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* --- Light Mode Variables --- */
[data-theme="light"] {
    --clr-primary: #0056D2;
    --clr-primary-light: #2D7BE5;
    --clr-primary-dark: #003B99;
    --clr-accent: #007BB5;
    
    --clr-bg-dark: #F1F5F9;
    --clr-bg-surface: #FFFFFF;
    --clr-bg-surface-light: #E2E8F0;
    
    --clr-text-main: #1E293B;
    --clr-text-muted: #475569;
    --clr-text-light: #1E293B;
    
    --clr-border: rgba(0, 0, 0, 0.1); 
    --clr-glass-bg: rgba(255, 255, 255, 0.9); 
    --clr-glass-border: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body {
    background: 
        radial-gradient(at 0% 0%, rgba(45, 123, 229, 0.05) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(0, 210, 255, 0.05) 0px, transparent 60%),
        radial-gradient(at 50% 50%, rgba(203, 213, 225, 0.3) 0px, transparent 80%),
        #F8FAFC;
    color: var(--clr-text-main);
}

[data-theme="light"] h2, 
[data-theme="light"] .anuncio-titulo {
    text-shadow: none;
    color: var(--clr-text-main);
}


#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main, .footer {
    position: relative;
    z-index: 1;
}

[data-theme="light"] .feature-card p, 
[data-theme="light"] .pricing-card p, 
[data-theme="light"] .pricing-card .price span, 
[data-theme="light"] .pricing-card .pricing-card-header p,
[data-theme="light"] .anuncio-contenido {
    color: var(--clr-text-muted);
}

[data-theme="light"] .features-section,
[data-theme="light"] .pricing-section,
[data-theme="light"] .legal-page,
[data-theme="light"] main {
    background: transparent !important;
}

[data-theme="light"] .feature-list li:hover {
    color: var(--clr-text-main);
}

[data-theme="light"] .hero p,
[data-theme="light"] .hero .stat-text {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .navbar.scrolled .logo-title,
[data-theme="light"] .navbar.scrolled .mobile-menu-btn {
    color: var(--clr-primary-dark);
}

[data-theme="light"] .close-menu-btn {
    color: var(--clr-text-main);
}

[data-theme="light"] .navbar.scrolled .nav-link {
    color: var(--clr-text-muted);
}

[data-theme="light"] .navbar.scrolled .nav-link:hover {
    color: var(--clr-primary);
}

[data-theme="light"] .price {
    color: var(--clr-primary);
}

[data-theme="light"] .other-abonos strong {
    color: var(--clr-text-main);
}

/* --- Theme Toggle Button Styling --- */
.theme-toggle {
    background: transparent;
    border: none;
    color: #CBD5E1;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
}
.theme-toggle:hover {
    color: var(--clr-accent);
    background: rgba(255,255,255,0.1);
}
[data-theme="light"] .navbar.scrolled .theme-toggle {
    color: var(--clr-text-muted);
}
[data-theme="light"] .navbar.scrolled .theme-toggle:hover {
    color: var(--clr-primary);
    background: rgba(0,0,0,0.05);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: 
        radial-gradient(at 0% 0%, rgba(45, 123, 229, 0.25) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(0, 210, 255, 0.2) 0px, transparent 60%),
        radial-gradient(at 50% 50%, rgba(203, 213, 225, 0.15) 0px, transparent 80%),
        #24345B; /* Final illuminated corporate blue base */
    background-attachment: fixed;
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Typography styles */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Buttons --- */
.btn-primary, .btn-primary-outline, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-short);
    outline: none;
    border: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.6);
}

.btn-primary i, .btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i, .btn-secondary:hover i {
    transform: translateX(5px);
}

.btn-primary-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--clr-border);
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    border-color: var(--clr-primary);
    background: rgba(0, 86, 210, 0.1);
}

.btn-secondary {
    background-color: var(--clr-bg-surface-light);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 60px; /* Adjust height based on logo proportion */
    width: auto;
    object-fit: contain;
    transition: var(--transition-short);
    image-rendering: -webkit-optimize-contrast;
}

.navbar.scrolled .logo-img {
    height: 50px; /* Smaller when scrolled */
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 0.75rem;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--clr-primary-light);
    font-weight: 600;
    letter-spacing: 2px;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #CBD5E1;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #FFFFFF;
}

[data-theme="light"] .navbar.scrolled .btn-primary-outline {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}
[data-theme="light"] .navbar.scrolled .btn-primary-outline:hover {
    color: white;
    background: var(--clr-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--clr-glass-border);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.btn-theme-mobile {
    margin-top: 1rem; 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 0.5rem; 
    background: var(--clr-primary); 
    padding: 0.75rem 1.5rem; 
    border-radius: 8px; 
    border: none;
    font-size: 1rem; 
    font-weight: 600;
}

[data-theme="light"] .btn-theme-mobile {
    color: white;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--clr-bg-dark); /* Fallback */
    padding-top: 140px;
    overflow: hidden;
}

[data-theme="light"] .hero .badge {
    color: #00D2FF;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
    transform: scale(1.05);
    filter: saturate(1.4) contrast(1.1); /* Give photos more dynamic color and pop as requested */
    image-rendering: -webkit-optimize-contrast;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Darker gradient to ensure white text is visible against bright photos */
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.45) 0%, rgba(8, 15, 30, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 5%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 86, 210, 0.15);
    border: 1px solid rgba(0, 86, 210, 0.3);
    border-radius: 50px;
    color: var(--clr-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #b3c2e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid var(--clr-border);
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* --- Features Section --- */
.features-section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--clr-bg-surface);
    color: var(--clr-text-light); /* Explicit light text */
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 86, 210, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 86, 210, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 86, 210, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--clr-primary-light);
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--clr-text-muted); /* This is now Slate-600, might be too dark for dark BG */
    font-size: 0.95rem;
}
/* Adjust muted text inside dark cards */
.feature-card p, .pricing-card p, .pricing-card .price span, .pricing-card .pricing-card-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Tablón de Anuncios --- */
.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.anuncio-card {
    background: var(--clr-glass-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-short);
    border-left: 4px solid var(--clr-accent);
}

.anuncio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
}

.anuncio-fecha {
    font-size: 0.85rem;
    color: var(--clr-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anuncio-titulo {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
}

.anuncio-contenido {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Dynamic Scrolling Marquee Separator --- */
.scrolling-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 86, 210, 0.05);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 1.5rem 0;
    position: relative;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.marquee-content {
    display: inline-block;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-content span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-primary-light);
    margin: 0 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 2px;
}

[data-theme="light"] .marquee-content span {
    color: var(--clr-primary-dark);
}

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

/* --- Pricing Section --- */
.pricing-section {
    padding: 8rem 0;
    border-top: 1px solid var(--clr-border);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(0, 86, 210, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    background: var(--clr-bg-surface);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-inline: auto;
    border: 1px solid var(--clr-border);
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 40px;
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
}

.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.pricing-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-card {
    background: var(--clr-bg-surface);
    color: var(--clr-text-light); /* Explicit light text */
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.main-card {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--clr-primary);
    box-shadow: 0 0 30px rgba(0, 86, 210, 0.15);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: white;
    padding: 0.4rem 1.5rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card-header {
    padding: 2.5rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.pricing-card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card-header p {
    color: var(--clr-text-muted);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-primary-light);
    margin-top: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.pricing-card-body {
    padding: 2rem 2.5rem;
    flex-grow: 1;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid dashed var(--clr-border);
}

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

.price-list li.highlight {
    color: var(--clr-accent);
    font-size: 1.2rem;
    font-weight: 600;
}

.iva-note {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-top: 2rem;
    text-align: center;
}

.abonos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list i {
    color: var(--clr-primary-light);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.feature-list li:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--clr-accent);
}

.feature-list li {
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: default;
}

.feature-list li:hover {
    color: white;
    transform: translateX(5px);
}

.other-abonos {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
}

.other-abonos strong {
    color: white;
    font-weight: 700;
}

/* --- Unified Contact Section (Map + Form) --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 800px;
    position: relative;
    background-image: url('assets/bg1_hd.jpg'); /* Use a nice parking photo from the user's set */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.split-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.75); /* Dark slate overlay */
    z-index: 1;
}

.location-pane {
    padding: 5rem 5%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
}

.location-info {
    max-width: 500px;
    margin-left: auto;
    margin-bottom: 3rem;
}

.location-info h2 {
    margin-bottom: 1rem;
}

.location-info p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list i {
    font-size: 1.5rem;
    color: var(--clr-primary-light);
    background: rgba(0, 86, 210, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.map-container {
    flex-grow: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    min-height: 400px;
}

.form-pane {
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-form-container {
    position: relative;
    z-index: 10;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-form-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.glass-form-container p {
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-short);
    resize: vertical;
    box-sizing: border-box;
    /* Consistencia en la altura para que date y text midan exactamente lo mismo */
    min-height: 54px;
}

/* Modo oscuro nativo para controles como el calendario y text fields de tipo date */
input[type="date"] {
    color-scheme: dark;
    /* Centrado vertical idéntico a los inputs de texto */
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    align-items: center;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-primary-light);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.2);
}

/* Hacer visible el icono del calendario nativo sobre fondo oscuro sin usar filter que da problemas en Safari */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    background: transparent;
    padding-left: 5px;
}

option {
    background: var(--clr-bg-surface);
    color: var(--clr-text-main);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-group input {
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* --- Footer --- */
.footer {
    background: var(--clr-bg-surface);
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
}

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

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-img-footer {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    background: white; /* Ensure consistency */
}

.footer-brand .logo-text {
    text-align: left;
}

[data-theme="light"] .footer-brand .logo-title {
    color: var(--clr-primary-dark);
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-copyright {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: #5d6578;
    font-size: 0.85rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .location-pane {
        padding: 5rem 5%;
    }
    .location-info {
        margin: 0 auto 3rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin: 0 auto 2rem;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary, .btn-primary-outline {
        width: 100%;
    }

    .features-section, .pricing-section {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-card-header, .pricing-card-body {
        padding: 1.5rem;
    }
    
    .form-pane, .location-pane {
        padding: 3rem 5%;
    }
    
    .glass-form-container {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Legal Pages Styles --- */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background: transparent !important;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

.legal-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--clr-primary-light);
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.legal-content p {
    color: var(--clr-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    color: var(--clr-text-muted);
    margin-bottom: 0.75rem;
    list-style: disc;
}

.legal-content a {
    color: var(--clr-primary-light);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--clr-accent);
}

@media (max-width: 768px) {
    .legal-card {
        padding: 2rem;
    }
}

