* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* FIX: Prevenir overflow */
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw; /* FIX CRÍTICO */
}

:root {
    --pink: #FFB6C1;
    --light-blue: #E6F3FF;
    --soft-pink: #FFF0F5;
    --white: #FFFFFF;
    --dark-text: #4A4A4A;
    --accent-pink: #FF69B4;
    --light-gray: #F8F9FA;
    --gold: #FFD700;
    --cream: #FFF8E7;
    --celeste: #87CEEB;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw; /* FIX CRÍTICO */
    margin: 0;
    padding: 0;
}

/* FIX: Contenedores responsive mejorados */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3 {
    color: #ff6b9d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.7;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-section.menu-section a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section.menu-section a:hover {
    color: #ff6b9d;
    border-left-color: #ff6b9d;
    transform: translateX(0.25rem);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #9c27b0);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 157, 0.25);
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info strong {
    color: #ff6b9d;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background: #2c3e50;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #e5eeef;
    font-size: 0.875rem;
    margin: 0;
}

/* WhatsApp Section */
.whatsapp-section {
    background: #25d366;
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 2rem;
}

.whatsapp-btn {
    background: white;
    color: #25d366;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    transform: scale(1.03);
}

/* Map Container */
.map-container {
    margin-top: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 20rem;
    border: none;
}

/* ========================================
   MEDIA QUERIES RESPONSIVE
======================================== */

/* Tablet landscape y desktop pequeño */
@media (max-width: 1200px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
   
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }
    
    .history-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .history-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
        gap: 2rem;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .nav-container {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .section {
        padding: clamp(3rem, 8vw, 4rem) 0;
    }
    
    .hero {
        padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 3vw, 1.5rem);
        min-height: 100vh;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
        text-align: center;
    }
    
    .footer-section.menu-section a {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container,
    .container-fluid {
        padding: 0 clamp(0.75rem, 2vw, 1rem);
    }
    
    .header {
        padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    }
    
    .nav-container {
        padding: 0 clamp(0.75rem, 2vw, 1rem);
    }
    
    .hero {
        padding: clamp(1.5rem, 4vw, 2rem) clamp(0.75rem, 2vw, 1rem);
    }
    
    .hero-content {
        padding: clamp(0.75rem, 2vw, 1rem);
    }
    
    .section {
        padding: clamp(2.5rem, 6vw, 3rem) 0;
    }
    
    .btn {
        max-width: 250px;
        padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.25rem, 3vw, 1.5rem);
        font-size: clamp(0.8rem, 1.8vw, 0.85rem);
    }
    
    .footer-content {
        padding: clamp(1.5rem, 4vw, 2rem) clamp(0.75rem, 2vw, 1rem);
        grid-template-columns: 1fr;
        gap: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .footer-section.menu-section a {
        border-left: none;
        border-bottom: 1px solid transparent;
        padding-left: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .footer-section.menu-section a:hover {
        border-left: none;
        border-bottom-color: #ff6b9d;
        transform: translateY(-2px);
    }
    
    .mobile-menu {
        padding: 1.5rem;
    }
    
    .mobile-menu a {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        margin: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    }
}

/* Mobile muy pequeño */
@media (max-width: 320px) {
    .container,
    .container-fluid {
        padding: 0 0.5rem;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 1rem 0.5rem;
    }
    
    .btn {
        max-width: 200px;
        min-width: 180px;
    }
    
    .footer-content {
        padding: 1.25rem 0.5rem;
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ========================================
   ANIMATIONS Y UTILIDADES
======================================== */

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(2.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes Responsive */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: clamp(0.25rem, 1vw, 0.5rem); }
.gap-2 { gap: clamp(0.5rem, 2vw, 1rem); }
.gap-3 { gap: clamp(0.75rem, 3vw, 1.5rem); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Break word utility */
.break-word {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive visibility */
.show-mobile {
    display: none;
}

.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block;
    }
    
    .hide-mobile {
        display: none;
    }
}

/* Messages */
.message {
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
    margin: clamp(1rem, 3vw, 1.5rem) 0;
    border-radius: clamp(0.25rem, 1vw, 0.5rem);
    display: none;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.spinner {
    width: clamp(1rem, 3vw, 1.5rem);
    height: clamp(1rem, 3vw, 1.5rem);
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: clamp(0.5rem, 1vw, 0.75rem);
}

/* Fix para imágenes responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix para videos responsive */
video {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: clamp(6px, 1vw, 10px);
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: clamp(2px, 0.5vw, 4px);
}

::-webkit-scrollbar-thumb:hover {
    background: #FF1493;
}

/* Selection Styles */
::selection {
    background: var(--accent-pink);
    color: white;
}

::-moz-selection {
    background: var(--accent-pink);
    color: white;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

/* Form Validation States */
.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input:user-valid,
.form-group select:user-valid,
.form-group textarea:user-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --accent-pink: #000;
        --dark-text: #000;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }

}

.container-fluid {
    width: 100%;
    max-width: 100vw;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
    margin: 0;
}

/* FIX: Header responsive mejorado */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--pink);
    transition: var(--transition);
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw; /* FIX CRÍTICO */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

/* FIX: Logo responsive */
.logo {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-image {
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    border-radius: 50%;
    object-fit: cover;
}

.logo .reposteria {
    color: var(--accent-pink);
}

.logo .belen {
    color: #019e97;
}

/* FIX: Navigation responsive */
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 0;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-pink);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--accent-pink);
}

/* FIX: Hamburger menu mejorado */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    background: none;
    border: none;
}

.hamburger span {
    width: 1.5rem;
    height: 2px;
    background: var(--dark-text);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
}

/* FIX: Mobile menu mejorado */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 2rem;
    box-sizing: border-box;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin: clamp(0.75rem, 2vw, 1.25rem) 0;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-pink);
}

