/* Optimizaciones de espaciado específicas para index.html */

/* Reducir padding general de secciones */
section {
    padding: 1.5rem 0 !important;
}

/* Hero section optimizada */
.hero {
    padding: 3rem 0 2rem 0 !important;
}

/* Footer optimizado */
footer {
    padding: 1.5rem 0 1rem 0 !important;
    margin-top: 1rem !important;
}

/* Optimizaciones para móviles */
@media (max-width: 768px) {
    section {
        padding: 1rem 0 !important;
    }
    
    .hero {
        padding: 2rem 0 1.5rem 0 !important;
    }
    
    footer {
        padding: 1rem 0 0.8rem 0 !important;
        margin-top: 0.5rem !important;
    }
    
    /* Eliminar completamente el padding del body en móviles */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Asegurar que el header esté pegado a la parte superior */
    header {
        top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Agregar espacio mínimo al hero para que no se corte el contenido */
    .hero {
        padding-top: 80px !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 0.8rem 0 !important;
    }
    
    .hero {
        padding: 1.5rem 0 1rem 0 !important;
    }
    
    footer {
        padding: 0.8rem 0 0.6rem 0 !important;
        margin-top: 0.3rem !important;
    }
    
    /* Eliminar completamente el padding del body en móviles pequeños */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Asegurar que el header esté pegado a la parte superior */
    header {
        top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Agregar espacio mínimo al hero para que no se corte el contenido */
    .hero {
        padding-top: 70px !important;
    }
}

/* Optimizar espaciado interno de elementos */
@media (max-width: 768px) {
    h2 {
        margin-bottom: 1rem !important;
    }
    
    .beneficios, .marcas, .cobertura, .testimonios {
        gap: 1rem !important;
    }
    
    .beneficio, .marca, .zona, .testimonio {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    h2 {
        margin-bottom: 0.8rem !important;
        font-size: 1.5rem !important;
    }
    
    .beneficios, .marcas, .cobertura, .testimonios {
        gap: 0.8rem !important;
    }
    
    .beneficio, .marca, .zona, .testimonio {
        padding: 0.8rem !important;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-btn-float {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn-float:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn-float span {
    font-size: 16px;
    font-weight: 600;
}

/* Efectos hover para botones principales de contacto */
.whatsapp-main:hover {
    background: linear-gradient(135deg, #128C7E, #25D366) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6) !important;
}

.telefono-main:hover {
    background: linear-gradient(135deg, #0056b3, #007bff) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.6) !important;
}

/* Animación pulse para el botón flotante */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsivo para el botón flotante */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-btn-float {
        padding: 12px 20px;
        font-size: 14px;
        gap: 8px;
    }
    
    .whatsapp-btn-float span {
        font-size: 14px;
    }
    
    .whatsapp-btn-float svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-btn-float {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .whatsapp-btn-float span {
        font-size: 13px;
    }
    
    .whatsapp-btn-float svg {
        width: 18px;
        height: 18px;
    }
    
    /* Optimizar botones de contacto principales en móvil */
    .contacto-botones {
        flex-direction: column !important;
        align-items: center;
        gap: 1rem !important;
    }
    
    .whatsapp-main, .telefono-main {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 16px !important;
        padding: 14px 24px !important;
    }
    
    /* Optimizar formulario en móvil */
    .formulario-contacto {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
    
    .formulario-contacto h3 {
        font-size: 1.3rem !important;
    }
    
    .formulario-contacto input,
    .formulario-contacto textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
    }
} 

/* Optimizaciones adicionales para el formulario */
@media (max-width: 768px) {
    .formulario-contacto {
        padding: 1.8rem !important;
    }
    
    .formulario-contacto h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem !important;
    }
}