/* ============================================
   VARIABLES GLOBALES
============================================ */
:root {
    --primary-color: #050505;
    --secondary-color: #0096c7;
    --secondary-dark: #0077a3;
    --accent-color: #adb5bd;
    --dark-color: #000000;

    --white: #ffffff;
    --light-bg: #eef3f7;
    --gray-light: #ced4da;
    --gray: #6c757d;
    --dark-text: #050505;
    --light-text: #3a5f6f;

    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    --info-color: #0096c7;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 32px rgba(0, 0, 0, 0.16);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ============================================
   RESET Y ESTILOS BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Global input font-size to prevent mobile zoom */
input,
textarea,
select {
    font-size: 1rem !important;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   TIPOGRAFÍA
============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   BOTONES
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    position: relative;
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        background-attachment: scroll;
        min-height: 400px;
        padding: var(--spacing-xl) 0;
    }
}

/* ============================================
   PRODUCTOS
============================================ */
.products-section {
    padding: var(--spacing-2xl) 0;
}

.products-section-alt {
    background-color: var(--light-bg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.section-title {
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
}

.view-all-link:hover {
    gap: var(--spacing-sm);
    transform: translateX(5px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: 0;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    z-index: 10;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--light-bg);
    cursor: pointer;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
    display: block;
}

.product-card:hover .product-main-image {
    transform: scale(1.05);
}

.product-image-thumbnails {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.15);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 15;
}

.product-card:hover .product-image-thumbnails {
    opacity: 1;
}

.thumbnail {
    width: 45px;
    height: 45px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover .product-overlay,
.product-card.touch-active .product-overlay {
    opacity: 1;
}

@media (hover: none),
(pointer: coarse) {
    .product-overlay {
        background: rgba(0, 0, 0, 0.15);
    }

    .product-card.touch-active .product-image-thumbnails,
    .product-card:hover .product-image-thumbnails {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
        bottom: 70px;
    }
}

.btn-quick-view,
.btn-add-cart {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--dark-text);
}

.btn-quick-view:hover,
.btn-add-cart:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-md);
    text-align: center;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-text);
    line-height: 1.4;
}

.product-price {
    margin-top: var(--spacing-sm);
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .products-section {
        padding: var(--spacing-xl) 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
        margin-bottom: 0;
    }

    .product-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
        align-items: flex-end;
        padding: var(--spacing-md);
    }

    .product-image-thumbnails {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
        bottom: 70px;
    }

    .thumbnail {
        width: 35px;
        height: 35px;
    }

    .btn-quick-view,
    .btn-add-cart {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .product-name {
        font-size: 0.9rem;
    }

    .price-current {
        font-size: 1.1rem;
    }
}

