/* ================================
   VARIABLES Y RESET
   ================================ */

:root {
    /* Colores principales */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #738cfa 0%, #aa63f1 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Colores de fondo */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --bg-card: #ffffff;
    
    /* Colores de texto */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* ================================
   DARK MODE VARIABLES
   ================================ */

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    --bg-card: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.95);
}



[data-theme="dark"] .footer {
    background: var(--bg-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ================================
   UTILIDADES
   ================================ */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-primary-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .hero-buttons .btn-primary {

    background-color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

[data-theme="dark"] .hero-buttons .btn-secondary {
    background-color: var(--bg-dark);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}


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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ================================
   HEADER / NAVEGACIÓN
   ================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: -0.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    border: none;
    border-bottom: none;
    width: auto;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link .active {
    background-color: transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary-nav {
    background: var(--gradient-primary);
    color: white;
    padding: 0.625rem 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ================================
   BOTÓN DE DARK MODE
   ================================ */

.theme-toggle {
    position: relative;
    width: 45px;
    height: 45px;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    overflow: hidden;
    margin-right: var(--spacing-sm);
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    position: absolute;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ================================
   ELEMENTOS DEL MENÚ MÓVIL
   ================================ */

/* Ocultar elementos del menú móvil en desktop */
.nav-menu-header,
.nav-close,
.nav-overlay {
    display: none;
}



/* ================================
   HERO SECTION
   ================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8ea 0%, #c697f6 100%);
    overflow: hidden;
    padding-top: 80px;
}
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e293b 0%, #4c1d95 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

[data-theme="dark"] .hero-badge {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero-badge i, span {
    color: black;
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

[data-theme="dark"] .hero-title {
    color: black;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

[data-theme="dark"] .hero-description {
    color: black !important;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

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

.hero-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

[data-theme="dark"] .hero-buttons .btn-secondary {
    background: var(--bg-dark);
    color: var(--primary-color);
    border:  2px solid var(--primary-color) !important;}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

[data-theme="dark"] .stat-number {
    color: black;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

[data-theme="dark"] .floating-card {
    box-shadow: var(--shadow-2xl);
    background-color: var(--bg-primary);
    
    
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card p {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

[data-theme="dark"] .floating-card p {
    color: white;
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 50px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    left: 100px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ================================
   ASISTENTE IA
   ================================ */

.ai-assistant {
    background: var(--gradient-primary);
    padding: var(--spacing-lg) 0;
    color: white;
}

.ai-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.ai-icon {
    font-size: 3rem;
    opacity: 0.9;
}

[data-theme="dark"] .ai-icon {
    color: var(--bg-dark);
}

.ai-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

[data-theme="dark"] .ai-text h3, .ai-text p {
    color: var(--bg-dark);
}

.ai-text p {
    opacity: 0.9;
}

.btn-ai {
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-ai {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ================================
   CATEGORÍAS
   ================================ */

.categorias {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

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

.categoria-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

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

.categoria-icon {
    width: 170px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.categoria-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.categoria-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.categoria-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.categoria-link:hover {
    gap: 0.75rem;
}

.show-products {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.show-products p {
    display: inline-flex;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-lg) 0 0;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .show-products p {
        max-width: 100%;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .show-products p {
        font-size: 0.85rem;
    }
}

/* ================================
   SERVICIOS
   ================================ */

.servicios {
    padding: var(--spacing-2xl) 0;
}

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

.servicio-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
}

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

.servicio-card.destacado {
    background: var(--gradient-primary);
    color: white;
}

.servicio-card.destacado .servicio-icon {
    background: white;
    color: var(--primary-color);
}

.badge-destacado {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-warm);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.servicio-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--spacing-md);
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.servicio-card p {
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.servicio-lista {
    list-style: none;
}

.servicio-lista li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.85;
}

.servicio-lista i {
    color: var(--secondary-color);
}

.servicio-card.destacado .servicio-lista i {
    color: white;
}

/* ================================
   SOBRE NOSOTROS
   ================================ */

.nosotros {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.nosotros-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
}

.nosotros-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    gap: 1rem;
}

[data-theme="dark"] .nosotros-badge {
    background: var(--bg-primary);
}

.nosotros-badge i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nosotros-badge strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nosotros-badge span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.nosotros-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.nosotros-features {
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

[data-theme="dark"] .feature-item {
    background: var(--bg-primary);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

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

/* ================================
   TESTIMONIOS
   ================================ */

.testimonios {
    padding: var(--spacing-2xl) 0;
}

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

.testimonio-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.testimonio-rating {
    margin-bottom: var(--spacing-md);
    color: #fbbf24;
}

.testimonio-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.author-info span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ================================
   CONTACTO
   ================================ */

.contacto {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
}

.contacto-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.contacto-items {
    margin-bottom: var(--spacing-lg);
}

.contacto-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}
[data-theme="dark"] .contacto-item {
    background: var(--bg-primary);
}

.contacto-item:hover {
    box-shadow: var(--shadow-md);
}

.contacto-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contacto-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contacto-text a,
.contacto-text span {
    color: var(--text-secondary);
}

.contacto-text a:hover {
    color: var(--primary-color);
}

.horario-box {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .horario-box {
    background: var(--bg-primary);
}

.horario-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.horario-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.horario-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contacto-form-container {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .contacto-form-container {
    background: var(--bg-primary);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.footer-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    opacity: 0.7;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

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

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter-text {
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
}

.footer-newsletter {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter button {
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.footer-newsletter button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

/* ================================
   MODAL CHAT
   ================================ */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.chat-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    padding: var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chat-header-info i {
    font-size: 2rem;
}

.chat-header-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.125rem;
}

.status-online {
    font-size: 0.75rem;
    opacity: 0.9;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-body {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
    max-height: 400px;
}

.chat-message {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-content p {
    background: var(--bg-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
}

.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-option {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.quick-option:hover {
    background: var(--primary-color);
    color: white;
}

.chat-footer {
    padding: var(--spacing-md);
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: var(--spacing-sm);
}

.chat-footer input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-family: inherit;
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-send {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-send:hover {
    transform: scale(1.05);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .hero-content,
    .nosotros-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

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

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

@media (max-width: 908px) {
    
    .hero-content {
        display: flex;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        text-align: center;
        margin: 0.5rem auto 1rem;
        max-width: 680px; /* ajusta según necesites */
    }

    /* Centrar botones en móvil */
    .hero-buttons {
        flex-direction: column;
        align-items: center; /* centra los botones en la columna */
        gap: 0.75rem;
    }

    .btn-primary {
        width: 200px;
        display: block;
        margin: 0.5rem auto; /* centra horizontalmente */
        position: relative;
    }
    .btn-secondary {
        width: 250px;
        display: block;
        margin: 0.5rem auto; /* centra horizontalmente */
        position: relative;
        left: auto; /* eliminar desplazamiento previo */
        text-align: center;
    }

    .hero-stats {
        margin-bottom: 70px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Ocultar menú desktop en móvil */
    .nav-container > .nav-menu {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        max-width: 320px;
        padding: 0;
        box-shadow: var(--shadow-2xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: stretch;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        right: 0;
    }
    
    /* Header del menú móvil - MOSTRAR SOLO EN MÓVIL */
    .nav-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        z-index: 10000;
        
        background: var(--gradient-primary);
        color: white;
        margin-bottom: 1rem;
    }
    
    .nav-menu-logo h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
        color: white;
    }
    
    .nav-menu-logo span {
        color: white;
    }
    
    .nav-menu-logo p {
        font-size: 0.75rem;
        opacity: 0.9;
        margin: 0;
    }
    
    /* Botón de cerrar menú - MOSTRAR SOLO EN MÓVIL */
    .nav-close {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 1.25rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: var(--transition-base);
    }
    
    .nav-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    
    .nav-close:active {
        transform: rotate(90deg) scale(0.9);
    }
    
    /* Enlaces del menú móvil */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--text-primary);
        font-size: 1rem;
        font-weight: 500;
        transition: var(--transition-base);
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--bg-secondary);
        color: var(--primary-color);
        padding-left: 2rem;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    /* Botón de pedido en móvil */
    .nav-menu .btn-primary-nav {
        margin: 1.5rem;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-lg);
        width: calc(100% - 3rem);
    }
    
    /* Overlay para cerrar el menú - DETRÁS DEL MENÚ */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 5;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .ai-content {
        flex-direction: column;
        text-align: center;
    }

    .categorias-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .categorias-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   TRANSICIONES ADICIONALES DARK MODE
   ================================ */

.categoria-card,
.servicio-card,
.testimonio-card,
.contacto-item,
.feature-item,
.contacto-form-container,
.horario-box,
.footer-social a,
.form-group input,
.form-group select,
.form-group textarea {
    transition: all var(--transition-base), var(--theme-transition);
}

/* Ajustes responsive para botón dark mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}

/* Animaciones para elementos al hacer scroll */
.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras visuales en dark mode */
[data-theme="dark"] .btn-secondary {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .hero-buttons .btn-secondary {
    border-color: white;
    color: white;
}

[data-theme="dark"] .hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Estilos para el chat en dark mode */
[data-theme="dark"] .chat-modal-content {
    background: var(--bg-card);
}

[data-theme="dark"] .message-content p {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .chat-footer {
    border-top-color: var(--text-light);
}

[data-theme="dark"] .chat-footer input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--text-light);
}

/* User message styles */
.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content p {
    background: var(--gradient-primary);
    color: white;
}

.user-message .message-avatar {
    background: var(--secondary-color);
}

/* ================================
   ESTILOS ADICIONALES MENÚ MÓVIL
   ================================ */


/* Dark mode para menú móvil */


[data-theme="dark"] .nav-menu li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}



/* Icono del menú móvil con animación suave */
.nav-menu .nav-link {
    position: relative;
    overflow: hidden;
}



.nav-menu .nav-link:hover::before,
.nav-menu .nav-link.active::before {
    transform: translateX(0);
}

/* Mejora para pantallas pequeñas */
@media (max-width: 480px) {
    .nav-menu {
        max-width: 280px;
    }
    
    .nav-menu-header {
        padding: 1.25rem;
    }
    
    .nav-menu-logo h2 {
        font-size: 1.25rem;
    }
}

/* Animación de entrada del menú */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nav-menu.active {
        animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}