/* ================================
   PLEASEPOINT IT DESIGN SYSTEM
   Common CSS for all pages
   ================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    /* Colores primarios */
    --primary-blue: #00d4ff;
    --primary-dark: #0099cc;

    /* Backgrounds oscuros - 3 opciones */
    --dark-bg: #0a0a0a;        /* Negro profundo */
    --dark-bg-alt: #141414;     /* Gris muy oscuro */
    --dark-bg-soft: #1a1a1a;    /* Gris oscuro suave */

    /* Secundarios */
    --dark-secondary: #16213e;
    --dark-card: rgba(255, 255, 255, 0.05);

    /* Textos */
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-muted: #999999;

    /* Bordes */
    --border-light: rgba(255, 255, 255, 0.1);

    /* Colores de estado */
    --aws-orange: #ff9900;
    --success-green: #00d084;
    --warning-yellow: #ffb800;


    /* Typography */
    --font-primary:  "Nunito Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 8px 25px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 212, 255, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-white);
    background: var(--dark-bg-alt);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Backgrounds oscuros principales */
.bg-dark {
    background-color: var(--dark-bg);
}

.bg-dark-alt {
    background-color: var(--dark-bg-alt);
}

.bg-dark-soft {
    background-color: var(--dark-bg-soft);
}

/* Backgrounds secundarios */
.bg-dark-secondary {
    background-color: var(--dark-secondary);
}

.bg-dark-card {
    background-color: var(--dark-card);
}

/* Backgrounds de colores */
.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-aws-orange {
    background-color: var(--aws-orange);
}

.bg-success-green {
    background-color: var(--success-green);
}

.bg-warning-yellow {
    background-color: var(--warning-yellow);
}

/* Textos principales */
.text-white {
    color: var(--text-white);
}

.text-light {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted);
}

/* Textos de colores */
.text-primary-blue {
    color: var(--primary-blue);
}

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

.text-aws-orange {
    color: var(--aws-orange);
}

.text-success-green {
    color: var(--success-green);
}

.text-warning-yellow {
    color: var(--warning-yellow);
}

/* Textos sobre fondos oscuros (opcional) */
.text-dark-bg {
    color: var(--dark-bg);
}

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

/* Bordes */
.border-light {
    border-color: var(--border-light);
}

.border-primary-blue {
    border-color: var(--primary-blue);
}

/* Clases de utilidad con hover */
.bg-dark-hover:hover {
    background-color: var(--dark-secondary);
}

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

/* Gradientes oscuros (opcional) */
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
}

.bg-gradient-dark-soft {
    background: linear-gradient(135deg, var(--dark-bg-alt) 0%, var(--dark-bg-soft) 100%);
}

.bg-aws-section {
    background: linear-gradient(135deg, #232f3e, #1a252f);
}

/* ================================
   FLOAT UTILITIES
   ================================ */

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.float-none {
    float: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear-both {
    clear: both;
}

.clear-left {
    clear: left;
}

.clear-right {
    clear: right;
}

/* ================================
   WIDTH & SIZING UTILITIES
   ================================ */

/* Porcentajes */
.w-25 { width: 25%; }
.w-33 { width: 33.333%; }
.w-50 { width: 50%; }
.w-66 { width: 66.666%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }

/* Valores específicos */
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-min { width: min-content; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }

/* Max width */
.max-w-full { max-width: 100%; }
.max-w-screen { max-width: 100vw; }
.max-w-sm { max-width: 640px; }
.max-w-md { max-width: 768px; }
.max-w-lg { max-width: 1024px; }
.max-w-xl { max-width: 1280px; }
.max-w-2xl { max-width: 1536px; }
.max-w-none { max-width: none; }

/* Min width */
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }

/* Height utilities */
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-min { height: min-content; }
.h-max { height: max-content; }
.h-fit { height: fit-content; }

/* ================================
   GRID UTILITIES
   ================================ */

/* Display */
.d-grid { display: grid; }
.d-inline-grid { display: inline-grid; }

/* Grid templates columns */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

/* Grid column span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-full { grid-column: 1 / -1; }

/* Grid gaps */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* ================================
   FLEXBOX CENTERING
   ================================ */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Flex sizing */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }

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

@media (min-width: 768px) {
    .md\:w-25 { width: 25%; }
    .md\:w-50 { width: 50%; }
    .md\:w-75 { width: 75%; }
    .md\:w-100 { width: 100%; }

    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:w-25 { width: 25%; }
    .lg\:w-33 { width: 33.333%; }
    .lg\:w-50 { width: 50%; }
    .lg\:w-66 { width: 66.666%; }
    .lg\:w-100 { width: 100%; }

    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}


/* ================================
   HEADER & NAVIGATION
   ================================ */

header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-normal);
    padding-top: 5px;
    padding-bottom: 5px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    padding-top: 0.3em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 300;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Desktop - mostrar solo el CTA del desktop, ocultar el del mobile */
.mobile-cta {
    display: none !important;
}

.desktop-cta {
    display: inline-block !important;
}

/* Mobile - mostrar solo el CTA del mobile, ocultar el del desktop */
@media (max-width: 768px) {
    .mobile-cta {
        display: block !important;
        margin-top: var(--spacing-md);
        text-align: center;
    }

    .desktop-cta {
        display: none !important;
    }

    /* Asegurar que el botón en mobile ocupe todo el ancho */
    .mobile-cta .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* Ocultar específicamente el CTA que está fuera del nav-links en mobile */
    nav > .btn.btn-primary.desktop-cta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: var(--spacing-lg);
        border-top: 1px solid var(--border-light);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ================================
   NAVIGATION MEGAMENU - CORREGIDO
   ================================ */

.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.nav-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform var(--transition-normal);
}

.nav-item-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

/* CORREGIDO: Centrado en desktop */
.nav-megamenu {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1400px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.nav-item-dropdown:hover .nav-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
}

.megamenu-column h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-light);
}

.megamenu-column h4.active {
    color: var(--primary-blue);
}

.megamenu-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.megamenu-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-white);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.megamenu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.item-image {
    flex-shrink: 0;
    width: 60px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-white);
    line-height: 1.3;
}

.item-content h5.active {
    color: var(--primary-blue);
}

