/* Variables Globales */
:root {
    --primary-color: #004fae;
    --secondary-color: #ffffff;
    --background-blue: #ececec00;
    --header-footer-bg: #004fae;
    --text-color: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f8f800;
    padding-top: 80px;
    overflow-x: hidden;
}

/* Contenedor Principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Responsive */
.top-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.wrap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

/* Menú Hamburguesa para móviles */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

.main-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.menu-item {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.menu-item:hover,
.menu-item.active {
    color: blue;
}

/* Hero Section Responsive */
.hero {
    width: 100%;
    height: auto;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Imágenes Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.foto1 {
    display: block;
    max-height: 80vh; /* Ocupa hasta el 80% del alto de pantalla */
    width: auto;
    max-width: 90%; /* No ocupará más del 90% del ancho */
    margin: 2rem auto; /* Centrado horizontal con margen */
    box-shadow: 0 6px 20px rgba(0, 0, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain; /* Mantiene proporciones sin recortar */
    border-radius: 10px; /* Bordes redondeados */
}

/* Efecto hover para destacar más */
.foto1:hover {
    transform: scale(1.02); /* Ligero zoom al pasar el mouse */
    box-shadow: 0 8px 25px rgba(0, 0, 255, 0.4);
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
    .foto1 {
        max-height: 60vh;
        max-width: 95%;
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1200px) {
    .foto1 {
        max-height: 700px; /* Límite máximo de altura */
    }
}
/* Contenedor del formulario */
.contact-form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Encabezado del formulario */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Inputs y textarea */
.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 79, 174, 0.2);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* Radio buttons y checkboxes */
.radio-group, .checkbox-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.radio-text, .checkbox-text {
    color: var(--text-color);
}

/* Select dropdown */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004fae'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Botón de enviar */
.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #003d8c;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Sección de preguntas frecuentes */
.quick-faq {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 79, 174, 0.05);
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.quick-faq p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.text-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #3ab34c;
    padding: 3rem 0 1.5rem;
    color: var(--white);
}

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

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-link {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-link a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon img {
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.social-icon img:hover {
    transform: scale(1.1);
}

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

/* Responsive */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards Grid Responsive */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: var(--transition);
}

/* Formularios Responsive */
.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Footer Responsive */
.footer {
    background-color: #3ab34c;
    padding: 3rem 1rem;
}

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

/* Floating Image Responsive */
.floating-image {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 70px;
    height: auto;
    z-index: 2000;
    cursor: pointer;
    transition: all 0.3s ease;
    
}



.floating-logo-link {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    text-decoration: none;
}

.floating-logo-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.hero1{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


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


.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre todo el espacio sin deformarse */
    object-position: center; /* Centra el video */
}
.benefits-section {
    padding-top: 0%;
    padding: 2rem 1rem;
    background-color: #ffffff;
}

.benefits-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #004fae;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(79, 106, 226, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px #004eae2f;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover i {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #004fae;
}

.benefit-card p {
    color: black;
    line-height: 1.6;
    margin: 0;
}
.benefit-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.map-container {
    width: 100%;
    max-width: 1200px; /* Ancho máximo del mapa */
    margin: 0 auto; /* Centrado horizontal */
    border-radius: 1cm; /* Bordes redondeados de 1cm */
  /* Para que el borde redondeado funcione */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombra opcional */
    border: 1cm solid #f8af41; /* Borde naranja de 1cm (#f8af41 es el color naranja que mencionaste) */
}

.map-container iframe {
    width: 100%;
    height: 450px; /* Altura base */
    display: block; /* Elimina espacio fantasma debajo */
 /* Elimina borde por defecto del iframe */
}

/* Versión responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .map-container {
        border-width: 0.5cm; /* Borde más fino en móviles */
        border-radius: 0.5cm; /* Menos redondeo en móviles */
    }
    
    .map-container iframe {
        height: 350px; /* Altura menor en móviles */
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .map-container {
        border-width: 0.3cm;
        border-radius: 0.3cm;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Media Queries para dispositivos específicos */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
    }
    
    .main-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .menu-item {
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
    }
    
    .top-header {
        width: 100%;
        border-radius: 0;
    }
    
    body {
        padding-top: 60px;
    }
    
    .hero {
        min-height: 60vh;
        padding: 3rem 1rem;
    }
    
    .foto1 {
        max-height: 12cm;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .floating-image {
        width: 60px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

/* Orientación landscape para móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 5rem;
    }
}

/* Dispositivos con pantalla muy pequeña */
@media (max-width: 400px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title {
        margin-top: 1.5rem;
    }
    
    .footer-title:first-child {
        margin-top: 0;
    }
}


@media (max-width: 480px) {
    .video-container {
        max-width: 55vw;
        max-height: 20vh;
    }
}
/* Ajustes para tablets en modo retrato */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animaciones del menú hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mejoras responsive adicionales */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* Títulos responsive */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Contenedor responsive */
    .container {
        padding: 0 1rem;
    }
    
    /* Botones responsive */
    .button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Grid responsive */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Video responsive */
    .r video {
        width: 100%;
        height: auto;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    /* Títulos móviles */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Espaciado móvil */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Cards móviles */
    .benefit-card {
        padding: 1rem;
        text-align: center;
    }
    
    /* Footer móvil */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Formularios móviles */
    .form-input {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo {
        background-image: url('logo@2x.png');
        background-size: contain;
    }
}

/* QR Video Section - Clase específica completamente responsiva */
.qr-video-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
}

.qr-video-container {
    width: 100%;
    max-width: 400000px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-video {
    width: 100%;
    height: auto;
    max-width: 12000px;
    min-width: 300px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 79, 174, 0.2);
    transition: all 0.3s ease;
    object-fit: contain;
}

.qr-video:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 79, 174, 0.3);
}

/* Media queries para QR Video Section */

/* Desktop grande (1400px+) */
@media (min-width: 1400px) {
    .qr-video {
        max-width: 1000px;
    }
    
    .qr-video-section {
        min-height: 600px;
    }
}

/* Desktop estándar (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .qr-video {
        max-width: 850px;
    }
}

/* Tablets y pantallas medianas (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .qr-video-section {
        padding: 2.5rem 0;
        min-height: 400px;
    }
    
    .qr-video {
        max-width: 700px;
    }
    
    .qr-video-container {
        padding: 0 1.5rem;
    }
}

/* Móviles grandes (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .qr-video-section {
        padding: 2rem 0;
        min-height: 350px;
    }
    
    .qr-video {
        max-width: 550px;
        min-width: 300px;
    }
    
    .qr-video-container {
        padding: 0 1rem;
    }
}

/* Móviles pequeños (≤480px) */
@media (max-width: 480px) {
    .qr-video-section {
        padding: 1.5rem 0;
        min-height: 300px;
    }
    
    .qr-video {
        max-width: 450px;
        min-width: 250px;
        border-radius: 12px;
    }
    
    .qr-video-container {
        padding: 0 0.5rem;
    }
}

/* Landscape móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-title {
        font-size: 2rem;
    }
    
    .main-menu {
        top: 60px;
    }
    
    .qr-video-section {
        min-height: 250px;
        padding: 1rem 0;
    }
    
    .qr-video {
        max-width: 400px;
    }
}

/* Pantallas ultra anchas */
@media (min-width: 1920px) {
    .qr-video {
        max-width: 1200px;
    }
    
    .qr-video-section {
        min-height: 700px;
        padding: 4rem 0;
    }
}

/* CSS para mapa interactivo MR BATT */
.map-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

#mrbatt-map {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 79, 174, 0.15);
}

/* Leyenda del mapa */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.legend-marker.principal {
    background-color: var(--primary-color);
}

.legend-marker.punto_carga {
    background-color: #3ab34c;
}

/* Ventanas de información del mapa */
.map-info-window {
    max-width: 300px;
    font-family: 'Lato', sans-serif;
}

.map-info-window h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.map-info-window p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

.info-actions {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.btn-ruta {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-ruta:hover {
    background: #003d8c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 79, 174, 0.3);
}

/* Responsive para mapa */
@media (max-width: 768px) {
    .map-legend {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .legend-item {
        justify-content: center;
    }
    
    #mrbatt-map {
        height: 350px !important;
    }
    
    .map-info-window {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .map-container {
        padding: 0 0.5rem;
    }
    
    #mrbatt-map {
        height: 300px !important;
        border-radius: 8px;
    }
    
    .map-legend {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .map-info-window {
        max-width: 200px;
    }
    
    .map-info-window h3 {
        font-size: 1rem;
    }
    
    .map-info-window p {
        font-size: 0.8rem;
    }
}