/* =====================================================
   DESIGN SYSTEM - SAP BUSINESS ONE INSPIRED
   ===================================================== */

:root {
    /* SAP Business One Color Palette */
    --primary-blue: #0070F2;
    --primary-blue-light: #2E8BFF;
    --primary-blue-dark: #0052B4;
    --primary-glow: rgba(0, 112, 242, 0.5);

    /* Dark Luxury Background */
    --bg-primary: #0A0E1A;
    --bg-secondary: #0F1420;
    --bg-tertiary: #151B2B;
    --bg-card: rgba(20, 26, 42, 0.6);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-tertiary: #7A8BA0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    --gradient-radial: radial-gradient(circle at center, var(--primary-blue) 0%, transparent 70%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.9) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);
}

/* =====================================================
   LIGHT MODE THEME
   ===================================================== */

[data-theme="light"] {
    /* SAP Business One Color Palette - slightly deeper for contrast */
    --primary-blue: #0054B4;
    --primary-blue-light: #0070F2;
    --primary-blue-dark: #003D85;
    --primary-glow: rgba(0, 84, 180, 0.25);

    /* Light Professional Background */
    --bg-primary: #F4F6F9;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E8EDF3;
    --bg-card: rgba(255, 255, 255, 0.85);

    /* Glassmorphism - Light */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 84, 180, 0.12);
    --glass-shadow: rgba(0, 84, 180, 0.08);

    /* Text Colors - Light */
    --text-primary: #1A2233;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;

    /* Gradients - Light */
    --gradient-primary: linear-gradient(135deg, #0054B4 0%, #0070F2 100%);
    --gradient-radial: radial-gradient(circle at center, rgba(0, 84, 180, 0.15) 0%, transparent 70%);
    --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(244, 246, 249, 0.95) 100%);

    /* Shadows - Light */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 84, 180, 0.15);
}

/* =====================================================
   THEME TOGGLE BUTTON
   ===================================================== */

.theme-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 3px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 12px var(--primary-glow);
}

.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-toggle-thumb svg {
    width: 12px;
    height: 12px;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Moon icon (dark mode active) */
.theme-toggle .icon-moon {
    display: block;
}

.theme-toggle .icon-sun {
    display: none;
}

/* Sun icon (light mode active) */
[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(22px);
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 84, 180, 0.08);
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* =====================================================
   PARTICLES BACKGROUND
   ===================================================== */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top, rgba(0, 112, 242, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 112, 242, 0.1) 0%, transparent 50%);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-img {
    height: 44px;
    width: auto;
}

/* Theme-aware logo: dark logo visible by default */
.nav-logo .logo-light {
    display: none;
}

.nav-logo .logo-dark {
    display: block;
}

/* In light mode, swap visibility */
[data-theme="light"] .nav-logo .logo-light {
    display: block;
}

[data-theme="light"] .nav-logo .logo-dark {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* =====================================================
   PARTNER BADGE
   ===================================================== */

.partner-badge {
    margin-top: 80px;
    padding: var(--spacing-sm) 0;
    background: var(--gradient-primary);
    position: relative;
    z-index: 10;
}

.badge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-radial);
    opacity: 0.3;
    filter: blur(100px);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.label-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(0, 112, 242, 0.4));
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-radial);
    opacity: 0.4;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    transform: rotate(-45deg);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   NOVEDADES SECTION
   ===================================================== */

.novedades {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.novedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.novedad-card {
    padding: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.novedad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.novedad-content {
    padding: var(--spacing-md);
}

.novedad-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.novedad-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =====================================================
   SERVICIOS SECTION - FLIP CARDS
   ===================================================== */

.servicios {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    row-gap: var(--spacing-lg);
    /* Más espacio vertical entre filas */
    margin-bottom: var(--spacing-lg);
    justify-items: center;
}

.flip-card {
    width: 100%;
    max-width: 380px;
    height: 400px;
    perspective: 1000px;
    margin-bottom: var(--spacing-md);
    /* Espacio adicional debajo de cada card */
    position: relative;
    /* Necesario para z-index */
    z-index: 1;
    /* Base z-index */
}

/* Elevar la card cuando está en hover */
.flip-card:hover {
    z-index: 10;
    /* Elevar sobre las demás cards */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
    transform-style: preserve-3d;
    /* NO overflow hidden aquí - necesario para mostrar ambas caras en 3D */
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    /* CRÍTICO: Ambas caras en la misma posición vertical */
    left: 0;
    /* CRÍTICO: Ambas caras en la misma posición horizontal */
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.flip-card-front {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.flip-card:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--gradient-overlay);
    pointer-events: none;
}

.service-title {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--spacing-md);
    text-align: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    height: 100%;
    max-height: 400px;
}

.flip-card-back h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    color: var(--primary-blue-light);
}

