/* ===== RESPONSIVE DESIGN ===== */

/* TABLETS - MEDIANOS (768px y menos) */
@media (max-width: 768px) {
    /* HEADER */
    .header-top-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .header-links {
        gap: 15px;
    }

    /* NAVBAR */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link {
        padding: 15px;
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* HERO */
    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-badges {
        grid-template-columns: 1fr;
    }

    /* PRODUCTOS */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* VENTAJAS */
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /* COLECCIONES */
    .collections-grid {
        grid-template-columns: 1fr;
    }

    /* INSTAGRAM */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FINANCIAMIENTO */
    .financing-partners {
        grid-template-columns: 1fr;
    }

    /* TESTIMONIOS */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACTO */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form .btn-primary {
        width: 100%;
        align-self: stretch;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column a {
        display: inline-block;
    }

    .social-footer {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-footer a {
        margin: 0 10px;
    }
}

/* MOBILES - PEQUEÑOS (480px y menos) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* HEADER */
    .header-top {
        display: none;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 10px;
    }

    /* HERO */
    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* HERO */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-placeholder {
        font-size: 3rem;
    }

    .hero-badges {
        gap: 20px;
    }

    .badge {
        gap: 15px;
        padding: 15px;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .badge h4 {
        font-size: 0.95rem;
    }

    .badge p {
        font-size: 0.8rem;
    }

    /* SECCIONES */
    .featured-products,
    .advantages,
    .collections,
    .instagram-feed,
    .financing,
    .testimonials,
    .contact {
        padding: 60px 0;
    }

    .section-header h2,
    .section-title,
    .contact h2,
    .testimonials h2,
    .financing h2,
    .advantages h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* PRODUCTOS */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        margin: 0;
    }

    /* INSTAGRAM */
    .instagram-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACTO */
    .contact-info-box h3 {
        font-size: 1.2rem;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    /* FOOTER */
    .footer-column h4 {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    /* BOTONES */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 12px 20px;
    }
}

/* EXTRA PEQUEÑOS (menos de 360px) */
@media (max-width: 359px) {
    .logo h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-header h2,
    .section-title {
        font-size: 1.5rem;
    }

    .btn-product,
    .btn-collection {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-icon {
        font-size: 1.3rem;
    }
}

/* LANDSCAPE MODE - Para tablets en horizontal */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        gap: 30px;
        margin-bottom: 30px;
    }

    .hero-badges {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .badge {
        padding: 15px;
    }

    .badge h4 {
        font-size: 0.95rem;
    }

    .badge p {
        font-size: 0.8rem;
    }
}

/* PRINT STYLES */
@media print {
    header,
    .hero-buttons,
    .btn,
    .contact-form {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }
}

/* PANTALLAS GRANDES (1920px y más) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-header h2,
    .section-title {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .instagram-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    /* Fallback para modo oscuro del sistema */
    body {
        background: #f5f5f5;
    }
}

/* DISPOSITIVOS CON PANTALLA TÁCTIL */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 15px 35px;
        font-size: 1.05rem;
    }

    .nav-link::after {
        display: none;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }
}
