/*
Theme Name: Taxi Flash
Theme URI: https://example.com/taxi-flash
Author: Antigravity AI
Author URI: https://example.com
Description: Un tema premium y moderno para servicios de taxi, basado en Tailwind CSS. Completamente optimizado para conversión, responsivo y fácil de personalizar.
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taxi-flash
Tags: taxi, transportation, business, modern, yellow, navy
*/

:root {
    --primary-blue: #0F172A;
    --accent-yellow: #F1C40F;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --ad-red: #FF0000;
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Neutral Page Styles */
body { background-color: var(--bg-light); color: var(--text-dark); margin: 0; padding: 0; }
.section-padding { background-color: var(--bg-light); padding: 3rem 0; }
.bg-white { background-color: var(--white); }

.hero h1, .hero p { color: var(--white); text-shadow: 0 4px 15px rgba(0,0,0,0.8); margin-bottom: 2rem; }
.hero .container { text-align: center; max-width: 900px; margin: 0 auto; z-index: 10; position: relative; }
.hero { position: relative; overflow: hidden; background: #000; } /* Dark background for fallback */

/* Layout with Sidebar */
.main-wrapper {
    display: flex;
    gap: 1.5rem; /* Reduced gap from 3rem */
    padding: 0;
    margin: 0 auto;
    max-width: 1400px; /* Increased max-width from 1200px */
    background-color: var(--white); /* Ensure container background is consistent */
}
.content-area { flex: 1; min-width: 0; padding: 0; }
.sidebar-area { 
    width: 320px; /* Slightly wider to feel more useful */
    flex-shrink: 0; 
    background-color: #f9f9f9; /* Subtle contrast but not disconnected */
    border-left: 1px solid #eee;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Desktop/Responsive Layout */
@media (max-width: 992px) {
    .main-wrapper { flex-direction: column; align-items: center; padding: 0 1rem; }
    .sidebar-area { width: 100%; display: flex; flex-direction: column; align-items: center; }
}

/* Section Adjustments for Neutrality */
.feature-card, .fleet-card, .booking-form {
    background: var(--white);
    border: 1px solid #eee;
    box-shadow: none;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.icon-circle { display: none; } /* Remove colorful icons */

/* Ad Space Styles (Fixed Dimensions) */
.ad-space {
    background-color: #f8f9fa;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', Arial, sans-serif;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.ad-space:hover { background-color: #f1f5f9; border-color: #94a3b8; color: #64748b; }


.ad-sidebar {
    width: 300px;
    height: 250px;
}

.ad-footer-row {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Reduced from 1.5rem */
    margin: 2rem 0 1rem; /* Reduced from 4rem */
    flex-wrap: wrap;
    width: 100%;
}


.ad-footer {
    width: 300px;
    height: 150px;
}



/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; }

.container { 
    width: 90%; 
    max-width: var(--container-max); 
    margin: 0 auto; 
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* Typography */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }
p { margin-bottom: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    html { font-size: 15px; }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: var(--container-max);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: saturate(180%) blur(35px);
    -webkit-backdrop-filter: saturate(180%) blur(35px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.header:hover {
    background: rgba(255, 255, 255, 0.5);
    width: 98%;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

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

.logo img { height: 48px; width: auto; }

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
}

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

.btn-call {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.2);
}

.btn-call:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.3);
    background: var(--primary-blue);
    color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--white);
        flex-direction: column;
        padding-top: 3rem;
        transition: 0.4s ease;
        z-index: 999;
    }
    .nav-links.active { left: 0; }
    .btn-call { display: none; }
}

/* Hero Section Slider */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: sliderAnimation 15s infinite;
    filter: brightness(0.4);
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes sliderAnimation {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; z-index: 10; }
.hero p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2.5rem; }

.btn-primary {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 800;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Features Section (Como funciona) */
.section-padding { padding: 4rem 0; }
.bg-white { background: var(--white); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover { transform: translateY(-10px); background: var(--white); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 { margin-bottom: 1rem; color: var(--primary-blue); }

/* Flota Section */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.fleet-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.fleet-card:hover { transform: scale(1.02); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

.fleet-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.fleet-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.fleet-card:hover .fleet-img img { transform: scale(1.1); }

.fleet-info { padding: 2rem; }
.fleet-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-blue); }
.fleet-tag {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--accent-yellow);
    padding: 0.35rem 1rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.fleet-specs {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-light);
}

.spec-item { font-size: 0.875rem; color: var(--text-light); }
.spec-value { display: block; font-weight: 700; color: var(--primary-blue); font-size: 1.1rem; }

/* Booking Section */
.booking-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

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

@media (max-width: 992px) {
    .booking-container { grid-template-columns: 1fr; }
}

.booking-text h2 { text-align: left; color: var(--white); }
.booking-text p { color: var(--text-light); font-size: 1.1rem; }

.booking-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 2rem;
    color: var(--text-dark);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.form-group { margin-bottom: 1.5rem; position: relative; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-light); }
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
.form-input:focus { border-color: var(--accent-yellow); background: var(--white); }

.error-msg { 
    color: #ef4444; 
    font-size: 0.75rem; 
    margin-top: 0.25rem; 
    display: none; 
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 300px;
    background: #e2e8f0;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    color: var(--text-light);
    border: 2px dashed #cbd5e1;
    text-align: center;
    padding: 2rem;
}

/* Footer */
.footer {
    background: #020617;
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid div:first-child { grid-column: span 2; }
}

.footer h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--white); }
.footer p { color: #94a3b8; font-size: 0.9rem; }
.footer-links a { display: block; margin-bottom: 0.75rem; color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-yellow); padding-left: 5px; }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-icon:hover { background: var(--accent-yellow); color: var(--primary-blue); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #64748b;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