/* ============================================
   MODAL PARA IMÁGENES
============================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10001;
}

.modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10001;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    animation: zoomIn 0.3s ease-out;
    border-radius: var(--border-radius);
}

.modal-caption {
    margin-top: 20px;
    color: white;
    text-align: center;
    font-size: 1rem;
    z-index: 10001;
}

.modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    z-index: 10001;
    max-width: 90%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 60%;
    }

    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-thumbnail {
        width: 45px;
        height: 45px;
    }

    .modal-close {
        font-size: 28px;
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .modal-caption {
        font-size: 0.875rem;
        margin-top: 10px;
    }
}

/* ============================================
   FEATURES SECTION
============================================ */
.features-section {
    padding: var(--spacing-2xl) 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    transition: all var(--transition);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h4 {
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .features-section {
        padding: var(--spacing-xl) 0;
    }

    .features-grid {
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============================================
   NEWSLETTER
============================================ */
.newsletter-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.newsletter-text h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.newsletter-text p {
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: box-shadow var(--transition);
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(125, 63, 187, 0.3);
}

.newsletter-form .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: var(--spacing-xl) 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .newsletter-text h3 {
        font-size: 1.25rem;
    }

    .newsletter-text p {
        font-size: 0.875rem;
    }
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-info-footer li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-footer i {
    width: 20px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-lg) 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: var(--spacing-xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info-footer li {
        justify-content: center;
    }

    .footer-bottom {
        padding: var(--spacing-md) 0;
        font-size: 0.75rem;
    }
}

/* ============================================
   WHATSAPP BUTTON
============================================ */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   NOTIFICACIONES MEJORADAS
============================================ */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    z-index: 10000;
    overflow: hidden;
    cursor: default;
}

.notification.show {
    transform: translateX(0);
}

.notification.hide {
    transform: translateX(400px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-content i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #666;
}

.notification-progress {
    height: 3px;
    background: #4caf50;
    width: 100%;
    animation: progressShrink 3s linear forwards;
    transform-origin: left;
}

/* Colores por tipo de notificación */
.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-success .notification-progress {
    background: #4caf50;
}

.notification-success i {
    color: #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-error .notification-progress {
    background: #f44336;
}

.notification-error i {
    color: #f44336;
}

.notification-warning {
    border-left: 4px solid #ff9800;
}

.notification-warning .notification-progress {
    background: #ff9800;
}

.notification-warning i {
    color: #ff9800;
}

.notification-info {
    border-left: 4px solid var(--secondary-color);
}

.notification-info .notification-progress {
    background: var(--secondary-color);
}

.notification-info i {
    color: var(--secondary-color);
}

/* Animación de la barra de progreso */
@keyframes progressShrink {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Versión responsive para móviles */
@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
        bottom: 20px;
        transform: translateY(100px);
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification.hide {
        transform: translateY(100px);
    }
}

/* ============================================
   UTILIDADES
============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--secondary-color);
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

/* Responsive fixes for account page */
@media (max-width: 768px) {
    .form-row {
        display: block !important;
        gap: 15px;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 10px 12px;
    }

    .form-group label {
        font-size: 0.9rem;
    }
}

/* ============================================
   PARA TABLETS (puntos de corte específicos)
============================================ */

/* Tablets en modo horizontal y iPads (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Ajuste del grid de productos para tablets */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    /* Ajuste del hero section para tablets */
    .hero-section {
        min-height: 450px;
        background-attachment: scroll;
        /* Mejor rendimiento en tablets */
        background-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Ajuste del container para tablets */
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    /* Ajuste de tarjetas de producto */
    .product-card {
        max-width: 100%;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .price-current {
        font-size: 1.15rem;
    }

    /* Mejora en las miniaturas para tablets */
    .product-image-thumbnails {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
        bottom: 10px;
        padding: 0.5rem 0.75rem;
    }

    .thumbnail {
        width: 38px;
        height: 38px;
    }

    /* Ajuste de features grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Ajuste del newsletter */
    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        padding: 0.875rem;
    }

    /* Ajuste del footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets en modo vertical (768px - 900px) */
@media (min-width: 768px) and (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image-thumbnails {
        bottom: 8px;
        padding: 0.4rem 0.6rem;
    }

    .thumbnail {
        width: 32px;
        height: 32px;
    }

    .product-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
        align-items: flex-end;
        padding: 0.75rem;
    }

    .btn-quick-view,
    .btn-add-cart {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* Tablets grandes y iPads Pro (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .container {
        max-width: 1100px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Ajuste específico para pantallas táctiles */
@media (hover: none) and (pointer: coarse) {

    /* Mejorar la experiencia táctil en tablets */
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.96);
    }

    /* Aumentar área táctil para botones en tablets */
    .btn-quick-view,
    .btn-add-cart {
        min-width: 44px;
        min-height: 44px;
    }

    .thumbnail {
        min-width: 40px;
        min-height: 40px;
    }
}


/* ============================================
   HERO SECTION EN TABLETS HORIZONTAL
============================================ */

/* Tablets en horizontal (901px - 1024px) */
@media (min-width: 901px) and (max-width: 1024px) and (orientation: landscape) {

    .hero-section {
        min-height: 400px;
        background-attachment: scroll;
        /* Importante: quitar fixed */
        background-size: contain;
        /* Cambiar de cover a contain */
        background-repeat: no-repeat;
        background-position: center center;
        background-color: var(--primary-color);
        /* Color de respaldo */
    }

    /* Alternativa: cover pero con mejor control */
    /* 
    .hero-section {
        background-size: cover;
        background-position: center 20%;
    }
    */

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        max-width: 80%;
        background: rgba(0, 0, 0, 0.4);
        /* Mejor contraste del texto */
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

/* Tablets grandes horizontales (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1200px) and (orientation: landscape) {
    .hero-section {
        min-height: 450px;
        background-attachment: scroll;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: var(--primary-color);
    }

    .hero-content {
        background: rgba(0, 0, 0, 0.3);
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

/* Para iPads en horizontal específicamente */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero-section {
        min-height: 500px;
        background-size: cover;
        background-position: center 30%;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}