.item-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-metric {
    background: rgba(0, 208, 132, 0.2);
    color: var(--success-green);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.megamenu-footer-link {
    color: var(--text-white) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-normal);
    padding: var(--spacing-xs) 0;
    border-top: 1px solid var(--border-light);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

.megamenu-footer-link:hover {
    color: var(--primary-blue) !important;
}

/* ================================
   RESPONSIVE MEGAMENU - CORREGIDO
   ================================ */

@media (max-width: 1200px) {
    .nav-megamenu {
        width: 95vw;
        max-width: 1200px;
    }

    .megamenu-grid {
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }

    .item-content h5 {
        font-size: 1rem;
    }

    .item-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .megamenu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* CORREGIDO: Mobile con scroll y posicionamiento correcto */
@media (max-width: 768px) {
    .nav-item-dropdown {
        position: static;
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: var(--spacing-sm) 0;
        color: var(--text-white);
        text-decoration: none;
    }

    .nav-dropdown-toggle:hover {
        color: var(--primary-blue);
    }

    /* CORREGIDO: Megamenu mobile con scroll */
    .nav-megamenu {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: var(--dark-bg-soft) !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        margin: var(--spacing-sm) 0 0 0 !important;

        /* CLAVE: Altura controlada para scroll */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease !important;
        padding: 0 !important;
    }

    .nav-item-dropdown.active .nav-megamenu {
        /* CORREGIDO: Altura máxima que permite scroll */
        max-height: 70vh !important;
        overflow-y: auto !important;
        padding: var(--spacing-md) !important;

        /* Scroll suave en mobile */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-blue) transparent;
    }

    /* Estilo del scrollbar en mobile */
    .nav-item-dropdown.active .nav-megamenu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-item-dropdown.active .nav-megamenu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-item-dropdown.active .nav-megamenu::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 2px;
    }

    .megamenu-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: var(--spacing-lg) !important;
        /* CLAVE: Sin restricción de altura */
        min-height: auto !important;
    }

    .megamenu-column {
        border-bottom: 1px solid var(--border-light);
        padding-bottom: var(--spacing-md);
        /* IMPORTANTE: Sin restricción de altura */
        height: auto !important;
        min-height: auto !important;
    }

    .megamenu-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .megamenu-column h4 {
        color: var(--text-white);
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
        padding-bottom: var(--spacing-xs);
        /* Sticky header para mejor UX */
        position: sticky;
        top: 0;
        background: var(--dark-bg-soft);
        z-index: 1;
    }

    .megamenu-column h4.active {
        color: var(--primary-blue) !important;
    }

    .megamenu-items {
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
        /* Sin restricción de altura */
        height: auto !important;
    }

    .megamenu-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.02);
        /* Mejor área de toque en mobile */
        min-height: 48px;
        align-items: center;
    }

    .megamenu-item:hover {
        background: rgba(0, 212, 255, 0.1);
        transform: none;
    }

    .item-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .item-image {
        width: 45px;
        height: 30px;
        flex-shrink: 0;
    }

    .item-content h5 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
        line-height: 1.2;
    }

    .item-content p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }

    .item-date,
    .item-metric {
        font-size: 0.8rem;
    }

    .megamenu-footer-link {
        font-size: 0.9rem;
        padding-top: var(--spacing-xs);
        margin-top: var(--spacing-xs);
        /* Área de toque más grande */
        padding: var(--spacing-sm) var(--spacing-xs);
        margin: var(--spacing-xs) -var(--spacing-xs) 0;
        border-radius: var(--radius-sm);
        background: rgba(0, 212, 255, 0.05);
    }

    /* CORREGIDO: Asegurar que nav-links permita scroll */
    .nav-links {
        /* IMPORTANTE: Permitir que el contenedor crezca */
        height: auto !important;
        max-height: 90vh;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Asegurar visibilidad del contenido */
    .nav-links.active .nav-item-dropdown {
        display: block !important;
        width: 100%;
    }

    .nav-links.active .nav-megamenu {
        display: block !important;
    }
}

/* ================================
   MOBILE MEGAMENU FORCED STYLES
   ================================ */

