/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores principales */
    --primary: #009de2;
    --secondary: #ffc000;
    --accent: #ff0084;
    --dark: #1a1a2e;
    --light: #f8fafc;
    
    /* Colores de texto */
    --text: #2d3748;
    --text-light: #718096;
    
    /* Efectos de vidrio */
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Sombras */
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    
    /* Gradientes */
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   BARRA DE NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 157, 226, 0.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--primary);
    color: white;
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   HERO BANNER CON CARRUSEL
   ============================================ */
.hero-banner {
    height: 50vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 2rem;
}

.banner-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Controles del banner */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Indicadores del banner */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */
.contact-section {
    padding: 6rem 0;
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Información de contacto */
.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.info-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.info-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Formulario de contacto */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 157, 226, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Botón de envío */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 157, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 157, 226, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   SECCIÓN DE MAPA
   ============================================ */
.map-section {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Botones del mapa */
.map-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.waze-btn {
    background: #33ccff;
    color: white;
}

.waze-btn:hover {
    background: #29b8e8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(51, 204, 255, 0.4);
}

.maps-btn {
    background: #4285f4;
    color: white;
}

.maps-btn:hover {
    background: #357ae8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.map-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section p,
.footer-section a {
    color: white;
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #022155;
}

.footer-section ul {
    list-style: none;
}

/* Logo del footer */
.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Mostrar menú móvil */
    .hamburger {
        display: flex;
    }
    
    /* Ocultar menú desktop */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        text-align: center;
    }
    
    .nav-link {
        color: white;
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    /* Dropdown móvil */
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        display: none;
        max-height: 300px;
        overflow-y: auto;
        text-align: center;
        width: 100%;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        font-size: 1.2rem;
        color: #a0aec0;
        text-align: center;
    }
    
    /* Hero responsive */
    .hero-banner {
        height: 20vh;
        margin-top: 80px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .banner-prev {
        left: 10px;
        display: none;
    }
    
    .banner-next {
        right: 10px;
        display: none;
    }
    
    /* Contact grid responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 300px;
    }

    /* Footer responsive */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }    
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info {
        align-items: center;
        text-align: center;
    }
    
    .info-item {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 360px;
        justify-content: center;
        align-items: center;
    }
}