/* ==========================================
   Valle Gran Rey Taxi - CSS Styles
   ========================================== */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem;
    z-index: 10000;
    border-top: 3px solid #f39c12;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h4 {
    margin-bottom: 0.5rem;
    color: #f39c12;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-link {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.btn-link:hover {
    background: #3498db;
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background: white;
    color: #2c3e50;
}

/* ==========================================
   COOKIE SETTINGS MODAL
   ========================================== */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-settings-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-settings-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #27ae60;
}

input:disabled + .slider {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.cookie-settings-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #f39c12;
}

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

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    text-align: center;
}

.btn-primary {
    background: #f39c12;
    color: white;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.cta-button {
    background: #f39c12;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.cta-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23238b45" width="1200" height="600"/><path fill="%234a8" d="M0 400c200-100 400-50 600-100s400-50 600 0v200H0z"/><circle fill="%23f39c12" cx="900" cy="150" r="80"/><polygon fill="%23e74c3c" points="200,300 300,200 400,250 350,350"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

/* ==========================================
   SECTIONS
   ========================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: 5rem 0;
    background: white;
}

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

.service-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.service-icon {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.sustainability-badge {
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 5rem 0;
    background: #ecf0f1;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about-features li i {
    color: #27ae60;
    font-size: 1.2rem;
}

.about-image {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden; /* Importante para imágenes */
    position: relative; /* Para posicionamiento de imagen */
}

/* Estilos para imagen real en about-image */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene proporción y cubre el contenedor */
    object-position: center; /* Centra la imagen */
    border-radius: 15px;
}

.about-image.with-image {
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.8), rgba(44, 62, 80, 0.8));
}

.about-image.with-image img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.about-image.with-image i {
    display: none;
}

/* ==========================================
   TOURS SECTION
   ========================================== */
.tours {
    padding: 5rem 0;
    background: white;
}

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

.tour-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.tour-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
    text-align: center;
}

.tour-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.tour-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tour-highlights {
    list-style: none;
}

.tour-highlights li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.tour-highlights li i {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* ==========================================
   BOOKING SECTION
   ========================================== */
.booking {
    padding: 5rem 0;
    background: #2c3e50;
    color: white;
}

.booking-content {
    max-width: 800px;
    margin: 0 auto;
}

.booking-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-intro h3 {
    color: #f39c12;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.booking-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bdc3c7;
}

.booking-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 3rem;
}

.quick-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.quick-contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.quick-contact-item h4 {
    color: #f39c12;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* ==========================================
   FORM STYLES
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.privacy-notice {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f39c12;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 5px;
}

.footer-legal a:hover {
    color: #f39c12;
}

/* ==========================================
   FLOATING ELEMENTS
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.scroll-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-to-top:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .cta-button {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

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

    .quick-contact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .service-card,
    .contact-item {
        padding: 1.5rem;
    }

    .booking-form {
        padding: 1.5rem;
    }
    .about-image {
        height: 200px;
    }
    
    .about-image img {
        border-radius: 10px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header,
    .whatsapp-float,
    .scroll-to-top,
    .cookie-banner {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: none;
        color: black;
    }
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */
@media (prefers-contrast: high) {
    .service-card,
    .contact-item,
    .tour-card {
        border: 2px solid #000;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   DARK MODE SUPPORT
   ========================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
    }
    
    /* Implementación opcional de modo oscuro */
}
