/* ============================================
   RESPONSIVE FIXES - Art Delux Atelier
   Añadir DESPUÉS de styles.css
   ============================================ */

/* ========================================
   FIX 1: PCs - 1440×900 (Laptop estándar)
   ======================================== */
@media (min-width: 1367px) and (max-width: 1600px) and (min-height: 850px) and (max-height: 950px) {
    .hero {
        min-height: 90vh;
        max-height: 850px;
        padding: 90px 2rem 70px;
    }
    
    .sculpture-img {
        height: 82vh;
        max-height: 720px;
        transform: translateX(-8%);
    }
    
    .hero-title {
        font-size: 2.6rem;
        margin-bottom: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .scroll-indicator {
        bottom: 2.5rem;
    }
}

/* ========================================
   FIX 2: PCs - 2560×1440 (2K) & 3840×2160 (4K)
   ======================================== */
@media (min-width: 2400px) {
    /* Contenedores más anchos */
    .nav-container,
    .hero-content,
    .sculptures-container,
    .custom-order-content,
    .footer-content,
    .footer-bottom-content {
        max-width: 2200px !important;
    }
    
    /* Header más grande */
    .header {
        padding: 1.3rem 3rem;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-icon {
        font-size: 1.3rem;
    }
    
    /* Hero escalado */
    .hero {
        padding: 150px 3rem 150px;
    }
    
    .hero-title {
        font-size: 5rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
        margin-bottom: 3.5rem;
        line-height: 2;
    }
    
    .cta-button {
        padding: 1.3rem 3.2rem;
        font-size: 1.2rem;
    }
    
    .sculpture-img {
        height: 100vh;
        max-height: 1300px;
    }
    
    /* Sculptures Section */
    .sculptures-section {
        padding: 150px 3rem;
    }
    
    .section-title {
        font-size: 3.5rem;
        margin-bottom: 5rem;
    }
    
    .sculpture-card {
        width: 420px !important;
        min-width: 420px !important;
    }
    
    .sculpture-image {
        height: 400px;
    }
    
    .sculpture-name {
        font-size: 1.8rem;
        padding: 1.8rem 1.4rem 0.7rem;
    }
    
    .sculpture-category {
        font-size: 1.1rem;
    }
    
    .sculpture-price {
        font-size: 1.6rem;
        padding: 0.7rem 1.4rem 1.8rem;
    }
    
    .add-to-cart-btn {
        padding: 1rem 1.8rem;
        font-size: 1.1rem;
    }
    
    .nav-arrow {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
    
    /* Custom Order */
    .custom-order-section {
        padding: 150px 3rem;
    }
    
    .custom-title {
        font-size: 3.5rem;
        margin-bottom: 3.5rem;
    }
    
    .form-select,
    .form-input {
        padding: 1.1rem 1.4rem;
        font-size: 1.15rem;
    }
    
    .radio-label {
        font-size: 1.2rem;
    }
    
    .submit-btn {
        padding: 1.3rem 3rem;
        font-size: 1.15rem;
    }
    
    /* Footer */
    .footer {
        padding: 5.5rem 3rem 0;
    }
    
    .footer-section h3 {
        font-size: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.6rem;
    }
    
    .footer-description p,
    .footer-links a,
    .contact-info p {
        font-size: 1.2rem;
    }
    
    .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* ========================================
   FIX 3: PCs - 1024×1024 (Pantallas cuadradas)
   ======================================== */
@media (min-width: 1000px) and (max-width: 1100px) and (min-height: 1000px) and (max-height: 1100px) {
    .hero {
        min-height: 70vh;
        padding: 100px 2rem 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 2rem;
    }
    
    .sculpture-img {
        height: 65vh;
        max-height: 650px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Esculturas - 2 por fila */
    .sculptures-container {
        max-width: 900px;
    }
    
    /* Footer compacto */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* ========================================
   FIX 4: PCs - 1440×1024 (Horizontal wide)
   ======================================== */
@media (min-width: 1400px) and (max-width: 1500px) and (min-height: 1000px) and (max-height: 1100px) {
    .hero {
        min-height: 75vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1.3fr;
    }
    
    .sculpture-img {
        height: 72vh;
        max-height: 730px;
    }
    
    .sculptures-container {
        max-width: 1250px;
    }
}

/* ========================================
   FIX 5: TABLETS - 800×1280, 820×1180
   ======================================== */
@media (min-width: 769px) and (max-width: 850px) {
    /* Header */
    .header {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        font-size: 1.15rem;
    }
    
    .nav-icons {
        gap: 0.85rem;
    }
    
    .nav-icon {
        font-size: 1.08rem;
    }
    
    /* Hero */
    .hero {
        padding: 95px 1.5rem 85px;
        min-height: 82vh;
    }
    
    .hero-left {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 680px;
    }
    
    .hero-right {
        grid-column: 1;
    }
    
    .hero-title {
        font-size: 2.1rem;
        margin-bottom: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-button {
        padding: 0.9rem 2.3rem;
        font-size: 0.95rem;
    }
    
    /* Sculptures - 1 producto centrado */
    .sculptures-section {
        padding: 80px 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .sculptures-container {
        max-width: 580px;
        padding: 0 50px;
        margin: 0 auto;
    }
    
    .sculptures-grid {
        justify-content: center;
    }
    
    .sculpture-card {
        width: 100% !important;
        max-width: 480px !important;
        min-width: 420px !important;
    }
    
    .sculpture-image {
        height: 320px;
    }
    
    .sculpture-name {
        font-size: 1.4rem;
        padding: 1.35rem 1.1rem 0.55rem;
    }
    
    .sculpture-price {
        font-size: 1.25rem;
    }
    
    .add-to-cart-btn {
        padding: 0.75rem 1.45rem;
        font-size: 0.88rem;
    }
    
    .nav-arrow {
        width: 46px;
        height: 46px;
        font-size: 0.95rem;
    }
    
    /* Custom Order */
    .custom-order-section {
        padding: 80px 1.5rem;
    }
    
    .custom-order-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .custom-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .custom-form {
        max-width: 100%;
    }
    
    .sculpture-preview {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer {
        padding: 3.5rem 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    /* Chatbot ajustado */
    .chatbot-widget {
        bottom: 1.3rem;
        right: 1.3rem;
    }
    
    .chatbot-trigger {
        width: 54px;
        height: 54px;
    }
    
    .chatbot-trigger i {
        font-size: 1.4rem;
    }
    
    .chatbot-container {
        width: 420px;
        max-width: calc(100vw - 2.6rem);
        height: 520px;
        max-height: calc(100vh - 130px);
        right: 1.3rem;
        bottom: 80px;
    }
}

/* ========================================
   FIX 6: TABLETS - 912×1368, 1024×1366
   ======================================== */
@media (min-width: 851px) and (max-width: 1050px) and (min-height: 1300px) {
    /* Header */
    .header {
        padding: 1.1rem 1.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero {
        padding: 100px 1.8rem 90px;
        min-height: 65vh;
    }
    
    .hero-left {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 750px;
    }
    
    .hero-right {
        grid-column: 1;
    }
    
    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 1.6rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2.2rem;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
        font-size: 0.95rem;
    }
    
    /* Sculptures - 1 producto más grande */
    .sculptures-section {
        padding: 90px 1.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3.5rem;
    }
    
    .sculptures-container {
        max-width: 650px;
        padding: 0 55px;
        margin: 0 auto;
    }
    
    .sculptures-grid {
        justify-content: center;
    }
    
    .sculpture-card {
        width: 100% !important;
        max-width: 540px !important;
        min-width: 480px !important;
    }
    
    .sculpture-image {
        height: 360px;
    }
    
    .sculpture-name {
        font-size: 1.5rem;
        padding: 1.5rem 1.2rem 0.6rem;
    }
    
    .sculpture-category {
        font-size: 0.95rem;
    }
    
    .sculpture-price {
        font-size: 1.35rem;
        padding: 0.6rem 1.2rem 1.5rem;
    }
    
    .add-to-cart-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.92rem;
    }
    
    .nav-arrow {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    /* Custom Order */
    .custom-order-section {
        padding: 90px 1.8rem;
    }
    
    .custom-order-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .custom-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .form-row {
        gap: 1.4rem;
    }
    
    .form-select,
    .form-input {
        padding: 0.85rem 1.1rem;
        font-size: 1rem;
    }
    
    .sculpture-preview {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer {
        padding: 4rem 1.8rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-section h3 {
        font-size: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.25rem;
    }
    
    /* Chatbot */
    .chatbot-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .chatbot-trigger {
        width: 60px;
        height: 60px;
    }
    
    .chatbot-trigger i {
        font-size: 1.6rem;
    }
    
    .chatbot-container {
        width: 450px;
        max-width: calc(100vw - 3rem);
        height: 580px;
        max-height: calc(100vh - 140px);
        right: 1.5rem;
        bottom: 85px;
    }
}

/* ========================================
   FIX 7: AJUSTE GENERAL ALTURA VIEWPORT
   ======================================== */
@media (max-height: 700px) and (min-width: 769px) {
    /* Hero más compacto */
    .hero {
        min-height: 95vh !important;
        padding: 85px 2rem 70px !important;
    }
    
    .sculpture-img {
        height: 85vh !important;
        max-height: 580px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .hero-description {
        font-size: 0.98rem !important;
        margin-bottom: 1.8rem !important;
    }
    
    .scroll-indicator {
        bottom: 1.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* ========================================
   FIX 8: SLIDER - FORZAR CONSISTENCIA
   ======================================== */
@media (min-width: 769px) and (max-width: 1050px) {
    /* FORZAR que el slider muestre SOLO 1 producto centrado */
    .sculptures-grid {
        justify-content: center !important;
    }
    
    .sculpture-card {
        margin: 0 auto !important;
    }
    
    /* Esconder flechas si hay menos de 2 productos */
    .nav-arrow {
        opacity: 0.7;
    }
    
    .nav-arrow:hover {
        opacity: 1;
    }
}

/* ========================================
   FIX 9: CHATBOT - NO CUBRIR CONTENIDO
   ======================================== */
@media (min-width: 769px) and (max-width: 1366px) {
    .chatbot-widget {
        bottom: 1.5rem;
        right: 1.5rem;
        z-index: 995; /* Reducir para no tapar menú */
    }
    
    .chatbot-container {
        max-height: calc(100vh - 150px);
        height: 500px;
    }
    
    .chatbot-trigger {
        width: 56px;
        height: 56px;
    }
}

/* ========================================
   FIX 10: FORMULARIO - INPUTS MÁS GRANDES
   ======================================== */
@media (min-width: 769px) and (max-width: 1366px) {
    .custom-form {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }
    
    .form-row:nth-child(2) {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-select,
    .form-input {
        padding: 0.9rem 1.1rem;
        font-size: 1rem;
    }
    
    .radio-label {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .radio-custom {
        width: 20px;
        height: 20px;
    }
    
    .submit-btn {
        padding: 1rem 2.3rem;
        font-size: 1rem;
        margin-top: 2rem;
    }
}

/* ========================================
   FIX 11: CART SIDEBAR - TABLETS
   ======================================== */
@media (min-width: 769px) and (max-width: 1366px) {
    .cart-sidebar {
        width: 420px;
    }
    
    .cart-header {
        padding: 1.6rem 1.3rem;
    }
    
    .cart-header h3 {
        font-size: 1.3rem;
    }
    
    .cart-items {
        padding: 1.2rem;
    }
    
    .cart-item {
        padding: 1.15rem;
    }
    
    .cart-item-image {
        width: 75px;
        height: 75px;
    }
    
    .cart-item-title {
        font-size: 1rem;
    }
    
    .cart-item-price {
        font-size: 1.05rem;
    }
    
    .cart-footer {
        padding: 1.6rem 1.3rem;
    }
    
    .cart-total {
        font-size: 1.15rem;
    }
    
    .checkout-btn {
        padding: 0.95rem 1.9rem;
        font-size: 0.98rem;
    }
}

/* ========================================
   FIX 12: SCROLL SUAVE UNIVERSAL
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* Asegurar que el scroll indicator siempre esté visible */
.scroll-indicator {
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* ========================================
   FIX 13: PREVENIR OVERFLOW HORIZONTAL
   ======================================== */
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.hero,
.sculptures-section,
.custom-order-section,
.footer {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   FIX 14: OPTIMIZACIÓN DE FUENTES
   ======================================== */
@media (min-width: 769px) and (max-width: 1366px) {
    body {
        font-size: 16px; /* Base más grande para tablets */
    }
    
    h1, h2, h3, h4, h5, h6 {
        letter-spacing: -0.02em; /* Mejor legibilidad */
    }
}

/* ========================================
   FIX 15: TOUCH TARGETS MÁS GRANDES
   ======================================== */
@media (min-width: 769px) and (max-width: 1366px) {
    .nav-link,
    .cta-button,
    .add-to-cart-btn,
    .quick-reply,
    .nav-arrow {
        min-height: 44px; /* Estándar de accesibilidad */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   FIX 16: MEJORAR CONTRASTE
   ======================================== */
.sculpture-category,
.footer-description p,
.contact-info p {
    color: #cccccc; /* Mejor contraste que #BBBBBB */
}

/* ========================================
   FIX 17: ANIMACIONES MÁS SUAVES
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   FIN DE LAS CORRECCIONES
   ======================================== */