/* 
 * Dosiplant Landing Page - CSS Responsive
 * Mobile-first approach con media queries
 */


/* Mobile First - Estilos base para móviles ya están en styles.css */


/* Navegación móvil */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--box-shadow);
        z-index: 1000;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: calc(var(--grid-unit) * 2) 0;
    }
    .main-nav li {
        border-bottom: 1px solid var(--color-gray-light);
    }
    .main-nav a {
        display: block;
        padding: calc(var(--grid-unit) * 2) calc(var(--grid-unit) * 3);
    }
    /* Hero mobile */
    .hero {
        padding: calc(var(--grid-unit) * 8) 0;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1.125rem;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: calc(var(--grid-unit) * 2);
    }
    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
    }
    /* Secciones mobile */
    section {
        padding: calc(var(--grid-unit) * 6) 0;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: calc(var(--grid-unit) * 6);
    }
    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    .feature-card {
        padding: calc(var(--grid-unit) * 3);
    }
    /* Benefits grid mobile */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    .benefit-card {
        padding: calc(var(--grid-unit) * 3);
    }
    .benefit-number {
        font-size: 2rem;
    }
    /* Testimonials grid mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    .testimonial-card {
        padding: calc(var(--grid-unit) * 3);
    }
    /* Sensors grid mobile */
    .sensors-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    /* Cases grid mobile */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    /* Monitoring grid mobile */
    .monitoring-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    .monitoring-card {
        padding: calc(var(--grid-unit) * 3);
    }
    .before-after {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    .monitoring-benefits {
        padding: calc(var(--grid-unit) * 3);
        margin-top: calc(var(--grid-unit) * 6);
    }
    /* Featured monitoring mobile */
    .temperature-features {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 2);
    }
    .specs-list {
        grid-template-columns: 1fr;
    }
    .featured-monitoring .monitoring-icon img {
        width: 60px;
        height: 90px;
    }
    /* Contact mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 4);
    }
    .contact-form,
    .contact-info {
        padding: calc(var(--grid-unit) * 3);
    }
    .company-legal {
        padding: calc(var(--grid-unit) * 2);
        margin-top: calc(var(--grid-unit) * 3);
    }
    .company-legal p {
        font-size: 0.85em;
    }
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 3);
        text-align: center;
    }
}


/* Tablet */

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 calc(var(--grid-unit) * 3);
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sensors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .monitoring-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .before-after {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--grid-unit) * 3);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-ctas {
        gap: calc(var(--grid-unit) * 2);
    }
}


/* Desktop mediano */

@media (min-width: 1025px) and (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sensors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Desktop grande */

@media (min-width: 1201px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.375rem;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sensors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    section {
        padding: calc(var(--grid-unit) * 12) 0;
    }
}


/* Pantallas muy grandes */

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    .sensors-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Media queries para impresión */

@media print {
    .nav-toggle,
    .hero-ctas,
    .contact-form,
    .site-footer {
        display: none;
    }
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    .hero {
        background: none;
        color: black;
        padding: calc(var(--grid-unit) * 4) 0;
    }
    .section-title {
        color: black;
        page-break-after: avoid;
    }
    .feature-card,
    .sensor-card,
    .case-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* Accesibilidad: prefers-reduced-motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Accesibilidad: dark mode */

@media (prefers-color-scheme: dark) {
     :root {
        --color-background: #1a1a1a;
        --color-text: #ffffff;
        --color-text-light: #cccccc;
        --color-gray-light: #333333;
        --color-gray-medium: #444444;
    }
    .feature-card,
    .sensor-card,
    .case-card,
    .contact-form,
    .contact-info {
        background-color: #2a2a2a;
        color: var(--color-text);
    }
    .form-group input,
    .form-group textarea {
        background-color: #333333;
        color: var(--color-text);
        border-color: var(--color-gray-medium);
    }
}


/* Focus visible para mejor accesibilidad */

.btn:focus-visible,
.main-nav a:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.sensor-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}


/* Animaciones suaves para elementos interactivos */

@media (prefers-reduced-motion: no-preference) {
    .sensor-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .btn {
        transition: all 0.2s ease;
    }
    .main-nav a {
        transition: all 0.2s ease;
    }
}