/*
Theme Name: Optipyme Solutions
Description: Tema personalizado para Optipyme Solutions - Tecnología que transforma empresas
Version: 2.1.0
Author: Optipyme Solutions
License: GPL v2 or later
Text Domain: optipyme
*/

/* ==========================================
   VARIABLES CSS GLOBALES CORREGIDAS
   ========================================== */
:root {
    /* Colores principales - UNIFICADOS */
    --primary-blue: #3b82f6;
    --primary-green: #10b981;
    --dark-blue: #2563eb;
    --light-blue: #93c5fd;
    --yellow: #fbbf24;
    --orange: #f97316;
    --red: #ef4444;
    
    /* Colores de texto */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Fondos */
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-900: #111827;
    
    /* Bordes */
    --border-gray: #e5e7eb;
    --border-gray-300: #d1d5db;
    
    /* 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);
    
    /* Bordes redondeados */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    
    /* Tipografía */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ==========================================
   RESET Y CONFIGURACIÓN BASE
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--dark-blue);
}

button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ==========================================
   COMPONENTES HERO - SIMPLIFICADO
   ========================================== */

.hero-background {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero title - SOLUCIÓN SIMPLIFICADA */
.hero-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s;
    line-height: 1.1;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: white;
}

.hero-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* REEMPLAZA el .hero-highlight existente (líneas 114-124) con esto: */

.hero-highlight {
    display: inline; /* CAMBIO PRINCIPAL: de 'block' a 'inline' */
    background: linear-gradient(to right, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0; /* CAMBIO: eliminar margin vertical */
    padding: 0; /* AGREGAR: sin padding */
    vertical-align: baseline; /* AGREGAR: alineación vertical */
    line-height: inherit; /* AGREGAR: hereda line-height */
    animation: pulse 2s infinite;
    position: relative;
    top: 6px; /* Cambia este valor: 1px, 2px, 3px, 4px, etc. */
}

/* TAMBIÉN agrega este CSS para .hero-line (nueva clase que usaste en el HTML): */

.hero-line {
    display: block;
    margin: 0.1em 0; /* Espaciado mínimo entre líneas */
}

/* Otros elementos hero */
.hero-logo {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    margin-bottom: 2rem;
}

.hero-logo.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.6s;
    font-size: 1.5rem;
    color: #dbeafe;
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.625;
}

.hero-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.9s;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-stats.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   UTILIDADES BÁSICAS
   ========================================== */

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

/* Layout */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Typography */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }
.text-5xl { font-size: var(--font-size-5xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* Colors */
.text-white { color: var(--text-white); }
.text-gray-500 { color: var(--text-secondary); }
.text-blue-500 { color: var(--primary-blue); }
.text-green-500 { color: var(--primary-green); }

.bg-white { background-color: var(--bg-white); }
.bg-gray-50 { background-color: var(--bg-gray-50); }
.bg-blue-500 { background-color: var(--primary-blue); }
.bg-green-500 { background-color: var(--primary-green); }

/* Spacing */
.p-4 { padding: var(--spacing-md); }
.p-6 { padding: var(--spacing-lg); }
.p-8 { padding: var(--spacing-xl); }

.px-4 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-8 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.mb-4 { margin-bottom: var(--spacing-md); }
.mb-8 { margin-bottom: var(--spacing-xl); }
.mt-4 { margin-top: var(--spacing-md); }

.gap-4 { gap: var(--spacing-md); }
.gap-6 { gap: var(--spacing-lg); }

/* Borders */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Transitions */
.transition { transition: all var(--transition-normal); }
.transition-colors { transition: color var(--transition-normal), background-color var(--transition-normal); }

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in-up { animation: fade-in-up 0.8s ease-out; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* ==========================================
   COMPONENTES ESPECÍFICOS
   ========================================== */

/* Service cards */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    background: rgba(255, 255, 255, 0.95);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--primary-blue);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-toast);
    max-width: 25rem;
}

.notification-success { background: var(--primary-green); }
.notification-error { background: var(--red); }

/* Form elements */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 31.25rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* ==========================================
   ACCESSIBILITY & PERFORMANCE
   ========================================== */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --primary-green: #008844;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* Print styles */
@media print {
    .notification,
    .btn,
    .animate-pulse,
    .animate-float {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .hero-highlight {
        color: black !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
    }
}
/* ==========================================
   AJUSTE ESPECÍFICO PARA PC
   ========================================== */

/* Ajuste de alineación vertical solo para PC */
@media (min-width: 1025px) {
    .hero-highlight {
        top: 16px; /* Baja TRANSFORMA solo en PC */
    }
}
/* ==========================================
   MÓDULOS PARA PÁGINAS HIJO
   ========================================== */

/* MÓDULO HERO */
.module-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    padding: 4rem 0;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.module-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-highlight {
    background: linear-gradient(to right, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* MÓDULO TEXTO + IMAGEN */
.module-text-image {
    padding: var(--spacing-3xl) 0;
}

.text-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.text-image-grid.reverse {
    direction: rtl;
}

.text-image-grid.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.text-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.text-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.text-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.image-container:hover img {
    transform: scale(1.05);
}

/* MÓDULO GALERÍA */
.module-gallery {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-gray-50);
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--text-white);
    font-weight: 600;
}

/* MÓDULO TARJETAS */
.module-cards {
    padding: var(--spacing-3xl) 0;
}

.cards-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cards-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    transition: all var(--transition-normal);
    text-align: center;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* MÓDULO TEXTO CENTRADO */
.module-text-center {
    padding: var(--spacing-3xl) 0;
    text-align: center;
    background: var(--bg-gray-50);
}

.text-center-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-center-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-center-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* MÓDULO CTA */
.module-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    padding: 4rem 0;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.module-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    margin: 0 0.5rem;
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

/* MÓDULO IMAGEN FULL WIDTH */
.module-image-full {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.module-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
}

.overlay-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1.25rem;
    max-width: 600px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .text-image-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-image-grid.reverse {
        direction: ltr;
    }

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

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

    .hero-title,
    .text-content h2,
    .gallery-title,
    .cards-title,
    .text-center-title,
    .cta-title {
        font-size: 2rem;
    }

    .btn {
        display: block;
        margin: 0.5rem 0;
    }

    .module-image-full {
        height: 40vh;
    }

    .overlay-content h2 {
        font-size: 2rem;
    }
}

/* Animaciones */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}