/* Page System */
.page {
    display: none;
    padding-top: clamp(65px, 10vw, 80px); /* FIX: Padding fluido */
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* FIX: Hero Section Responsive */
.hero {
    width: 100%;
    max-width: 100vw; /* FIX CRÍTICO */
    min-height: 100vh;
    background: url('../assets/images/hero/hero4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    padding: clamp(2rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
    overflow: hidden;
}

.hero-content {
    max-width: 50rem;
    width: 100%;
    z-index: 2;
    position: relative;
    padding: clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title .reposteria {
    color: var(--accent-pink);
}

.hero-title .belen {
    color: #019e97;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* FIX: Botones responsive */
.hero-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: clamp(10rem, 25vw, 12rem);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-pink);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #FF1493;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-pink);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-pink);
    color: white;
    transform: translateY(-2px);
    border-color: var(--accent-pink);
}

.btn-white {
    background: white;
    color: var(--accent-pink);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--accent-pink);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent-pink);
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4.5rem;
    height: 3px;
    background: linear-gradient(to right, var(--pink), var(--accent-pink));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--dark-text);
    max-width: 35rem;
    margin: 0 auto 3rem;
    opacity: 0.8;
}

/* FIX: Features Grid Responsive */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 4rem;
    width: 100%;
}

.feature-card {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
    background: linear-gradient(135deg, var(--cream) 0%, var(--soft-pink) 100%);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--pink);
    height: auto;
    min-height: 20rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--pink);
    width: 100%;
    height: fit-content;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-0.2rem);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3; /* Ratio consistente para todas las imágenes */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

/* Overlay para casos donde la imagen no llene completamente */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--light-blue) 100%);
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    position: relative;
    z-index: 2;
}

.product-info {
    padding: 1rem;
    box-sizing: border-box;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 1rem;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-pink);
}

/* Desktop específico */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        gap: 1.25rem;
    }
    
      .product-image {
        aspect-ratio: 1.62/1;
    }
    
    .product-info {
        padding: 0.9rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.75rem;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
}

