/* Responsive Design */

/* Loading Screen Responsive - Skeleton */
@media (max-width: 768px) {
    .skeleton-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skeleton-nav {
        display: none;
    }
    
    .skeleton-phone {
        width: 100px;
    }
    
    .skeleton-features {
        flex-direction: column;
        align-items: center;
    }
    
    .skeleton-feature {
        width: 120px;
    }
    
    .skeleton-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .skeleton-button {
        width: 200px;
    }
    
    .skeleton-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .skeleton-container {
        padding: 0 15px;
    }
    
    .skeleton-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .skeleton-logo {
        width: 120px;
    }
    
    .skeleton-hero-title {
        width: 90%;
    }
    
    .skeleton-hero-subtitle {
        width: 100%;
    }
    
    .skeleton-hero-subtitle.short {
        width: 80%;
    }
    
    .skeleton-section-title {
        width: 80%;
    }
    
    .skeleton-section-subtitle {
        width: 90%;
    }
    
    .skeleton-card {
        padding: 1.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    .img-menu {
        display: none;
    }
    .texto-menu {
        display: none;
    }
}


/* Desktop */
@media (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
    }
    
    .trust-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .coverage-content {
        gap: 3rem;
    }
    .img-menu {
        display: none;
    }
    .texto-menu {
        display: none;
    }
}

/* Tablet */
@media (max-width: 992px) {
    /* Pre-Header */
    .pre-header {
        display: block;
    }
    
    /* Mostrar elementos del menú en tablet y móvil */
    .texto-menu {
        display: block !important;
    }
    .img-menu {
        display: block !important;
    }
    
    .header {
        top: 49px;
        transition: top 0.3s ease;
    }
    .header.scrolled {
        top: 0;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    /* Navigation - Same as mobile */
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1001;
        cursor: pointer;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-white) !important;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 80px 0 2rem 0;
        height: 100vh;
        z-index: 999;
    }
    
    .nav-menu .nav-link {
        color: var(--text-dark) !important;
        font-weight: 600;
        padding: 0.9rem 0;
        border-bottom: none;
        transition: var(--transition);
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-color) !important;
        background-color: transparent;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.9rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-contact {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger .bar {
        background-color: #1466cc !important;
        width: 25px;
        height: 3px;
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 2px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        background-color: #1466cc !important;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        background-color: #1466cc !important;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        background-color: #1466cc !important;
    }
    
    /* Hero Section - Same as mobile */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .image-placeholder {
        width: 100%;
        max-width: 300px;
        height: 200px;
        font-size: 2rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* Benefits */
    .benefits {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    /* Services */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Trust Section */
    .trust {
        padding: 60px 0;
    }
    
    .trust-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .trust-text h2 {
        font-size: 2rem;
    }
    
    .trust-text p {
        font-size: 1.1rem;
    }
    
    .trust-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .trust-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .trust-image .image-placeholder {
        margin: 0 auto;
    }
    
    /* Brands */
    .brands {
        padding: 60px 0;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .brand-item {
        padding: 1.5rem;
    }
    
    /* Mostrar carrusel en mobile/tablet, ocultar grid */
    .brands-carousel {
        display: block;
    }
    .brands-grid {
        display: none;
    }
    
    /* Coverage */
    .coverage {
        padding: 60px 0;
    }
    
    .coverage-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coverage-map {
        order: -1;
    }
    
    .map-placeholder {
        width: 100%;
        max-width: 400px;
    }
    
    .coverage-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coverage-list h3 {
        margin-top: 0;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* FAQ */
    .faq {
        padding: 60px 0;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .hero-cta .btn-primary {
        display: none;
    }
    .hero-cta .btn-whatsapp {
        display: flex;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .whatsapp-float {
        display: none !important;
    }
    .whatsapp-float.visible {
        display: block !important;
    }
    .desktop-btn {
        display: none !important;
    }
    .mobile-btn {
        display: flex !important;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .hero-img {
        max-width: 65%;
        height: auto;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    /* Header fixes for mobile */
    .header {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Mostrar elementos del menú en móvil */
    .texto-menu {
        display: block !important;
    }
    .img-menu {
        display: block !important;
    }
    
    .nav-logo p {
        color: var(--text-dark) !important;
        font-size: 12px;
    }
    
    .nav-logo h2 {
        color: var(--primary-color) !important;
    }
    
    .nav-link {
        color: var(--text-dark) !important;
    }
    
    .hamburger .bar {
        background-color: var(--text-dark) !important;
    }
    
    /* Pre-Header */
    .pre-header {
        display: block;
    }
    
    .header {
        top: 49px;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-white) !important;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 80px 0 2rem 0;
        height: 100vh;
        z-index: 999;
    }
    
    .nav-menu .nav-link {
        color: var(--text-dark) !important;
        font-weight: 600;
        padding: 0.9rem 0;
        border-bottom: none;
        transition: var(--transition);
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-color) !important;
        background-color: transparent;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.9rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-contact {
        display: none;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger .bar {
        background-color: #1466cc !important;
        width: 25px;
        height: 3px;
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 2px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        background-color: var(--text-dark) !important;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        background-color: var(--text-dark) !important;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
        background-color: var(--text-dark) !important;
    }
    
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .image-placeholder {
        width: 100%;
        max-width: 300px;
        height: 200px;
        font-size: 2rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    /* Benefits */
    .benefits {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    /* Services */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Trust Section */
    .trust {
        padding: 60px 0;
    }
    
    .trust-text h2 {
        font-size: 2rem;
    }
    
    .trust-text p {
        font-size: 1.1rem;
    }
    
    .trust-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .trust-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .trust-image .image-placeholder {
        margin: 0 auto;
        width: 100%;
        height: 301px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Brands */
    .brands {
        padding: 60px 0;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .brand-item {
        padding: 1.5rem;
    }
    
    /* Mostrar carrusel en mobile/tablet, ocultar grid */
    .brands-carousel {
        display: block;
    }
    .brands-grid {
        display: none;
    }
    
    /* Coverage */
    .coverage {
        padding: 60px 0;
    }
    
    .coverage-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coverage-list h3 {
        margin-top: 0;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* FAQ */
    .faq {
        padding: 60px 0;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    .desktop-btn {
        display: none !important;
    }
    .mobile-btn {
        display: flex !important;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .nav-logo p {
        font-size: 12px;
    }
    .hero-img {
        max-width: 60%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Mostrar elementos del menú en móvil pequeño */
    .texto-menu {
        display: block !important;
    }
    .img-menu {
        display: block !important;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .benefit-card {
        padding: 1.25rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .trust-text h2 {
        font-size: 1.8rem;
    }
    
    .trust-text p {
        font-size: 1rem;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
    .hero-img {
        max-width: 70%;
        height: auto;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .whatsapp-float a {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        margin-bottom: 1rem;
    }
    
    .image-placeholder {
        height: 150px;
        font-size: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-placeholder {
        background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .hero-cta,
    .contact-form {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        background: white;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .image-placeholder {
        display: none;
    }
    
    .btn {
        border: 1px solid #000;
        background: white;
        color: black;
    }
    
    .benefit-card,
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .faq-item.active .faq-answer {
        max-height: none;
    }
    
    .footer {
        background: white;
        color: black;
    }
    
    .footer-section p,
    .footer-section ul li a {
        color: black;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-float a {
        animation: none;
    }
}

/* Services Section Fix */
.services {
    background: var(--bg-light) !important;
    padding: 60px 0;
}

.service-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Benefits Section Fix */
.benefits {
    background: var(--bg-white) !important;
    padding: 60px 0;
}

.benefit-card {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
} 