/* ==========================================================================
   SYSTEM DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: hsl(210, 8%, 15%); /* Gris Oscuro */
    --bg-secondary: hsl(210, 8%, 10%); /* Gris Muy Oscuro */
    --bg-tertiary: hsl(210, 8%, 20%); /* Gris de Contraste */
    --accent-primary: hsl(45, 100%, 48%); /* Amarillo Vibrante (GTL) */
    --accent-primary-hover: hsl(45, 100%, 42%);
    --accent-primary-glow: hsla(45, 100%, 48%, 0.2);
    --accent-secondary: hsl(45, 100%, 48%);
    --accent-secondary-hover: hsl(45, 100%, 42%);
    --accent-whatsapp: hsl(142, 70%, 45%);
    --accent-whatsapp-hover: hsl(142, 70%, 38%);
    
    /* Text Colors */
    --text-primary: hsl(0, 0%, 100%); /* Blanco Puro */
    --text-secondary: hsl(0, 0%, 90%);
    --text-muted: hsl(0, 0%, 75%);
    
    /* Typography */
    --font-headers: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --header-height: 80px;

    /* Borders & Shadow */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --border-color: hsla(0, 0%, 25%, 0.4);
    --border-light: hsla(0, 0%, 60%, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px 0 var(--accent-primary-glow);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: linear-gradient(135deg, hsl(210, 8%, 20%), hsl(210, 8%, 10%)) no-repeat fixed;
    background-size: cover;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-headers);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-primary-glow);
    color: var(--accent-primary);
    border: 1px solid hsla(174, 90%, 41%, 0.3);
    border-radius: 50px;
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.link-underlined {
    position: relative;
    color: var(--accent-primary);
    font-weight: 600;
}
.link-underlined::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-primary);
    transform-origin: bottom right;
    transition: transform var(--transition-normal);
}
.link-underlined:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px; /* Estilo cápsula o píldora */
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    gap: 0.75rem;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #000000; /* Texto en Negro */
}
.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary-whatsapp {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary-whatsapp:hover {
    background-color: hsla(142, 70%, 45%, 0.1);
    border-color: var(--accent-whatsapp);
    color: hsl(142, 70%, 65%);
    transform: translateY(-2px);
}
.btn-secondary-whatsapp:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

/* Spinner for loading state */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
.hidden {
    display: none !important;
}

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

/* ==========================================================================
   GLASSMORPHIC HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    height: 70px;
    background-color: rgba(15, 23, 42, 0.9);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    animation: pulseLogo 3s infinite alternate;
}
.logo-text {
    font-family: var(--font-headers);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}
.logo-subtext {
    color: var(--accent-primary);
}

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

.nav-menu a {
    font-family: var(--font-headers);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-cta {
    background-color: var(--accent-primary-glow);
    color: var(--accent-primary) !important;
    border: 1px solid hsla(174, 90%, 41%, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal) !important;
}
.nav-cta:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary) !important;
    border-color: var(--accent-primary);
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   BLOQUE 1: HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-background-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background-color: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation: floatBlob1 20s infinite alternate;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--accent-secondary);
    bottom: -150px;
    left: -150px;
    animation: floatBlob2 25s infinite alternate;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Hero Visual Styles Removed - Clean Minimal Layout */

/* ==========================================================================
   BLOQUE 2: LOS DOLORES DE LA PYME
   ========================================================================== */
.dolores-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.dolores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dolor-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: all var(--transition-normal);
}

.dolor-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.dolor-icon-container {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.dolor-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.dolor-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   BLOQUE 3: NUESTRAS SOLUCIONES
   ========================================================================== */
.soluciones-section {
    padding: 8rem 0;
}

.soluciones-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.solucion-item {
    background-color: var(--bg-secondary);
    border: 1px solid hsla(45, 100%, 48%, 0.35); /* Bordes sutiles en amarillo */
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.solucion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-normal);
}

.solucion-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(242, 183, 5, 0.15);
}

.solucion-item:hover::before {
    transform: scaleY(1);
}

.solucion-body {
    position: relative;
}

.solucion-num {
    font-family: var(--font-headers);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-primary-glow);
    position: absolute;
    top: -1.5rem;
    right: 0;
    user-select: none;
}

.solucion-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    max-width: 80%;
}

.benefit-lead {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 85%;
}

.solucion-bullets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.solucion-bullets li {
    display: flex;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.solucion-bullets svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ==========================================================================
   BLOQUE 4: POR QUÉ ELEGIRNOS
   ========================================================================== */
.nosotros-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pilar-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.pilar-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.pilar-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--accent-primary-glow);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem auto;
}

.pilar-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.pilar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   BLOQUE 5: PRUEBA SOCIAL
   ========================================================================== */
.testimonios-section {
    padding: 8rem 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.testimonio-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
}