/* Laptops medianos */
@media (min-width: 900px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .product-image {
        aspect-ratio: 1.62/1;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .product-description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        font-size: 0.8rem;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 899px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
  .product-image {
        aspect-ratio: 1.62/1;
    }
    
    .product-info {
        padding: 1.1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.82rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
}

/* Móviles grandes y tablets pequeñas */
@media (min-width: 600px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
     .product-image {
        aspect-ratio: 1.62/1;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
}

/* Móviles */
@media (max-width: 599px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .product-card {
        border-radius: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-image {
        aspect-ratio: 1.62/1; /* Más rectangular para móviles */
    }
    
    .product-image img {
        object-fit: contain; /* Usar cover en móviles también */
        border-radius: 1rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    /* Estilos adicionales para móviles */
    .container {
        padding: 0 1.5rem;
    }
    
    .container-fluid {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 2.5rem 1.5rem;
    }
    
    .history-text,
    .history-image {
        padding: 0 1.5rem;
    }
    
    .testimonials-slider {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        padding: 3rem 1.5rem;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 2.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        min-width: 10rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .cta-buttons {
        gap: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .footer-content {
        padding: 2.5rem 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section.menu-section a {
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .products-grid {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
   .product-image {
        aspect-ratio: 1.62/1;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
}

/* About Section */
.about-section {
    background: var(--white);
    padding: 6rem 0;
}

.about-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--dark-text);
    text-align: justify;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* History Section */
.history {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #FF1493 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.history-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.history-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.history-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* texto más ancho, imagen más pequeña */
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.history-text {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    line-height: 1.8;
    color: white;
    text-align: justify;
    padding-left: 2rem; /* empuja el texto hacia la derecha */
}

.history-text p {
    margin-bottom: 1.5rem;
}

.history-text strong {
    color: #FFE4E1;
    font-weight: 700;
}

.history-highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid white;
    margin: 2rem 0;
}

.history-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    margin-left: auto; /* alinea la imagen hacia la derecha */
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.history-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    margin-left: auto;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 192, 203, 0.3); /* fondo sutil para placeholder */
}

/* Responsive para tablets medianas (800px - 1024px) */
@media (max-width: 1024px) and (min-width: 801px) {
    .history-content {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
    
    .history-text {
        text-align: justify;
        padding-left: 1rem;
    }
}

/* Responsive para tablets */
@media (max-width: 800px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .history-text {
        padding-left: 0;
        text-align: justify; /* mantener justificado en tablet */
        order: 2; /* texto después de la imagen en móvil */
    }
    
    .history-image,
    .history-placeholder {
        margin: 0 auto;
        max-width: 350px;
        order: 1; /* imagen primero en móvil */
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .history {
        padding: 4rem 0;
    }
    
    .history-content {
        gap: 2rem;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .history-text {
        font-size: 0.85rem;
        line-height: 1.6;
        text-align: justify; /* mantener justificado también en móviles */
    }
    
    .history-text p {
        margin-bottom: 1rem;
    }
    
    .history-image,
    .history-placeholder {
        max-width: 280px;
        aspect-ratio: 4 / 3;
    }
    
    .history-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 360px) {
    .history-content {
        padding: 0 0.5rem;
    }
    
    .history-text {
        font-size: 0.8rem;
        text-align: justify; /* mantener justificado incluso en pantallas muy pequeñas */
    }
    
    .history-image,
    .history-placeholder {
        max-width: 250px;
    }
}

/* Responsive específico para dispositivos problemáticos */

/* iPad Air (820x1180) */
@media (min-width: 820px) and (max-width: 820px) and (min-height: 1180px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 700px;
    }
    
    .history-text {
        text-align: justify;
        padding-left: 0;
        order: 2;
    }
    
    .history-image,
    .history-placeholder {
        margin: 0 auto;
        max-width: 400px;
        order: 1;
    }
}

/* iPad Pro (1024x1366) */
@media (min-width: 1024px) and (max-width: 1024px) and (min-height: 1366px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 800px;
    }
    
    .history-text {
        text-align: justify;
        padding-left: 0;
        order: 2;
        font-size: 1rem;
    }
    
    .history-image,
    .history-placeholder {
        margin: 0 auto;
        max-width: 450px;
        order: 1;
    }
}

/* Surface Pro (912x1368) */
@media (min-width: 912px) and (max-width: 912px) and (min-height: 1368px) {
    .history-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 750px;
    }
    
    .history-text {
        text-align: justify;
        padding-left: 0;
        order: 2;
    }
    
    .history-image,
    .history-placeholder {
        margin: 0 auto;
        max-width: 420px;
        order: 1;
    }
}

/* Galaxy Tab S7 (853x1280) - Rango más amplio */
@media (min-width: 850px) and (max-width: 860px) and (min-height: 1270px) and (max-height: 1290px) {
    .history {
        padding: 5rem 0;
    }
    
    .history-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem;
        max-width: 100% !important;
        margin: 0 auto;
        padding: 0 2rem !important;
    }
    
    .history-text {
        text-align: justify !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 600px !important;
        font-size: 0.9rem;
        order: 2 !important;
    }
    
    .history-image,
    .history-placeholder {
        display: block !important;
        margin: 0 auto !important;
        width: 320px !important;
        max-width: 320px !important;
        order: 1 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateX(0) !important;
    }
}

/* iPad Mini horizontal (1024x600) */
@media (min-width: 1024px) and (max-width: 1024px) and (max-height: 600px) {
    .history {
        padding: 3rem 0;
    }
    
    .history-content {
        grid-template-columns: 1.3fr 0.7fr;
        gap: 3rem;
        align-items: center;
    }
    
    .history-text {
        text-align: justify;
        padding-left: 1rem;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .history-image,
    .history-placeholder {
        margin: 0 auto;
        max-width: 280px;
        aspect-ratio: 4 / 3;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem; /* Reducido de 1rem a 0.5rem */
    margin-top: 2rem;
    max-width: 1000px; /* Limita el ancho total */
    margin-left: auto;
    margin-right: auto;
}

/* Tablets grandes: 2 por fila */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Tablets específicas con problemas de espacio */
@media (max-width: 900px) and (min-width: 750px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        max-width: 600px;
    }
    .gallery-item {
        max-width: 280px;
    }
}

/* Móviles: 1 por fila */
@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1;
    max-width: 270px; /* Limita el tamaño máximo */
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center; /* Centra en el grid */
}

.gallery-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fce4ec, #fff8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b9d;
    font-size: 0.9rem;
    font-weight: 500;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-item.hidden {
    display: none;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ff6b9d;
    background: white;
    color: #ff6b9d;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover, 
.filter-btn.active {
    background: #ff6b9d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);
}

/* FIX: Contact Section Responsive */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* CAMBIO: Específico 2 columnas */
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
    width: 100%;
    max-width: 1000px; /* AGREGADO: Limita el ancho máximo */
    margin: 0 auto; /* AGREGADO: Centra el contenedor */
}

/* Dispositivos muy grandes */
@media (min-width: 1400px) {
    .contact-container {
        max-width: 900px;
        gap: 2rem;
    }
}

/* Móviles: 1 columna */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
        max-width:750px;
    }

    .contact-item{
        max-width: 300px;
    }
}

.contact-form {
    background: white;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--pink);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: clamp(0.75rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    border: 2px solid var(--pink);
    border-radius: 0.625rem;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    transition: var(--transition);
    font-family: inherit;
    background: var(--light-gray);
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: white;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.15);
}

.contact-info {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--light-blue) 100%);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 1.25rem;
    color: var(--dark-text);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block; /* CAMBIO: Asegura que se muestre */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-details strong {
    color: var(--dark-text);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #FF1493 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-content {
    max-width: 45rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.cta-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
    padding: clamp(4rem, 8vw, 6rem) 0;
    overflow: hidden;
}

.testimonials-slider {
    max-width: 50rem;
    margin: 0 auto;
    position: relative;
    min-height: auto; /* Cambio: altura automática para adaptarse al contenido */
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    min-height: fit-content; /* Cambio: ajustar al contenido */
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative; /* Cambio: permite que tome espacio natural cuando está activo */
}

.stars {
    color: #ffc107;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.testimonial-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    color: var(--dark-text);
    max-width: 45rem; /* Limita el ancho para mejor legibilidad */
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author strong {
    color: var(--dark-text);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--dark-text);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    display: block;
    opacity: 0.7;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: clamp(2rem, 4vw, 2.5rem);
    padding-bottom: 1rem; /* Espacio adicional en la parte inferior */
}

.testimonial-nav-btn {
    width: clamp(0.8rem, 2vw, 1rem);
    height: clamp(0.8rem, 2vw, 1rem);
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-nav-btn.active {
    background: var(--accent-pink);
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .testimonials-section {
        padding: 3rem 0 4rem 0; /* Más espacio inferior en móviles */
    }
    
    .testimonials-slider {
        padding: 0 1rem;
    }
    
    .testimonial-slide {
        padding: 1rem 0.5rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .testimonials-nav {
        margin-top: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Responsive para dispositivos muy pequeños */
@media (max-width: 360px) {
    .testimonials-section {
        padding: 2.5rem 0 3.5rem 0;
    }
    
    .testimonial-slide {
        padding: 1rem 0.25rem;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .testimonials-nav {
        gap: 0.5rem;
        padding-bottom: 2rem;
    }
}

/* JavaScript helper para altura dinámica */
.testimonials-slider.calculating-height {
    min-height: 20rem; /* altura temporal mientras se calcula */
}

.testimonials-slider.height-calculated {
    min-height: var(--calculated-height, auto);
    transition: min-height 0.3s ease;
}

/* FIX: Footer Responsive Mejorado */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 0;
    margin-top: auto;
}

.footer-content {
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #ff6b9d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.7;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-section.menu-section a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section.menu-section a:hover {
    color: #ff6b9d;
    border-left-color: #ff6b9d;
    transform: translateX(0.25rem);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #9c27b0);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 157, 0.25);
}

.footer-bottom {
    background: #2c3e50;
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #e5eeef;
    font-size: 0.875rem;
    margin: 0;
}

/* Media Queries para mejorar la responsividad */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        padding: 4rem 2rem;
    }
}

@media (max-width: 767px) {
    .footer-content {
        padding: 2.5rem 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section.menu-section a {
        border-left: none;
        border-bottom: 1px solid transparent;
        padding-left: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .footer-section.menu-section a:hover {
        border-left: none;
        border-bottom-color: #ff6b9d;
        transform: translateY(-2px);
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 0.75rem;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .footer-bottom {
        padding: 1.5rem 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Mejoras adicionales para pantallas muy pequeñas */
@media (max-width: 320px) {
    .footer-content {
        padding: 1.5rem 0.5rem;
    }
    
    .footer-section h3 {
        font-size: 0.95rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* WhatsApp Section */
.whatsapp-section {
    background: #FF1493;
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 2rem;
}

.whatsapp-btn {
    background: white;
    color: #019e97;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    transform: scale(1.03);
}

/* Map Container */
.map-container {
    margin-top: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 20rem;
    border: none;
}
 
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .container-fluid {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
    
    .history-text,
    .history-image {
        padding: 0 1rem;
    }
    
    .testimonials-slider {
        padding: 0 1rem;
    }
    
    .cta-content {
        padding: 0 1rem;
    }

}

.page {
    display: none;
    padding-top: 65px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(2.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-links {
    display: flex;
    gap: 0.875rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--accent-pink);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.footer-bottom {
    border-top: 1px solid #666;
    padding-top: 1.75rem;
    margin-top: 2.5rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design Mejorado */
@media (max-width: 1200px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .history-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .history-image {
        order: -1;
    }

   

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        min-height: auto;
    }
}


@media (max-width: 480px) {
    .hero-content {
        padding: 0.875rem;
    }

    .feature-card {
        padding: 1.75rem 1.25rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        max-width: 200px;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 3rem 0.875rem;
    }

    .footer-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --text-color: #000;
        --text-light: #333;
        --bg-color: #fff;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: clamp(6px, 1vw, 10px);
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: clamp(2px, 0.5vw, 4px);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Selection Styles */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* Form Validation States */
.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input:user-valid,
.form-group select:user-valid,
.form-group textarea:user-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.message {
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 1.5rem);
    margin: clamp(1rem, 3vw, 1.5rem) 0;
    border-radius: clamp(0.25rem, 1vw, 0.5rem);
    display: none;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Spinner */
.spinner {
    width: clamp(1rem, 3vw, 1.5rem);
    height: clamp(1rem, 3vw, 1.5rem);
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: clamp(0.5rem, 1vw, 0.75rem);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: clamp(0.4rem, 1vw, 0.75rem) clamp(0.6rem, 1.5vw, 1rem);
    border-radius: clamp(0.2rem, 0.5vw, 0.4rem);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: clamp(0.2rem, 0.5vw, 0.4rem) clamp(0.4rem, 1vw, 0.75rem);
    background: var(--primary-color);
    color: white;
    border-radius: clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 600;
}

/* Card Hover Effects */
.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-hover);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility Classes Responsive */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: clamp(0.25rem, 1vw, 0.5rem); }
.gap-2 { gap: clamp(0.5rem, 2vw, 1rem); }
.gap-3 { gap: clamp(0.75rem, 3vw, 1.5rem); }

.m-0 { margin: 0; }
.m-1 { margin: clamp(0.25rem, 1vw, 0.5rem); }
.m-2 { margin: clamp(0.5rem, 2vw, 1rem); }
.m-3 { margin: clamp(0.75rem, 3vw, 1.5rem); }

.p-0 { padding: 0; }
.p-1 { padding: clamp(0.25rem, 1vw, 0.5rem); }
.p-2 { padding: clamp(0.5rem, 2vw, 1rem); }
.p-3 { padding: clamp(0.75rem, 3vw, 1.5rem); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

