/* ==========================================
   OPTIMIZACIÓN COMPLETA PARA MÓVILES
   ========================================== */

/* Mejoras generales para móviles */
@media (max-width: 768px) {

    /* Hero section optimizado */
    .hero {
        height: auto;
        min-height: 70vh;
    }

    .hero-image {
        height: 100%;
        border-radius: 0;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
    }

    .hero-benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-benefit {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .primary-btn,
    .hero-buttons .secondary-btn {
        width: 100%;
    }

    /* Secciones optimizadas */
    .section-container {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 2rem;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .treatment-buttons {
        flex-direction: column;
    }

    .treatment-btn {
        width: 100%;
    }

    /* Proceso de trabajo */
    .process-steps {
        flex-direction: column;
    }

    .process-step {
        width: 100%;
    }

    /* Testimonios */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* Certificaciones */
    .certifications-content {
        grid-template-columns: 1fr;
    }

    .certification-badges {
        grid-template-columns: 1fr;
    }

    /* Precios */
    .pricing-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-card {
        margin-bottom: 1rem;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .price-btn {
        font-size: 0.9rem;
        padding: 0.9rem 1.5rem;
    }

    /* Redes sociales */
    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-link-card {
        padding: 2rem 1.5rem;
    }

    /* Google Business */
    .google-business-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .google-map iframe {
        height: 300px;
    }

    /* Footer */
    .footer-content {
        padding: 2rem 1rem;
    }

    .footer-info {
        padding: 0 1rem;
    }

    .footer-social,
    .footer-contact {
        margin-bottom: 2rem;
    }

    .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Imágenes EU optimizadas */
    .eu-images {
        gap: 1rem;
        padding: 0 1rem;
    }

    .eu-images img {
        width: 90px !important;
        max-width: 90px !important;
        height: auto;
    }

    .eu-text {
        font-size: 0.75rem !important;
        padding: 0 1rem;
    }

    .legal-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
        /* Espaciado reducido entre elementos */
        line-height: 1.2;
    }

    .legal-links a {
        display: inline-block;
        margin: 0;
        font-size: 0.8rem;
    }

    .legal-links .separator {
        display: inline-block;
        /* Mantener visibilidad del separador */
        margin: 0 0.2rem;
        color: var(--text-color);
        opacity: 0.5;
    }
}

/* Optimización para móviles pequeños */
@media (max-width: 480px) {

    /* Hero aún más compacto */
    .hero-image {
        height: 100%;
        border-radius: 0;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
    }

    .hero-benefits {
        gap: 0.8rem;
    }

    .hero-benefit {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .hero-benefit i {
        font-size: 1.1rem;
    }

    /* Secciones más compactas */
    .section-container {
        padding: 2rem 0.8rem;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    /* Tarjetas de precio */
    .price-card {
        padding: 1.5rem;
    }

    .price-card h4 {
        font-size: 1.1rem;
    }

    .price-card .price {
        font-size: 2rem;
    }

    .price-features li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    /* Testimonios */
    .testimonial-card {
        padding: 1.2rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* Imágenes EU más pequeñas */
    .eu-images {
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .eu-images img {
        width: 70px !important;
        max-width: 70px !important;
    }

    /* Botones más accesibles */
    .primary-btn,
    .secondary-btn,
    .price-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    /* WhatsApp flotante */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* Navbar móvil */
    .navbar {
        padding: 0.6rem 1rem;
    }

    .logo img {
        height: 50px;
    }

    /* Footer compacto */
    .footer-contact p {
        font-size: 0.75rem;
    }

    .footer-social h3,
    .footer-contact h3 {
        font-size: 0.85rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Optimización para pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem !important;
    }

    .section-title {
        font-size: 1.2rem !important;
    }

    .eu-images img {
        width: 60px !important;
        max-width: 60px !important;
    }

    .price-card .price {
        font-size: 1.8rem;
    }
}

/* Mejoras de touch para móviles */
@media (hover: none) and (pointer: coarse) {

    /* Aumentar área de toque para botones */
    .primary-btn,
    .secondary-btn,
    .price-btn,
    .treatment-btn {
        min-height: 44px;
        padding: 0.9rem 1.8rem;
    }

    /* Mejorar interacción con tarjetas */
    .price-card:active {
        transform: scale(0.98);
    }

    .testimonial-card:active {
        transform: translateY(-5px);
    }

    /* Eliminar efectos hover en móviles */
    .price-card:hover,
    .testimonial-card:hover,
    .social-link-card:hover {
        transform: none;
    }

    /* Mantener solo efectos de tap */
    .price-card:active,
    .social-link-card:active {
        opacity: 0.9;
    }
}

/* Orientación horizontal en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-image {
        height: 60vh;
    }

    .section-container {
        padding: 2rem 1rem;
    }
}