.quote-icon {
    font-family: var(--font-headers);
    font-size: 6rem;
    color: var(--accent-primary-glow);
    position: absolute;
    top: -1rem;
    left: 2rem;
    line-height: 1;
    pointer-events: none;
}

.testimonio-text {
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-primary);
}

.testimonio-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
}

.author-name {
    font-family: var(--font-headers);
    font-weight: 600;
    color: var(--accent-secondary);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   BLOQUE 6: FORMULARIO DE CIERRE
   ========================================================================== */
.contacto-section {
    padding: 8rem 0;
    background-color: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    gap: 1.25rem;
}

.detail-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.detail-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.detail-item a:hover {
    color: var(--accent-primary);
}

/* Form Container Card */
.contact-form-container {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.diagnostico-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group label {
    font-family: var(--font-headers);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: var(--bg-tertiary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.form-group textarea {
    resize: vertical;
}

.form-status {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==========================================================================
   BLOQUE 7: FOOTER
   ========================================================================== */
.main-footer {
    background-color: hsl(0, 0%, 4%);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.main-footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.footer-contact a:hover {
    color: var(--accent-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   FLOATING ELEMENTS (WHATSAPP)
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent-whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    animation: pulseWhatsapp 2s infinite;
}

.floating-whatsapp:hover {
    background-color: var(--accent-whatsapp-hover);
    transform: scale(1.1) rotate(10deg);
}

/* ==========================================================================
   ANIMATIONS KEYFRAMES
   ========================================================================== */
@keyframes pulseLogo {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--accent-primary-glow)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 10px var(--accent-primary-glow)); }
}

@keyframes pulseWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -30px) scale(1.1); }
    100% { transform: translate(-20px, 40px) scale(0.9); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 40px) scale(0.95); }
    100% { transform: translate(40px, -20px) scale(1.05); }
}

@keyframes drawSparkline {
    to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   SCROLL REVEAL EFFECTS (SUPPORTED BY JS)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Socials in Header & Footer */
.header-socials, .footer-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-socials {
    margin-top: 1.5rem;
}

.social-icon-link {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.social-icon-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--accent-primary-glow);
}

@media (max-width: 768px) {
    .header-socials {
        display: none;
    }
}

/* Down to tablets styling adaptations */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    
    .hero-container {
        gap: 2rem;
    }
    
    .dolores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solucion-bullets {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Mobile Nav Styles */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-primary);
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        padding: 3rem 1.5rem;
        z-index: 998;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
        display: block;
        padding: 0.5rem 0;
    }
    
    .nav-cta {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Toggle active animation */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .solucion-item {
        padding: 2rem;
    }
    
    .solucion-num {
        font-size: 3rem;
        top: -1rem;
    }
}

/* ==========================================================================
   BLOQUE NUEVO: CARRUSEL DE IMÁGENES
   ========================================================================== */
.carrusel-section {
    padding: 3rem 0;
    background-color: transparent; /* Fondo transparente */
    position: relative;
    z-index: 10;
}

.carrusel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg); /* Esquinas sutilmente redondeadas */
    box-shadow: var(--shadow-md);
}

.carrusel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carrusel-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-img {
    width: 100%;
    height: 480px; /* Tamaño homogéneo */
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Flechas de navegación (ocultas por defecto, visibles en hover) */
.carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(20, 20, 20, 0.65);
    color: #ffffff;
    border: 1px solid var(--border-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0; /* Ocultas en reposo */
    transition: all var(--transition-normal);
}

.arrow-left {
    left: 1.5rem;
}

.arrow-right {
    right: 1.5rem;
}

.carrusel-arrow:hover {
    background-color: var(--accent-primary);
    color: #000000;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Indicadores de paginación (dots) */
.carrusel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
    opacity: 0; /* Ocultos en reposo */
    transition: all var(--transition-normal);
}

.carrusel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carrusel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carrusel-dot.active {
    background-color: var(--accent-primary);
    width: 24px;
    border-radius: 5px; /* Estilo píldora */
}

/* Visibilidad de controles en Hover */
.carrusel-viewport:hover .carrusel-arrow,
.carrusel-viewport:hover .carrusel-dots {
    opacity: 1; /* Visibles en hover */
}

/* Adaptación responsive */
@media (max-width: 768px) {
    .carrusel-section {
        padding: 2rem 0;
    }
    
    .carrusel-img {
        height: 280px; /* Tamaño reducido en móvil */
    }
    
    .carrusel-arrow {
        width: 40px;
        height: 40px;
        opacity: 0.8; /* Mostrar de forma semi-permanente en móvil para usabilidad táctil */
    }
    
    .carrusel-dots {
        opacity: 0.8;
    }
    
    .arrow-left {
        left: 0.75rem;
    }
    
    .arrow-right {
        right: 0.75rem;
    }
}