@media (max-width: 768px) {
    /* Forzar estilos para asegurar scroll correcto */
    .nav-item-dropdown.active .nav-megamenu * {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-item-dropdown.active .megamenu-grid {
        display: grid !important;
        height: auto !important;
    }

    .nav-item-dropdown.active .megamenu-column {
        display: block !important;
        height: auto !important;
    }

    .nav-item-dropdown.active .megamenu-items {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }

    .nav-item-dropdown.active .megamenu-item {
        display: flex !important;
    }

    /* CLAVE: Prevenir que el body se bloquee cuando el megamenu está abierto */
    body:has(.nav-item-dropdown.active) {
        overflow: auto !important;
    }
}

/* ================================
   MEGAMENU ANIMATION DELAYS
   ================================ */

.megamenu-item:nth-child(1) { transition-delay: 0.1s; }
.megamenu-item:nth-child(2) { transition-delay: 0.15s; }
.megamenu-item:nth-child(3) { transition-delay: 0.2s; }
.megamenu-item:nth-child(4) { transition-delay: 0.25s; }

.nav-item-dropdown:hover .megamenu-item:nth-child(1) { transition-delay: 0.05s; }
.nav-item-dropdown:hover .megamenu-item:nth-child(2) { transition-delay: 0.1s; }
.nav-item-dropdown:hover .megamenu-item:nth-child(3) { transition-delay: 0.15s; }
.nav-item-dropdown:hover .megamenu-item:nth-child(4) { transition-delay: 0.2s; }

/* ================================
   MEGAMENU HOVER EFFECTS
   ================================ */

.megamenu-column:hover .megamenu-item:not(:hover) {
    opacity: 0.7;
    transform: translateX(0);
}

.megamenu-item:hover .item-icon {
    background: var(--primary-blue);
    color: var(--text-white);
}

.megamenu-item:hover .item-content h5 {
    color: var(--primary-blue);
}

/* ================================
   BUTTONS & CTAs
   ================================ */

.btn {
    display: inline-block;
    padding: 4px 24px;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

.btn-outline:hover {
    background: var(--text-white);
    color: var(--dark-bg);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ================================
   CARDS & COMPONENTS
   ================================ */

.card {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ================================
   SECTIONS & LAYOUTS
   ================================ */

.section {
    padding: var(--spacing-3xl) 0;
}

.section-dark {
    background: var(--dark-secondary);
}

.section-gradient {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 50%, #16213e 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    /*font-size: 2.5rem;*/
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-header .subtitle {
    /*font-size: 1.2rem;*/
    color: var(--text-muted);
    line-height: 1.5;
}

.section-header .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ================================
   GRIDS & LAYOUTS
   ================================ */

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

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

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* ================================
   TECH TAGS & BADGES
   ================================ */

.tech-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ================================
   TECH TAGS - COLOR VARIANTS
   ================================ */

/* Variant 1: Blue (Original - Primary) */
.tech-tag,
.tech-tag-blue {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Variant 2: Green (Success/Performance) */
.tech-tag-green {
    background: rgba(0, 208, 132, 0.2);
    color: #00d084;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(0, 208, 132, 0.3);
}

/* Variant 3: Orange (AWS/Integration) */
.tech-tag-orange {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9900;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

/* Variant 4: Purple (AI/ML) */
.tech-tag-purple {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Variant 5: Yellow (Warning/Beta) */
.tech-tag-yellow {
    background: rgba(255, 184, 0, 0.2);
    color: #ffb800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

/* Variant 6: Pink/Rose (Featured/New) */
.tech-tag-pink {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* ================================
   TECH TAGS - DARK VARIANTS
   ================================ */

    /* Variant 7: Slate/Grey (Default/Neutral) */
.tech-tag-slate {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Variant 8: Teal/Cyan (Data/Analytics) */
.tech-tag-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

/* Variant 9: Indigo (Premium/Enterprise) */
.tech-tag-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Variant 10: Red (Critical/Important) */
.tech-tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Optional: Hover effects for all variants */
.tech-tag:hover,
.tech-tag-blue:hover,
.tech-tag-green:hover,
.tech-tag-orange:hover,
.tech-tag-purple:hover,
.tech-tag-yellow:hover,
.tech-tag-pink:hover,
.tech-tag-slate:hover,
.tech-tag-teal:hover,
.tech-tag-indigo:hover,
.tech-tag-red:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--dark-card);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
}

.badge-success {
    background: rgba(0, 208, 132, 0.2);
    color: var(--success-green);
    border-color: var(--success-green);
}

.badge-warning {
    background: rgba(255, 184, 0, 0.2);
    color: var(--warning-yellow);
    border-color: var(--warning-yellow);
}

.badge-aws {
    background: rgba(255, 153, 0, 0.2);
    color: var(--aws-orange);
    border-color: var(--aws-orange);
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--text-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 2rem;
}

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

.text-muted {
    color: var(--text-muted);
}

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

.text-small {
    font-size: 1.2rem;
}

.text-medium {
    font-size: 1.4rem;
}

.text-large {
    font-size: 1.6rem;
}

.text-xlarge {
    font-size: 2.0rem;
}



.mono {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* ================================
   ANIMATIONS & EFFECTS
   ================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-slow);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* ================================
   UTILITIES
   ================================ */

.hidden {
    display: none;
}

.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;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }
.ml-3 { margin-left: var(--spacing-md); }
.ml-4 { margin-left: var(--spacing-lg); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }
.mr-3 { margin-right: var(--spacing-md); }
.mr-4 { margin-right: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

/* ================================
   TEXT ALIGNMENT
   ================================ */

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

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

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Responsive text alignment */
@media (min-width: 768px) {
    .text-md-left {
        text-align: left;
    }

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

    .text-md-right {
        text-align: right;
    }

    .text-md-justify {
        text-align: justify;
    }
}

@media (min-width: 1024px) {
    .text-lg-left {
        text-align: left;
    }

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

    .text-lg-right {
        text-align: right;
    }

    .text-lg-justify {
        text-align: justify;
    }
}

/* Text alignment for flex containers */
.align-left {
    align-items: flex-start;
    text-align: left;
}

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

.align-right {
    align-items: flex-end;
    text-align: right;
}

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

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

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}

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

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .flex-between {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .flex-center {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* API Documentation Preview */
.api-preview {
    background: var(--dark-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.api-header {
    background: rgba(0, 212, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.api-method {
    background: var(--success-green);
    color: var(--text-white);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.api-method.post {
    background: #ffa502;
}

.api-method.put {
    background: #3742fa;
}

.api-method.delete {
    background: #ff4757;
}

.api-code {
    padding: var(--spacing-md);
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre;
}


/* Integration Examples */
.integration-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    margin-bottom: var(--spacing-md);
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    /*font-size: 0.9rem;*/
}

.tab-button.active {
    background: var(--primary-blue);
    color: var(--text-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ================================
   INTEGRATION SECTION IMPROVEMENTS
   ================================ */

.integration-card {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.integration-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.integration-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
}

.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    flex: 1;
    padding-left: var(--spacing-md);
}

.integration-card h3, .api-sdk-card h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.integration-card p, .api-sdk-card p {
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: var(--spacing-lg);
    font-size: 1.4rem;
}

/* Logo Section */
.integration-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    flex-wrap: wrap;
}

.integration-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(0.5);
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.integration-card:hover .integration-logo {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Format Icons for File Types */
.format-icons {
    gap: var(--spacing-sm);
}

.format-icon {
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* API & SDK Grid */
.api-sdk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.api-sdk-card {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.api-sdk-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.code-example {
    background: #1e1e1e;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.code-header {
    background: rgba(0, 212, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.copy-code {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-normal);
    padding: 4px 8px;
}

.copy-code:hover {
    color: var(--primary-blue);
}

.code-example pre {
    margin: 0;
    padding: var(--spacing-md);
    overflow-x: auto;
    max-height: 300px;
}

.code-example code {
    color: #d4d4d4;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .api-sdk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .integration-card-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .integration-tags {
        padding-left: 0;
        justify-content: flex-start;
    }

    .integration-logos {
        justify-content: center;
    }
}

/* ================================
   MOBILE INTEGRATION FIXES
   ================================ */

@media (max-width: 768px) {
    /* Prevenir overflow horizontal en toda la página */
    body {
        overflow-x: hidden;
    }

    /* Asegurar que las secciones no desborden */
    .section {
        overflow-x: hidden;
    }

    /* Grid de integraciones en mobile */
    .integration-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
        padding: 0;
    }

    /* Tarjetas de integración responsive */
    .integration-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: var(--spacing-md);
        box-sizing: border-box;
    }

    /* Header de tarjeta en mobile */
    .integration-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    /* Tags de integración en mobile */
    .integration-tags {
        padding-left: 0;
        justify-content: flex-start;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-xs);
    }

    /* Tech tags más pequeños en mobile */
    .integration-tags .tech-tag {
        font-size: 0.9rem;
        padding: 0.2rem 0.6rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Logos de integración en mobile */
    .integration-logos {
        justify-content: flex-start;
        gap: var(--spacing-sm);
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
    }

    .integration-logo {
        height: 25px;
        flex-shrink: 0;
    }

    /* API/SDK grid en mobile */
    .api-sdk-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    /* Código de ejemplo en mobile */
    .code-example {
        margin-top: var(--spacing-sm);
    }

    .code-example pre {
        font-size: 0.75rem;
        padding: var(--spacing-sm);
        overflow-x: auto;
        max-height: 200px;
    }

    /* Tabs de integración en mobile */
    .integration-tabs {
        flex-direction: column;
        gap: 0.2rem;
    }

    .tab-button {
        text-align: center;
        padding: var(--spacing-xs);
        font-size: 0.9rem;
    }
}

/* ================================
   PREVENIR OVERFLOW EN CONTENEDORES
   ================================ */

/* Aplicar a todos los elementos que puedan causar overflow */
.container,
.section,
.integration-card,
.api-sdk-card,
.code-example {
    max-width: 100%;
    box-sizing: border-box;
}

/* Asegurar que las imágenes no desborden */
img {
    max-width: 100%;
    height: auto;
}

/* Contenido de código que puede desbordar */
pre, code {
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Flex containers que no deben desbordar */
.flex, .inline-flex {
    max-width: 100%;
    box-sizing: border-box;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    text-align: center;
}

.cta-content {
    max-width: 1400px;
    margin: 0 auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Floating elements */
.floating-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 999;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.floating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* Clients Section */
.clients-slider {
    position: relative;
    background: var(--dark-bg-alt);
    overflow: hidden;
    padding: 10px 0;
}/* ================================
   PLEASEPOINT IT DESIGN SYSTEM
   Common CSS for all pages
   ================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    /* Colores primarios */
    --primary-blue: #00d4ff;
    --primary-dark: #0099cc;

    /* Backgrounds oscuros - 3 opciones */
    --dark-bg: #0a0a0a;        /* Negro profundo */
    --dark-bg-alt: #141414;     /* Gris muy oscuro */
    --dark-bg-soft: #1a1a1a;    /* Gris oscuro suave */

    /* Secundarios */
    --dark-secondary: #16213e;
    --dark-card: rgba(255, 255, 255, 0.05);

    /* Textos */
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-muted: #999999;

    /* Bordes */
    --border-light: rgba(255, 255, 255, 0.1);

    /* Colores de estado */
    --aws-orange: #ff9900;
    --success-green: #00d084;
    --warning-yellow: #ffb800;


    /* Typography */
    --font-primary:  "Nunito Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 212, 255, 0.1);
    --shadow-md: 0 8px 25px rgba(0, 212, 255, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 212, 255, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-white);
    background: var(--dark-bg-alt);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Backgrounds oscuros principales */
.bg-dark {
    background-color: var(--dark-bg);
}

.bg-dark-alt {
    background-color: var(--dark-bg-alt);
}

.bg-dark-soft {
    background-color: var(--dark-bg-soft);
}

/* Backgrounds secundarios */
.bg-dark-secondary {
    background-color: var(--dark-secondary);
}

.bg-dark-card {
    background-color: var(--dark-card);
}

/* Backgrounds de colores */
.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-aws-orange {
    background-color: var(--aws-orange);
}

.bg-success-green {
    background-color: var(--success-green);
}

.bg-warning-yellow {
    background-color: var(--warning-yellow);
}

/* Textos principales */
.text-white {
    color: var(--text-white);
}

.text-light {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted);
}

/* Textos de colores */
.text-primary-blue {
    color: var(--primary-blue);
}

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

.text-aws-orange {
    color: var(--aws-orange);
}

.text-success-green {
    color: var(--success-green);
}

.text-warning-yellow {
    color: var(--warning-yellow);
}

/* Textos sobre fondos oscuros (opcional) */
.text-dark-bg {
    color: var(--dark-bg);
}

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

/* Bordes */
.border-light {
    border-color: var(--border-light);
}

.border-primary-blue {
    border-color: var(--primary-blue);
}

/* Clases de utilidad con hover */
.bg-dark-hover:hover {
    background-color: var(--dark-secondary);
}

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

/* Gradientes oscuros (opcional) */
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
}

.bg-gradient-dark-soft {
    background: linear-gradient(135deg, var(--dark-bg-alt) 0%, var(--dark-bg-soft) 100%);
}

/* ================================
   FLOAT UTILITIES
   ================================ */

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.float-none {
    float: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.clear-both {
    clear: both;
}

.clear-left {
    clear: left;
}

.clear-right {
    clear: right;
}

/* ================================
   WIDTH & SIZING UTILITIES
   ================================ */

/* Porcentajes */
.w-25 { width: 25%; }
.w-33 { width: 33.333%; }
.w-50 { width: 50%; }
.w-66 { width: 66.666%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }

/* Valores específicos */
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-min { width: min-content; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }

/* Max width */
.max-w-full { max-width: 100%; }
.max-w-screen { max-width: 100vw; }
.max-w-sm { max-width: 640px; }
.max-w-md { max-width: 768px; }
.max-w-lg { max-width: 1024px; }
.max-w-xl { max-width: 1280px; }
.max-w-2xl { max-width: 1536px; }
.max-w-none { max-width: none; }

/* Min width */
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }

/* Height utilities */
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-min { height: min-content; }
.h-max { height: max-content; }
.h-fit { height: fit-content; }

/* ================================
   GRID UTILITIES
   ================================ */

/* Display */
.d-grid { display: grid; }
.d-inline-grid { display: inline-grid; }

/* Grid templates columns */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

/* Grid column span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-full { grid-column: 1 / -1; }

/* Grid gaps */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

/* ================================
   FLEXBOX CENTERING
   ================================ */

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Flex sizing */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }

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

@media (min-width: 768px) {
    .md\:w-25 { width: 25%; }
    .md\:w-50 { width: 50%; }
    .md\:w-75 { width: 75%; }
    .md\:w-100 { width: 100%; }

    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:w-25 { width: 25%; }
    .lg\:w-33 { width: 33.333%; }
    .lg\:w-50 { width: 50%; }
    .lg\:w-66 { width: 66.666%; }
    .lg\:w-100 { width: 100%; }

    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}


/* ================================
   HEADER & NAVIGATION
   ================================ */

header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-normal);
    padding-top: 5px;
    padding-bottom: 5px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    padding-top: 0.3em;
    width: 175px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 300;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 500;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        /* CLAVE: Permitir altura dinámica y scroll */
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: var(--spacing-lg);
        border-top: 1px solid var(--border-light);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* ================================
   BUTTONS & CTAs
   ================================ */

.btn {
    display: inline-block;
    padding: 4px 24px;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

.btn-outline:hover {
    background: var(--text-white);
    color: var(--dark-bg);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ================================
   CARDS & COMPONENTS
   ================================ */

.card {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.card h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ================================
   SECTIONS & LAYOUTS
   ================================ */

.section {
    padding: var(--spacing-3xl) 0;
}

.section-dark {
    background: var(--dark-secondary);
}

.section-gradient {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 50%, #16213e 100%);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    /*font-size: 2.5rem;*/
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-header .subtitle {
    /*font-size: 1.2rem;*/
    color: var(--text-muted);
    line-height: 1.5;
}

.section-header .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ================================
   GRIDS & LAYOUTS
   ================================ */

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

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

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* ================================
   TECH TAGS & BADGES
   ================================ */

.tech-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ================================
   TECH TAGS - COLOR VARIANTS
   ================================ */

/* Variant 1: Blue (Original - Primary) */
.tech-tag,
.tech-tag-blue {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Variant 2: Green (Success/Performance) */
.tech-tag-green {
    background: rgba(0, 208, 132, 0.2);
    color: #00d084;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(0, 208, 132, 0.3);
}

/* Variant 3: Orange (AWS/Integration) */
.tech-tag-orange {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9900;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

/* Variant 4: Purple (AI/ML) */
.tech-tag-purple {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Variant 5: Yellow (Warning/Beta) */
.tech-tag-yellow {
    background: rgba(255, 184, 0, 0.2);
    color: #ffb800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(255, 184, 0, 0.3);
}

/* Variant 6: Pink/Rose (Featured/New) */
.tech-tag-pink {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* ================================
   TECH TAGS - DARK VARIANTS
   ================================ */

/* Variant 7: Slate/Grey (Default/Neutral) */
.tech-tag-slate {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Variant 8: Teal/Cyan (Data/Analytics) */
.tech-tag-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

/* Variant 9: Indigo (Premium/Enterprise) */
.tech-tag-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Variant 10: Red (Critical/Important) */
.tech-tag-red {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Optional: Hover effects for all variants */
.tech-tag:hover,
.tech-tag-blue:hover,
.tech-tag-green:hover,
.tech-tag-orange:hover,
.tech-tag-purple:hover,
.tech-tag-yellow:hover,
.tech-tag-pink:hover,
.tech-tag-slate:hover,
.tech-tag-teal:hover,
.tech-tag-indigo:hover,
.tech-tag-red:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--dark-card);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
}

.badge-success {
    background: rgba(0, 208, 132, 0.2);
    color: var(--success-green);
    border-color: var(--success-green);
}

.badge-warning {
    background: rgba(255, 184, 0, 0.2);
    color: var(--warning-yellow);
    border-color: var(--warning-yellow);
}

.badge-aws {
    background: rgba(255, 153, 0, 0.2);
    color: var(--aws-orange);
    border-color: var(--aws-orange);
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--text-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 2rem;
}

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

.text-muted {
    color: var(--text-muted);
}

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

.text-small {
    font-size: 1.2rem;
}

.text-medium {
    font-size: 1.4rem;
}

.text-large {
    font-size: 1.6rem;
}

.text-xlarge {
    font-size: 2.0rem;
}



.mono {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* ================================
   ANIMATIONS & EFFECTS
   ================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all var(--transition-slow);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all var(--transition-slow);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* ================================
   UTILITIES
   ================================ */

.hidden {
    display: none;
}

.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;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }
.ml-3 { margin-left: var(--spacing-md); }
.ml-4 { margin-left: var(--spacing-lg); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }
.mr-3 { margin-right: var(--spacing-md); }
.mr-4 { margin-right: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

/* ================================
   TEXT ALIGNMENT
   ================================ */

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

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

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Responsive text alignment */
@media (min-width: 768px) {
    .text-md-left {
        text-align: left;
    }

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

    .text-md-right {
        text-align: right;
    }

    .text-md-justify {
        text-align: justify;
    }
}

@media (min-width: 1024px) {
    .text-lg-left {
        text-align: left;
    }

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

    .text-lg-right {
        text-align: right;
    }

    .text-lg-justify {
        text-align: justify;
    }
}

/* Text alignment for flex containers */
.align-left {
    align-items: flex-start;
    text-align: left;
}

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

.align-right {
    align-items: flex-end;
    text-align: right;
}

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

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

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}

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

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .flex-between {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .flex-center {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* API Documentation Preview */
.api-preview {
    background: var(--dark-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.api-header {
    background: rgba(0, 212, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.api-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.api-method {
    background: var(--success-green);
    color: var(--text-white);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.api-method.post {
    background: #ffa502;
}

.api-method.put {
    background: #3742fa;
}

.api-method.delete {
    background: #ff4757;
}

.api-code {
    padding: var(--spacing-md);
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre;
}


/* Integration Examples */
.integration-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    margin-bottom: var(--spacing-md);
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    /*font-size: 0.9rem;*/
}

.tab-button.active {
    background: var(--primary-blue);
    color: var(--text-white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    text-align: center;
}

.cta-content {
    max-width: 1400px;
    margin: 0 auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Floating elements */
.floating-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 999;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.floating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* Clients Section */
.clients-slider {
    position: relative;
    background: var(--dark-bg-alt);
    overflow: hidden;
    padding: 10px 0;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Gradient Masks */
.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(90deg,
    var(--dark-bg-alt) 0%,
    transparent 100%);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(90deg,
    transparent 0%,
    var(--dark-bg-alt) 100%);
}

/* Slider Track - Ajustado para scroll continuo */
.slider-track {
    display: flex;
    width: fit-content;
    animation: scroll-infinite 30s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

/* Animación mejorada para evitar saltos */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Mueve exactamente el ancho de un grupo */
        transform: translateX(calc(-100% / 2));
    }
}

/* Logo Groups */
.logo-group {
    display: flex;
    flex-shrink: 0;
    gap: 60px;
    padding-right: 60px; /* Importante: mismo valor que el gap */
}

/* Logo Items */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.logo-item img {
    width: auto;
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container::before,
    .slider-container::after {
        width: 30px;
    }

    .logo-group {
        gap: 30px;
        padding-right: 30px;
    }

    .logo-item {
        min-width: 100px;
        height: 50px;
    }

    .logo-item img {
        height: 30px;
        max-width: 80px;
    }
}

/* Data Flow Visualization */
.data-flow {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.data-flow img {
    width: 80%;
    margin: 0 auto;
}

.flow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    position: relative;
}

.flow-node {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    min-width: 150px;
    max-width: 23%;
    position: relative;
    transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
    .flow-node {
        width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}

.flow-node:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.flow-node:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: bold;
    animation: flow-arrow 2s ease-in-out infinite;
}

@keyframes flow-arrow {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(5px); }
}

.node-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: white;
    font-size: 1.3rem;
}

.node-title {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.node-description {
    color: var(--text-light);
}

/* ================================
   TESTIMONIAL SLIDER
   ================================ */

.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* Space for arrows */
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 var(--spacing-md);
}

/* Hide old grid */
.testimonial-grid {
    display: none;
}

/* Navigation arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 2;
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.testimonial-nav:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots navigation */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.testimonial-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Responsive - Show multiple slides on larger screens */
@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (min-width: 1200px) {
    .testimonial-slide {
        min-width: 33.333%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial-slider {
        padding: 0 40px;
    }

    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Social Proof Section */
.social-proof {
    /*background: var(--dark-secondary);*/
}

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

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
}

.testimonial-content {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

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

.author-info h5 {
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-white);
    font-size: 1.2rem;
    margin: 0;
    font-weight: normal;
}

.quote-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--primary-blue);
    font-size: 2rem;
    opacity: 0.3;
}

/* ================================
   FAQ SECTION
   ================================ */

.faqs-section {
    background: var(--dark-bg-soft);
}

.faqs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: fit-content;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    color: var(--primary-blue);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Responsive - Single column on mobile */
@media (max-width: 768px) {
    .faqs-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .faq-question {
        font-size: 1.1rem;
        padding: var(--spacing-md);
    }

    .faq-answer p {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
}

/* Tablet optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    .faqs-grid {
        gap: var(--spacing-md);
    }

    .faq-question {
        font-size: 1.15rem;
    }
}


/* AWS Partnership Highlight */
.aws-partnership {
    background: linear-gradient(135deg, #232f3e, #1a252f);
    text-align: center;
}

.aws-content {
    max-width: 100%;
    margin: 0 auto;
}

.aws-logo-large {
    font-size: 4rem;
    color: var(--aws-orange);
    margin-bottom: var(--spacing-md);
}

.partnership-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.partnership-badge {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    width: 31%;
}

.badge-title {
    color: var(--aws-orange);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.badge-description {
    color: var(--text-light);
    font-size: 0.9rem;
}



/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Gradient Masks */
.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(90deg,
    var(--dark-bg-alt) 0%,
    transparent 100%);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(90deg,
    transparent 0%,
    var(--dark-bg-alt) 100%);
}

/* Slider Track - Ajustado para scroll continuo */
.slider-track {
    display: flex;
    width: fit-content;
    animation: scroll-infinite 30s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

/* Animación mejorada para evitar saltos */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Mueve exactamente el ancho de un grupo */
        transform: translateX(calc(-100% / 2));
    }
}

/* Logo Groups */
.logo-group {
    display: flex;
    flex-shrink: 0;
    gap: 60px;
    padding-right: 60px; /* Importante: mismo valor que el gap */
}

/* Logo Items */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.logo-item img {
    width: auto;
    height: 40px;
    max-width: 120px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-container::before,
    .slider-container::after {
        width: 30px;
    }

    .logo-group {
        gap: 30px;
        padding-right: 30px;
    }

    .logo-item {
        min-width: 100px;
        height: 50px;
    }

    .logo-item img {
        height: 30px;
        max-width: 80px;
    }
}

/* Data Flow Visualization */
.data-flow {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.data-flow img {
    width: 80%;
    margin: 0 auto;
}

.flow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    position: relative;
}

.flow-node {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    min-width: 150px;
    max-width: 23%;
    position: relative;
    transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
    .flow-node {
        width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }
}

.flow-node:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.flow-node:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: bold;
    animation: flow-arrow 2s ease-in-out infinite;
}

@keyframes flow-arrow {
    0%, 100% { opacity: 0.5; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(5px); }
}

.node-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: white;
    font-size: 1.3rem;
}

.node-title {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.node-description {
    color: var(--text-light);
}

/* ================================
   TESTIMONIAL SLIDER
   ================================ */

.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* Space for arrows */
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 var(--spacing-md);
}

/* Hide old grid */
.testimonial-grid {
    display: none;
}

/* Navigation arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 2;
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.testimonial-nav:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dots navigation */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.testimonial-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Responsive - Show multiple slides on larger screens */
@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (min-width: 1200px) {
    .testimonial-slide {
        min-width: 33.333%;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .testimonial-slider {
        padding: 0 40px;
    }

    .testimonial-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Social Proof Section */
.social-proof {
    /*background: var(--dark-secondary);*/
}

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

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
}

.testimonial-content {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

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

.author-info h5 {
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-white);
    font-size: 1.2rem;
    margin: 0;
    font-weight: normal;
}

.quote-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--primary-blue);
    font-size: 2rem;
    opacity: 0.3;
}

/* ================================
   FAQ SECTION
   ================================ */

.faqs-section {
    background: var(--dark-bg-soft);
}

.faqs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: fit-content;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    color: var(--primary-blue);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Responsive - Single column on mobile */
@media (max-width: 768px) {
    .faqs-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .faq-question {
        font-size: 1.1rem;
        padding: var(--spacing-md);
    }

    .faq-answer p {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
}

/* Tablet optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    .faqs-grid {
        gap: var(--spacing-md);
    }

    .faq-question {
        font-size: 1.15rem;
    }
}


/* AWS Partnership Highlight */
.aws-partnership {
    background: linear-gradient(135deg, #232f3e, #1a252f);
    text-align: center;
}

.aws-content {
    max-width: 100%;
    margin: 0 auto;
}

.aws-logo-large {
    font-size: 4rem;
    color: var(--aws-orange);
    margin-bottom: var(--spacing-md);
}

.partnership-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.partnership-badge {
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    width: 31%;
}

.badge-title {
    color: var(--aws-orange);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.badge-description {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ================================
   REUSABLE CONTENT BLOCKS
   Featured Articles, Case Studies, Documentation
   ================================ */

/* ================================
   FEATURED ARTICLES COMPONENT - UPDATED
   ================================ */

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

/* Grid con máximo 3 columnas y imagen */
.featured-grid-images {
    grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
    max-width: 1400px; /* Limita el ancho para máximo 3 columnas */
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .featured-grid-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featured-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    /*padding: var(--spacing-lg);*/
    transition: all var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    height: 100%;
}

/* Featured card con imagen */
.featured-card-with-image {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
}

.featured-card:hover,
.featured-card-with-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

/* Imagen de featured article */
.featured-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    width: 100%;
}

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

.featured-card-with-image:hover .featured-image img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.featured-card-with-image:hover .featured-overlay {
    opacity: 1;
}

.featured-content {
    flex: 1;
    padding: var(--spacing-sm);
}

/* Para cards sin imagen (mantenemos compatibilidad) */
.featured-card:not(.featured-card-with-image) .featured-content {
    padding: 0;
}

.featured-category {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
}

.featured-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    line-height: 1.3;
}

.featured-card h3 a {
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.featured-card h3 a:hover {
    color: var(--primary-blue);
}

.featured-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    /*margin-bottom: var(--spacing-md);*/
    font-size: 1.2rem;
}

.featured-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--text-muted);
    align-items: center;
}

.featured-author {
    font-weight: 500;
    color: var(--text-light);
}

.featured-date {
    color: var(--text-muted);
}

.featured-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    margin: 0 var(--spacing-xs);
}

.featured-meta .featured-author + .featured-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    margin-right: var(--spacing-xs);
}

/* Icono para cards sin imagen (mantenemos compatibilidad) */
.featured-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.8rem;
}

/* ================================
   RESPONSIVE PARA FEATURED ARTICLES
   ================================ */

@media (max-width: 768px) {
    .featured-grid,
    .featured-grid-images {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .featured-card-with-image {
        text-align: left;
    }

    .featured-image {
        height: 180px;
    }

    .featured-content {
        padding: var(--spacing-md);
    }

    .featured-icon {
        align-self: center;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .featured-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .featured-card-with-image .featured-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .featured-card-with-image {
        border-radius: var(--radius-md);
    }

    .featured-image {
        height: 160px;
    }

    .featured-content {
        padding: var(--spacing-sm);
    }

    .featured-card h3 {
        font-size: 1.3rem;
    }

    .featured-excerpt {
        font-size: 1.1rem;
    }

    .featured-meta {
        font-size: 1rem;
        gap: var(--spacing-sm);
    }
}

/* ================================
   CASE STUDIES COMPONENT - DYNAMIC LAYOUT
   ================================ */

/* Mantenemos el grid original para compatibilidad */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

/* Nuevo layout dinámico */
.case-studies-dynamic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, 300px);
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* Tamaños dinámicos para diferentes casos */
.case-study-large {
    grid-column: span 7;
    grid-row: span 2;
}

.case-study-medium {
    grid-column: span 5;
    grid-row: span 1;
}

.case-study-small {
    grid-column: span 3;
    grid-row: span 1;
}

/* Ajuste para el quinto elemento */
.case-study-card-dynamic:nth-child(5) {
    grid-column: span 3;
    grid-row: span 1;
}

/* Card dinámica base */
.case-study-card-dynamic {
    position: relative;
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.case-study-card-dynamic:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

/* Imagen del caso */
.case-image {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 150px;
}

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

.case-study-card-dynamic:hover .case-image img {
    transform: scale(1.1);
}

/* Overlay con información adicional */
.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.case-study-card-dynamic:hover .case-overlay {
    opacity: 1;
}

.case-number {
    background: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    align-self: flex-start;
}

.case-author {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    align-self: flex-end;
}

/* Contenido del caso */
.case-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.case-date {
    color: var(--text-muted);
    font-size: 1.0rem;
}

.case-type {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-content h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

.case-content h3 a {
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.case-content h3 a:hover {
    color: var(--primary-blue);
}

.case-excerpt {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 1.1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tamaños específicos para excerpt */
.case-study-large .case-excerpt {
    -webkit-line-clamp: 5;
    font-size: 1.2rem;
}

.case-study-small .case-excerpt {
    -webkit-line-clamp: 2;
    font-size: 1.0rem;
}

/* Acción del caso */
.case-action {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.case-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    padding: var(--spacing-xs) 0;
}

.case-link:hover {
    color: var(--text-white);
    padding-left: var(--spacing-xs);
}

.case-link i {
    transition: transform var(--transition-normal);
}

.case-link:hover i {
    transform: translateX(5px);
}

/* Ajustes para el card large */
.case-study-large .case-content {
    padding: var(--spacing-xl);
}

.case-study-large .case-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.case-study-large .case-meta {
    margin-bottom: var(--spacing-md);
}

.case-study-large .case-action {
    margin-top: var(--spacing-xl);
}

/* Ajustes para cards small */
.case-study-small .case-content {
    padding: var(--spacing-md);
}

.case-study-small .case-content h3 {
    font-size: 1.2rem;
}

.case-study-small .case-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

/* ================================
   RESPONSIVE PARA LAYOUT DINÁMICO
   ================================ */

@media (max-width: 1200px) {
    .case-studies-dynamic {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(4, 280px);
    }

    .case-study-large {
        grid-column: span 5;
        grid-row: span 2;
    }

    .case-study-medium {
        grid-column: span 3;
        grid-row: span 1;
    }

    .case-study-small {
        grid-column: span 4;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .case-studies-dynamic {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .case-study-card-dynamic {
        width: 100%;
        min-height: 350px;
    }

    .case-image {
        min-height: 180px;
        flex: 0 0 180px;
    }

    .case-overlay {
        opacity: 1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 60%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }

    .case-content {
        padding: var(--spacing-md);
    }

    .case-content h3 {
        font-size: 1.4rem;
    }

    .case-excerpt {
        -webkit-line-clamp: 3;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .case-study-card-dynamic {
        min-height: 320px;
    }

    .case-image {
        min-height: 160px;
        flex: 0 0 160px;
    }

    .case-content {
        padding: var(--spacing-sm);
    }

    .case-content h3 {
        font-size: 1.2rem;
    }

    .case-excerpt {
        font-size: 1.0rem;
    }

    .case-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .case-author {
        font-size: 1.0rem;
    }
}

/* ================================
   COMPATIBILIDAD CON LAYOUT ANTERIOR
   ================================ */

/* Mantenemos el CSS original para otros usos */
.case-study-card {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.company-logo {
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.case-study-card:hover .company-logo img {
    opacity: 1;
}

.case-study-category {
    background: var(--dark-secondary);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-study-metrics {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: auto;
}

.case-study-metrics .metric {
    text-align: center;
    min-width: 80px;
}

.case-study-metrics .metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.case-study-metrics .metric-label {
    font-size: 1.0rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* ================================
   CASE STUDIES SLIDER - CSS CORREGIDO
   ================================ */

.case-studies-slider {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
}

/* CLAVE: Asegurar que el track funcione correctamente */
.slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* CLAVE: Cada slide debe ocupar el 100% del contenedor */
.case-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* CORRECCIÓN: Imágenes del slider sin zoom excesivo */
.case-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.case-slide-image img {
    width: 100%;
    max-width: 1400px;
    /*height: 100%;*/
    object-fit: cover;
    object-position: center;
    transition: transform 3s ease-out;
    /* CORREGIDO: Escala inicial normal */
    transform: scale(1);
}

/* CORREGIDO: Zoom sutil solo en hover, no en active */
.case-slide:hover .case-slide-image img {
    transform: scale(1.05);
}

/* ELIMINADO: El zoom en .active que causaba el problema */
/* .case-slide.active .case-slide-image img {
    transform: scale(1.05);
} */

/* ALTERNATIVA: Si quieres zoom muy sutil en active */
.case-slide.active .case-slide-image img {
    transform: scale(1.02);
}

/* Overlay siempre visible */
.case-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* CORREGIDO: Contenido siempre visible, sin animaciones que lo oculten */
.case-slide-content {
    position: relative;
    z-index: 3;
    padding: var(--spacing-2xl);
    width: 100%;
    max-width: 1024px;
    color: white;
    margin-left: var(--spacing-xl);
    /* ELIMINADO: transform y opacity que causaban el problema */
}

/* Meta información */
.case-slide-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.case-slide-number {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
}

.case-slide-type {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.case-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.case-slide-title a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.case-slide-title a:hover {
    color: var(--primary-blue);
}

.case-slide-excerpt {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.case-slide-author .author-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.case-slide-author .author-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.case-slide-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-normal);
}

.case-slide-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.case-slide-btn i {
    transition: transform var(--transition-normal);
}

.case-slide-btn:hover i {
    transform: translateX(3px);
}

/* Navegación */
.slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: 4;
    pointer-events: none;
}

.slider-nav {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    pointer-events: auto;
}

.slider-nav:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
    z-index: 4;
    position: relative;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-dot.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.slider-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Progress Bar */
.slider-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-md);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

@media (max-width: 1024px) {
    .case-slide {
        height: 450px;
    }

    .case-slide-content {
        padding: var(--spacing-xl);
        margin-left: var(--spacing-lg);
        max-width: 768px;
    }

    .case-slide-title {
        font-size: 2.2rem;
    }

    .case-slide-excerpt {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .case-slide {
        height: 400px;
    }

    .case-slide-content {
        padding: var(--spacing-lg);
        margin-left: 0;
        max-width:480px;
    }

    .case-slide-title {
        font-size: 1.8rem;
    }

    .case-slide-excerpt {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .case-slide-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .slider-navigation {
        padding: 0 var(--spacing-sm);
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-slide {
        height: 350px;
    }

    .case-slide-content {
        padding: var(--spacing-md);
        max-width: 350px;
    }

    .case-slide-title {
        font-size: 1.5rem;
    }

    .case-slide-excerpt {
        font-size: 1rem;
    }

    .case-slide-meta {
        flex-wrap: wrap;
    }

    .case-slide-number,
    .case-slide-type {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .case-slide-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ================================
   DARK THEME VARIATIONS
   ================================ */

.case-studies.dark-theme .case-slide-overlay {
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.8) 100%
    );
}


/* ================================
   DOCUMENTATION COMPONENT
   ================================ */

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

.doc-card {
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    height: 100%;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 255, 0.3);
}

.doc-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.doc-content {
    flex: 1;
}

.doc-content h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    line-height: 1.3;
}

.doc-content h3 a {
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.doc-content h3 a:hover {
    color: var(--primary-blue);
}

.doc-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0px;
    font-size: 1.2rem;
}

.doc-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.doc-type,
.doc-level {
    background: var(--dark-secondary);
    color: var(--text-light);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.doc-level {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
}

/* ================================
   RESPONSIVE DESIGN FOR COMPONENTS
   ================================ */

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .featured-icon {
        align-self: center;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .featured-meta {
        justify-content: center;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-study-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .case-study-metrics {
        justify-content: center;
        gap: var(--spacing-md);
    }

    .case-study-metrics .metric {
        min-width: 70px;
    }

    .case-study-metrics .metric-value {
        font-size: 1.6rem;
    }

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

    .doc-card {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .doc-icon {
        align-self: center;
    }

    .doc-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .featured-card,
    .case-study-card,
    .doc-card {
        padding: var(--spacing-md);
    }

    .featured-card h3,
    .case-study-content h3,
    .doc-content h3 {
        font-size: 1.3rem;
    }

    .featured-excerpt,
    .case-study-excerpt,
    .doc-description {
        font-size: 1.1rem;
    }

    .case-study-metrics {
        gap: var(--spacing-sm);
    }

    .case-study-metrics .metric-value {
        font-size: 1.4rem;
    }

    .case-study-metrics .metric-label {
        font-size: 0.9rem;
    }
}

/* ================================
   ALTERNATIVE LAYOUTS FOR COMPONENTS
   ================================ */

/* Compact versions for smaller spaces */
.featured-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.featured-card.compact {
    padding: var(--spacing-md);
    flex-direction: row;
    align-items: center;
}

.featured-card.compact .featured-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.featured-card.compact h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.featured-card.compact .featured-excerpt {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

/* Horizontal layout for case studies */
.case-studies-grid.horizontal {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.case-study-card.horizontal {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
}

.case-study-card.horizontal .case-study-header {
    margin-bottom: 0;
}

.case-study-card.horizontal .case-study-metrics {
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* Asegurar que los botones sean clickeables */
.slider-nav {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.slider-dot {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Feedback visual mejorado */
.slider-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.slider-dot:active {
    transform: scale(0.9) !important;
}

/* Grid layout for documentation */
.documentation-grid.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doc-card.grid-4 {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
}

.doc-card.grid-4 .doc-icon {
    align-self: center;
    margin-bottom: var(--spacing-xs);
}

.doc-card.grid-4 h3 {
    font-size: 1.2rem;
}

.doc-card.grid-4 .doc-description {
    font-size: 1.1rem;
}



/* FORZAR ESTILOS DEL SLIDER */
.case-studies-slider .slider-container {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}

.case-studies-slider .slider-track {
    display: flex !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
}

.case-studies-slider .case-slide {
    min-width: 100% !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Asegurar que los controles sean clickeables */
.slider-nav, .slider-dot {
    pointer-events: auto !important;
    z-index: 1000 !important;
}



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

/* Base table styling */
.table {
    width: 100%;
    margin-bottom: var(--spacing-md);
    color: var(--text-white);
    border-collapse: collapse;
    background: transparent;
}

/* Table headers */
.table th {
    padding: var(--spacing-md);
    vertical-align: top;
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--dark-card), rgba(255, 255, 255, 0.02));
    color: var(--text-white);
    font-weight: 600;
    text-align: left;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Table cells */
.table td {
    padding: var(--spacing-md);
    vertical-align: top;
    border: 1px solid var(--border-light);
    background: var(--dark-bg-soft);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: background var(--transition-normal);
}

/* Hover effect for rows */
.table tbody tr:hover td {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

/* Bordered tables */
.table-bordered {
    border: 1px solid var(--border-light);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-light);
}

/* Striped tables */
.table-striped tbody tr:nth-of-type(odd) td {
    background: rgba(255, 255, 255, 0.02);
}

/* Dark variant */
.table-dark {
    background: var(--dark-bg);
}

.table-dark th {
    background: var(--dark-secondary);
    border-color: rgba(255, 255, 255, 0.15);
}

.table-dark td {
    background: var(--dark-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ================================
   RESPONSIVE TABLE WRAPPER
   ================================ */

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--dark-bg-soft);
}

.table-responsive .table {
    margin-bottom: 0;
    min-width: 650px; /* Minimum width before scrolling */
}

/* Scrollbar styling for table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ================================
   TABLE SIZES
   ================================ */

.table-sm th,
.table-sm td {
    padding: var(--spacing-xs);
    font-size: 1rem;
}

.table-lg th,
.table-lg td {
    padding: var(--spacing-lg);
    font-size: 1.3rem;
}

/* ================================
   SPECIAL TABLE CELLS
   ================================ */

/* Numeric cells */
.table .numeric {
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Status cells */
.table .status {
    text-align: center;
}

.table .status .badge {
    display: inline-block;
}

/* Action cells */
.table .actions {
    text-align: center;
    white-space: nowrap;
}

.table .actions .btn {
    margin: 0 2px;
    padding: 4px 8px;
    font-size: 0.9rem;
}

/* ================================
   TABLE COLOR VARIANTS
   ================================ */

/* Success row */
.table .table-success {
    background: rgba(0, 208, 132, 0.1) !important;
    border-color: rgba(0, 208, 132, 0.3) !important;
}

/* Warning row */
.table .table-warning {
    background: rgba(255, 184, 0, 0.1) !important;
    border-color: rgba(255, 184, 0, 0.3) !important;
}

/* Danger row */
.table .table-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Info row */
.table .table-info {
    background: rgba(0, 212, 255, 0.1) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
}

/* Primary row */
.table .table-primary {
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: var(--primary-blue) !important;
    color: var(--text-white) !important;
    font-weight: 600;
}

/* ================================
   SORTABLE TABLES
   ================================ */

.table .sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all var(--transition-normal);
}

.table .sortable:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-blue);
}

.table .sortable::after {
    content: '\2195';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 0.8rem;
}

.table .sortable.asc::after {
    content: '\2191';
    opacity: 1;
    color: var(--primary-blue);
}

.table .sortable.desc::after {
    content: '\2193';
    opacity: 1;
    color: var(--primary-blue);
}

/* ================================
   MOBILE RESPONSIVE BREAKPOINTS
   ================================ */

/* Stack table on very small screens */
@media (max-width: 576px) {
    .table-responsive-stack {
        border: none;
        overflow-x: visible;
    }

    .table-responsive-stack .table,
    .table-responsive-stack .table thead,
    .table-responsive-stack .table tbody,
    .table-responsive-stack .table th,
    .table-responsive-stack .table td,
    .table-responsive-stack .table tr {
        display: block;
    }

    .table-responsive-stack .table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-responsive-stack .table tr {
        background: var(--dark-bg-soft);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .table-responsive-stack .table td {
        border: none;
        position: relative;
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 40%;
        background: transparent;
    }

    .table-responsive-stack .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 35%;
        padding-right: var(--spacing-xs);
        white-space: nowrap;
        font-weight: 600;
        color: var(--primary-blue);
        font-size: 1rem;
    }
}

/* Specific responsive breakpoints */
.table-responsive-sm {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 576px) {
    .table-responsive-sm {
        display: table;
        overflow-x: visible;
    }
}

.table-responsive-md {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 768px) {
    .table-responsive-md {
        display: table;
        overflow-x: visible;
    }
}

.table-responsive-lg {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 1024px) {
    .table-responsive-lg {
        display: table;
        overflow-x: visible;
    }
}

.table-responsive-xl {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 1200px) {
    .table-responsive-xl {
        display: table;
        overflow-x: visible;
    }
}

/* ================================
   TABLE LOADING STATE
   ================================ */

.table-loading {
    position: relative;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.table-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
    z-index: 11;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ================================
   TABLE UTILITIES
   ================================ */

/* Text alignment */
.table .text-left { text-align: left !important; }
.table .text-center { text-align: center !important; }
.table .text-right { text-align: right !important; }

/* Vertical alignment */
.table .align-top { vertical-align: top !important; }
.table .align-middle { vertical-align: middle !important; }
.table .align-bottom { vertical-align: bottom !important; }

/* No wrap */
.table .text-nowrap { white-space: nowrap !important; }

/* Truncate long text */
.table .text-truncate {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================================
   EXAMPLE USAGE HTML STRUCTURE
   ================================ */

/*
<div class="table-responsive table-bordered">
    <table class="table table-striped">
        <thead>
            <tr>
                <th class="sortable">Name</th>
                <th class="sortable numeric">Price</th>
                <th class="text-center">Status</th>
                <th class="actions">Actions</th>
            </tr>
        </thead>
        <tbody>
            <tr class="table-primary">
                <td data-label="Name">Product 1</td>
                <td data-label="Price" class="numeric">$299</td>
                <td data-label="Status" class="status">
                    <span class="badge badge-success">Active</span>
                </td>
                <td data-label="Actions" class="actions">
                    <button class="btn btn-small btn-primary">Edit</button>
                    <button class="btn btn-small btn-secondary">Delete</button>
                </td>
            </tr>
        </tbody>
    </table>
</div>
*/


/* ================================
   LANGUAGE SELECTOR - VERSION CORREGIDA
   ================================ */

.language-selector {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-white);
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    min-width: 70px;
    justify-content: center;
    height: 100%; /* Para igualar altura con el botón */
}

.language-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.language-toggle i {
    font-size: 0.7rem;
    transition: transform var(--transition-normal);
}

.language-selector.active .language-toggle i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1001;
    min-width: 150px;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-blue);
}

.language-option.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-blue);
    font-weight: 600;
}

.language-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

/* ================================
   HEADER CTA GROUP - NUEVO
   ================================ */

.header-cta-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Desktop: Language selector en grupo con CTA */
.desktop-lang {
    display: inline-block;
}

.desktop-lang .language-toggle {
    /* Igualar altura con el botón */
    /*height: 40px; !* Ajusta según la altura de tu botón *!*/
    /*border-radius: var(--radius-md) 0 0 var(--radius-md);*/
    border-right: none;
}

.header-cta-group .btn-primary {
    /*border-radius: 0 var(--radius-md) var(--radius-md) 0;*/
    /*height: 40px; !* Misma altura *!*/
    display: flex;
    align-items: center;
}

.mobile-lang {
    display: none;
}

/* Mobile: Language selector en el nav-links */
@media (max-width: 768px) {
    .header-cta-group {
        display: none;
    }

    .desktop-lang {
        display: none;
    }

    .mobile-lang {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-lang .language-toggle {
        width: 100%;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        height: auto;
        border: 1px solid var(--border-light);
    }

    .mobile-lang .language-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: var(--spacing-sm);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        background: var(--dark-bg-soft);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-lang.active .language-dropdown {
        max-height: 200px;
    }

    .mobile-lang .language-option {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }

    /* Mostrar el CTA original en mobile */
    .desktop-cta {
        display: none;
    }
}

/* Asegurar que en desktop se oculte el CTA del mobile-nav */
@media (min-width: 769px) {
    .mobile-cta {
        display: none !important;
    }
}


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

.footer-section {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-3xl) 0 0 0;
}

/* Primer Bloque - Grid Principal */
.footer-main {
    margin-bottom: var(--spacing-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Logo y Brand */
.footer-brand {
    max-width: 100%;
}

.footer-logo h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-primary);
}

.footer-description {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-start;
}

.footer-badges .badge {
    font-size: 0.9rem;
}

/* Títulos de columna */
.footer-title {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.footer-links a:hover::before {
    width: 10px;
}

/* Información de contacto */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 1.1rem;
}

.contact-info a:hover {
    color: var(--primary-blue);
}

/* Segundo Bloque - Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--transition-normal);
    position: relative;
}

.legal-links a:hover {
    color: var(--primary-blue);
}

.legal-links a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: calc(-1 * var(--spacing-lg) / 2);
    color: var(--border-light);
}

.footer-copyright p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.1rem;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .footer-title {
        text-align: center;
        border-bottom: none;
        margin-bottom: var(--spacing-md);
    }

    .footer-badges {
        justify-content: center;
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }

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

    .legal-links {
        justify-content: center;
        gap: var(--spacing-md);
    }

    .legal-links a:not(:last-child)::after {
        right: calc(-1 * var(--spacing-md) / 2);
    }
}

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

    .footer-main {
        margin-bottom: var(--spacing-xl);
    }

    .legal-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .legal-links a:not(:last-child)::after {
        display: none;
    }

    .footer-grid {
        gap: var(--spacing-xl);
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .contact-item i {
        font-size: 1.5rem;
    }
}

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

.footer-column {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects para las columnas */
.footer-column:hover .footer-title {
    color: var(--primary-blue);
    transition: color var(--transition-normal);
}

/* Efecto especial para el logo */
.footer-logo h3 {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-normal);
}

.footer-brand:hover .footer-logo h3 {
    background: linear-gradient(135deg, var(--text-white), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   COOKIES BANNER - PROFESSIONAL VERSION
   ================================ */

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 24px;
}

.cookies-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.cookies-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
}

.cookies-message {
    flex: 1;
    min-width: 0;
}

.cookies-message p {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookies-message a {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}

.cookies-message a:hover {
    color: #1d4ed8;
}

.cookies-controls {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ================================
   COOKIE BUTTONS
   ================================ */

.btn-cookies {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 40px;
}

.btn-cookies-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-cookies-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-cookies-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-cookies-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.btn-cookies-outline {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-cookies-outline:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* ================================
   COOKIES MODAL
   ================================ */

.cookies-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookies-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookies-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookies-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 5vh auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.cookies-modal.show .cookies-modal-content {
    transform: translateY(0) scale(1);
}

.cookies-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cookies-modal-header h3 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.cookies-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookies-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.cookies-modal-body {
    padding: 24px;
}

.cookies-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookies-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cookies-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.category-info p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.category-toggle {
    flex-shrink: 0;
}

/* ================================
   TOGGLE SWITCH
   ================================ */

.category-toggle input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    display: block;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 10px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: #3b82f6;
}

.category-toggle input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.category-toggle input[type="checkbox"]:disabled + .toggle-switch {
    opacity: 0.6;
    cursor: not-allowed;
    background: #10b981;
}

/* ================================
   MODAL FOOTER AND LINKS
   ================================ */

.cookies-links {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 16px;
}

.cookies-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.cookies-links a:hover {
    text-decoration: underline;
}

.cookies-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

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

@media (max-width: 768px) {
    .cookies-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        text-align: center;
    }

    .cookies-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cookies-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-cookies {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }

    .cookies-modal-content {
        margin: 2vh auto;
        width: 95%;
        max-height: 95vh;
    }

    .cookies-modal-header,
    .cookies-modal-body {
        padding: 16px;
    }

    .cookies-modal-footer {
        padding: 12px 16px 16px;
        flex-direction: column;
    }

    .category-header {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }

    .cookies-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookies-controls {
        flex-direction: column;
        width: 100%;
    }

    .btn-cookies {
        width: 100%;
    }

    .cookies-message p {
        font-size: 13px;
    }

    .cookies-modal-header h3 {
        font-size: 18px;
    }
}

/* ================================
   DARK MODE SUPPORT (si se necesita)
   ================================ */

@media (prefers-color-scheme: dark) {
    .cookies-banner {
        background: #1f2937;
        border-top-color: #374151;
    }

    .cookies-icon {
        background: #374151;
        color: #9ca3af;
    }

    .cookies-message p {
        color: #d1d5db;
    }

    .cookies-modal-content {
        background: #1f2937;
    }

    .cookies-modal-header {
        border-bottom-color: #374151;
    }

    .cookies-modal-header h3 {
        color: #f9fafb;
    }

    .cookies-description {
        color: #9ca3af;
    }

    .cookies-category {
        background: #111827;
        border-color: #374151;
    }

    .category-info h4 {
        color: #f9fafb;
    }

    .category-info p {
        color: #9ca3af;
    }

    .cookies-links {
        border-top-color: #374151;
    }

    .cookies-modal-footer {
        border-top-color: #374151;
    }
}
