/**
 * EcoMetales Theme - Responsive Styles
 * Estilos adicionales para dispositivos móviles y tablets
 */

/* ===== MOBILE MENU (manejado por slider-original.css) ===== */

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cards-grid,
    .services-grid,
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h2,
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .card,
    .service-card {
        padding: 1.5rem;
    }
    
    .card-title,
    .service-title {
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
    }

    /* ===== MOBILE HEADER & NAV ===== */
    header .site-nav {
        display: flex;
        align-items: center;
        justify-content: center; /* logo centrado */
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 1000;
        background: transparent; /* sin fondo para que el logo no tenga fondo verde */
    }

    .nav-logo img {
        height: 40px;
        width: auto;
        display: block;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        border: 2px solid rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.15);
        color: #fff;
        cursor: pointer;
        position: absolute;
        right: 1rem; /* botón hamburguesa a la derecha */
    }

    .mobile-menu-toggle .hamburger {
        width: 20px;
        height: 2px;
        background: #fff;
        position: relative;
    }
    .mobile-menu-toggle .hamburger::before,
    .mobile-menu-toggle .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
    }
    .mobile-menu-toggle .hamburger::before { top: -6px; }
    .mobile-menu-toggle .hamburger::after { top: 6px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(6px);
        padding: 0.75rem 1rem 1rem;
    }
    .nav-links a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .nav-links a:last-child { border-bottom: 0; }

    .site-nav.nav-open .nav-links { display: block; }

    /* Solo en móvil: miniaturas sin texto */
    .thumbnail .content,
    .ecometales-thumbnail .item .content { display: none !important; }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-icon,
    .service-icon,
    .material-icon {
        font-size: 2.5rem;
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ===== PRINT ===== */
@media print {
    .site-header,
    .hero-buttons,
    .contact-form,
    .mobile-menu-toggle {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* ===== ANIMACIONES MÓVILES (reducidas) ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ACCESIBILIDAD ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== DARK MODE (opcional para futuro) ===== */
@media (prefers-color-scheme: dark) {
    /* Aquí se pueden agregar estilos para modo oscuro si se desea */
}

/* ===== DESKTOP NAV DEFAULTS ===== */
@media (min-width: 769px) {
    .mobile-menu-toggle { display: none; }
    .nav-links { display: flex !important; gap: 1.5rem; align-items: center; position: static; background: transparent; padding: 0; }
    .nav-links a { color: #fff; border: 0; padding: 0; }
    header .site-nav { display: flex; gap: 2rem; align-items: center; }

    /* Slider thumbnails: solo imagen en escritorio */
    .thumbnail .content,
    .ecometales-thumbnail .item .content { display: none !important; }
}