.flip-card-back p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 100%;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 20, 40, 0.6);
    border: 1.5px solid var(--primary-blue);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-blue-light);
    white-space: nowrap;
    transition: all var(--transition-normal);
}

.tag:hover {
    background: rgba(0, 112, 242, 0.2);
    border-color: var(--primary-blue-light);
    transform: translateY(-2px);
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 2px solid var(--glass-border);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-radial);
    opacity: 0.3;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.about-content {
    padding: var(--spacing-md);
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =====================================================
   PARTNERS SECTION
   ===================================================== */

.partners {
    padding: var(--spacing-lg) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
    justify-items: center;
    margin-top: var(--spacing-lg);
}

.partner-logo {
    padding: var(--spacing-md);
    transition: var(--transition-normal);
    /* Logos a todo color - sin filtro grayscale */
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-logo img {
    max-height: 80px;
    width: auto;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: var(--gradient-radial);
    opacity: 0.4;
    filter: blur(120px);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.btn-primary.btn-large {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition-normal);
}

.info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.info-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    padding: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-blue-light);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--glass-border);
    color: var(--text-tertiary);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 4px 40px var(--primary-glow), 0 0 60px var(--primary-glow);
    }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-lg);
        transition: var(--transition-normal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* =====================================================
   LIGHT MODE COMPONENT OVERRIDES
   Handles hardcoded rgba/color values not covered by
   CSS custom properties
   ===================================================== */

/* Smooth theme transition */
html {
    transition: background-color 0.4s ease, color 0.4s ease;
}

html[data-theme="light"] body {
    color: var(--text-primary);
}

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 84, 180, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Nav toggle (hamburger) */
[data-theme="light"] .nav-toggle span {
    background: var(--text-primary);
}

/* Mobile menu */
@media (max-width: 768px) {
    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
}

/* Particles */
[data-theme="light"] .particles-container {
    background:
        radial-gradient(ellipse at top, rgba(0, 84, 180, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 84, 180, 0.04) 0%, transparent 50%);
    opacity: 0.6;
}

/* Partner badge */
[data-theme="light"] .partner-badge {
    background: var(--gradient-primary);
}

[data-theme="light"] .partner-badge .badge-text,
[data-theme="light"] .partner-badge .badge-icon {
    color: #FFFFFF;
}

/* Hero */
[data-theme="light"] .hero-image {
    filter: drop-shadow(0 20px 40px rgba(0, 84, 180, 0.2));
}

/* Glass cards */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 84, 180, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Flip card back */
[data-theme="light"] .flip-card-back {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 84, 180, 0.12);
}

[data-theme="light"] .flip-card-back h3 {
    color: var(--primary-blue);
}

/* Tags */
[data-theme="light"] .tag {
    background: rgba(0, 84, 180, 0.06);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

[data-theme="light"] .tag:hover {
    background: rgba(0, 84, 180, 0.12);
}

/* Buttons */
[data-theme="light"] .btn-primary {
    color: #FFFFFF;
}

[data-theme="light"] .btn-secondary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

[data-theme="light"] .btn-secondary:hover {
    color: #FFFFFF;
    background: var(--primary-blue);
}

/* Form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #FFFFFF;
    border-color: rgba(0, 84, 180, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: var(--text-tertiary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 84, 180, 0.12);
}

/* Footer */
[data-theme="light"] .footer {
    background: #1A2233;
    color: #FFFFFF;
}

[data-theme="light"] .footer .footer-col h4,
[data-theme="light"] .footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .footer .footer-description,
[data-theme="light"] .footer .footer-links li,
[data-theme="light"] .footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .footer .footer-links a:hover {
    color: var(--primary-blue-light);
}

[data-theme="light"] .footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

[data-theme="light"] .footer .social-link svg {
    fill: #FFFFFF;
}

[data-theme="light"] .footer .social-link:hover {
    background: var(--gradient-primary);
}

/* Partners */
[data-theme="light"] .partners {
    background: #FFFFFF;
}

/* CTA Section */
[data-theme="light"] .cta-section::before {
    opacity: 0.2;
}

/* Hero label */
[data-theme="light"] .hero-label {
    background: rgba(0, 84, 180, 0.06);
    border-color: rgba(0, 84, 180, 0.12);
}

/* Info items (contact) */
[data-theme="light"] .info-icon svg {
    stroke: var(--primary-blue);
}

/* SVG icons adapt */
[data-theme="light"] .feature-icon svg {
    stroke: #FFFFFF;
}

/* Servicios page alternates */
[data-theme="light"] .service-detail.alternate {
    background: #FFFFFF;
}

/* Features list in light */
[data-theme="light"] .features-list li {
    background: rgba(0, 84, 180, 0.03);
    border-color: rgba(0, 84, 180, 0.1);
}

[data-theme="light"] .features-list li:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(0, 84, 180, 0.1);
}