/* ============================================
   PREMIUM DESIGN SYSTEM - SOLUCIONES SANITARIAS
   ============================================ */

:root {
    /* Brand Colors - Premium Orange Palette */
    --color-primary-50: #fff7ed;
    --color-primary-100: #ffedd5;
    --color-primary-200: #fed7aa;
    --color-primary-300: #fdba74;
    --color-primary-400: #fb923c;
    --color-primary-500: #f97316;
    --color-primary-600: #ea580c;
    --color-primary-700: #c2410c;
    --color-primary-800: #9a3412;
    --color-primary-900: #7c2d12;

    /* Neutral Colors - Modern Slate */
    --color-neutral-50: #f9fafb;
    --color-neutral-100: #f3f4f6;
    --color-neutral-200: #e5e7eb;
    --color-neutral-300: #d1d5db;
    --color-neutral-400: #9ca3af;
    --color-neutral-500: #6b7280;
    --color-neutral-600: #4b5563;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;

    /* Semantic Colors */
    --color-background: #ffffff;
    --color-surface: #fafafa;
    --color-text-primary: #171717;
    --color-text-secondary: #525252;
    --color-text-tertiary: #737373;
    --color-border: #e5e5e5;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-glow: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(234, 88, 12, 0.2) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.2) 0px, transparent 50%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.4), 0 0 80px rgba(249, 115, 22, 0.2);
    --shadow-glow-intense: 0 0 60px rgba(249, 115, 22, 0.6), 0 0 120px rgba(249, 115, 22, 0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.5;
    z-index: -1;
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
    position: relative;
}

/* ============================================
   NAVIGATION - GLASSMORPHISM
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand img {
    height: 60px;
    width: auto;
    transition: all var(--transition-base);
}

.nav-brand img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    position: relative;
    padding: var(--space-2) 0;
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary-600);
    transform: translateY(-2px);
}

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

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

/* Admin Link Icon */
.admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(234, 88, 12, 0.1);
    transition: all var(--transition-base);
}

.admin-link span {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary-600);
}

.admin-link svg {
    stroke: var(--color-primary-600);
    transition: all var(--transition-base);
}

.admin-link:hover {
    background: rgba(234, 88, 12, 0.2);
    transform: translateY(-2px);
}

.admin-link:hover span {
    color: var(--color-primary-700);
}

.admin-link:hover svg {
    stroke: var(--color-primary-700);
    transform: scale(1.1);
}

.admin-link::after {
    display: none;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: var(--text-xs);
    margin-left: var(--space-1);
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: var(--space-3);
    margin-top: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all var(--transition-bounce);
    z-index: var(--z-dropdown);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    transition: left var(--transition-base);
    z-index: -1;
}

.dropdown-menu a:hover::before {
    left: 0;
}

.dropdown-menu a:hover {
    color: var(--color-primary-600);
    transform: translateX(8px);
}

.btn-primary-nav {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    position: relative;
    overflow: hidden;
}

.btn-primary-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn-primary-nav:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-nav::after {
    display: none;
}

.btn-primary-nav:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   HERO SECTION - SPECTACULAR
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.9);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(249, 115, 22, 0.85) 0%,
            rgba(234, 88, 12, 0.75) 50%,
            rgba(194, 65, 12, 0.85) 100%);
    z-index: 1;
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 0.85;
    }

    50% {
        opacity: 0.75;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title-main {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    margin-bottom: var(--space-2);
}

.hero-title-sub {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: var(--font-medium);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-16);
}

.hero-stats {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
    margin-top: var(--space-8);
    padding: var(--space-6) var(--space-10);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.95);
    font-weight: var(--font-semibold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    animation: bounce 2s ease-in-out infinite;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-scroll:hover {
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 15px);
    }
}

/* ============================================
   BUTTONS - PREMIUM
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
    transition: all var(--transition-bounce);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow-intense);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-clear-cart {
    background: transparent;
    color: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
    font-weight: var(--font-semibold);
}

.btn-clear-cart:hover {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    border-color: var(--color-primary-700);
    transform: translateY(-2px);
}

.btn-add-to-cart {
    background: white;
    color: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
    font-weight: var(--font-semibold);
}

.btn-add-to-cart:hover {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    border-color: var(--color-primary-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-service {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    backdrop-filter: blur(10px);
}

.btn-service:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-20);
    animation: fadeInUp 0.8s ease-out;
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    background: var(--gradient-glow);
    color: var(--color-primary-700);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--color-primary-200);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(249, 115, 22, 0.2);
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--space-5);
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ============================================
   SERVICES SECTION - SPECTACULAR CARDS
   ============================================ */

.services-section {
    background: linear-gradient(180deg, var(--color-surface) 0%, white 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
}

.service-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-3xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-bounce);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

/* Video de fondo con overlay naranja */
.service-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transform: scale(1.1);
}

.service-card-video.loaded {
    opacity: 1;
}

/* Overlay naranja sobre el video */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.85) 0%, rgba(194, 65, 12, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-3xl);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: 2;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.2);
    border-color: var(--color-primary-300);
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: white;
    font-size: 2rem;
    transition: all var(--transition-bounce);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.service-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: white;
    position: relative;
    z-index: 2;
}

.service-description {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
    line-height: 1.6;
    flex-grow: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about-values {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.value-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.value-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.value-content h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
    color: var(--color-text-primary);
}

.value-content p {
    color: var(--color-text-secondary);
}

.about-image {
    position: relative;
}

.about-image-card {
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: rotate(3deg);
    transition: transform var(--transition-slow);
}

.about-image:hover .about-image-card {
    transform: rotate(0);
}

.about-badge-float {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 3s ease-in-out infinite;
}

.badge-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-text {
    font-weight: var(--font-bold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 1px;
}

/* ============================================
   TECHNICAL SERVICE SECTION
   ============================================ */

.technical-service-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.technical-service-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.technical-service-content {
    position: relative;
    z-index: 1;
}

.technical-service-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.technical-badge {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.technical-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: var(--space-6);
}

.technical-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.technical-service-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.technical-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

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

.technical-service-card:hover::before {
    transform: scaleX(1);
}

.technical-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.technical-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.technical-service-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.technical-service-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.service-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: var(--color-primary-100);
    color: var(--color-primary-600);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-xs);
    flex-shrink: 0;
}

.technical-cta {
    position: relative;
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--color-primary-500);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.technical-cta-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.technical-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(249, 115, 22, 0.75);
    z-index: 2;
}

.technical-cta-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.technical-cta-content {
    flex: 1;
    min-width: 300px;
}

.technical-cta-content h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: white;
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.technical-cta-content p {
    color: white;
    font-size: var(--text-base);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.technical-cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.technical-cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.technical-cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--color-primary-600);
    border-color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .technical-services-grid {
        grid-template-columns: 1fr;
    }
    
    .technical-cta {
        min-height: auto;
    }
    
    .technical-cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .technical-cta-content {
        min-width: auto;
    }
    
    .technical-cta-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .technical-cta-buttons .btn {
        flex: 1;
        min-width: 150px;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-10);
    background: white;
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.contact-info {
    display: grid;
    gap: var(--space-6);
}

.contact-card {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.contact-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.contact-card h3 {
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.contact-note {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin-top: var(--space-2);
}

.contact-form {
    display: grid;
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--text-base);
    transition: all var(--transition-base);
    background: var(--color-surface);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-500);
    background: white;
    box-shadow: 0 0 0 4px var(--color-primary-100);
}

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

.footer {
    background: var(--color-neutral-900);
    color: white;
    padding: var(--space-20) 0 var(--space-10);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

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

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-6);
    filter: brightness(0) invert(1);
}

.footer-description {
    color: var(--color-neutral-400);
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--color-neutral-400);
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-primary-500);
    padding-left: var(--space-2);
}

.footer-credit {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-credit p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-credit strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-semibold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--color-neutral-500);
    font-size: var(--text-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-8);
        transform: translateY(-100%);
        transition: transform var(--transition-bounce);
        z-index: -1;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hero-title-main {
        font-size: var(--text-4xl);
    }

    .hero-title-sub {
        font-size: var(--text-3xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

/* Fix: Align service card buttons */
.service-description {
    flex-grow: 1;
    margin-bottom: var(--space-6);
}

.service-card .btn-service {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.products-section .catalog-button-container {
    text-align: center;
    margin-top: var(--space-12);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: white;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-bounce);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.15);
}

.product-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--color-primary-600);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    z-index: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--color-gray-50);
}

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

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

.product-content {
    padding: var(--space-8);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

.product-description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.feature-tag {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
}

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

/* ============================================
   VIDEO BACKGROUND FOR SERVICE PAGES
   ============================================ */

/* Make page-hero taller and ready for video */
.page-hero {
    min-height: 500px !important;
    padding: 8rem 0 6rem !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-hero .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-hero .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.9);
}

.page-hero .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(249, 115, 22, 0.85) 0%,
            rgba(234, 88, 12, 0.75) 50%,
            rgba(194, 65, 12, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Video background */
.page-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Overlay naranja semitransparente */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.75) 0%, rgba(194, 65, 12, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Contenido encima del video y overlay */
.page-hero-content {
    position: relative;
    z-index: 10 !important;
}

/* Asegurar que todo el texto sea blanco y visible */
.page-hero,
.page-hero *:not(.page-hero-video) {
    color: white !important;
}


.page-hero.hero-enfermeria,
.page-hero.hero-desfibriladores,
.page-hero.hero-formacion,
.page-hero.hero-asesoria {
    min-height: 800px;
    height: 800px;
}

.page-hero.hero-mantenimiento {
    min-height: 800px;
    height: 800px;
}

.page-hero.hero-simulacros {
    min-height: 800px;
    height: 800px;
}

.page-hero.hero-acompanamientos {
    min-height: 800px;
    height: 800px;
}

.page-hero.hero-catalogo,
.page-hero.hero-equipamiento {
    min-height: 600px;
    padding-bottom: 4rem !important;
}

@media (max-width: 768px) {
    .page-hero.hero-enfermeria,
    .page-hero.hero-formacion,
    .page-hero.hero-asesoria {
        min-height: 600px;
        height: auto;
    }

    .page-hero.hero-mantenimiento {
        min-height: 600px;
        height: auto;
    }

    .page-hero.hero-simulacros {
        min-height: 600px;
        height: auto;
    }

    .page-hero.hero-acompanamientos {
        min-height: 600px;
        height: auto;
    }

    .page-hero.hero-catalogo,
    .page-hero.hero-equipamiento {
        min-height: 500px;
        height: auto;
    }
}

.breadcrumb a {
    color: white !important;
    opacity: 0.95;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-title {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-description {
    color: white !important;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}


/* ============================================
   SERVICE PAGES STYLES
   ============================================ */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    min-height: 500px;
    padding: 8rem 0 6rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    transition: opacity var(--transition-base);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span:not(.stat-label) {
    opacity: 0.6;
}

.page-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.page-description {
    font-size: var(--text-xl);
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-12);
    margin-top: var(--space-12);
}

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

    .sidebar {
        order: -1;
    }
}

.main-content {
    min-width: 0;
}

.content-block {
    margin-bottom: var(--space-16);
}

.content-block h2 {
    margin-bottom: var(--space-6);
}

.content-block p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin: var(--space-10) 0;
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-box {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-bounce);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.1);
    border-color: var(--color-primary-200);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-box h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.feature-box p {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

/* Type Cards */
.type-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.type-card h3 {
    color: var(--color-primary-600);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.type-card p {
    margin-bottom: var(--space-6);
}

/* Check List */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding-left: var(--space-8);
    margin-bottom: var(--space-3);
    position: relative;
    color: var(--color-text-secondary);
}

.check-list li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--color-primary-600);
    font-weight: bold;
    font-size: var(--text-lg);
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.benefit-item {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

.benefit-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
}

.benefit-content h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.benefit-content p {
    margin: 0;
}

/* Services List */
.services-list {
    display: grid;
    gap: var(--space-4);
}

.service-item {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-primary-500);
}

.service-item h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.service-item p {
    margin: 0;
    font-size: var(--text-sm);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.sidebar-card h3,
.sidebar-card h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.sidebar-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.sidebar-card .btn {
    margin-bottom: var(--space-3);
}

.sidebar-card .btn:last-child {
    margin-bottom: 0;
}

.sidebar-card .btn svg {
    margin-right: var(--space-2);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, var(--color-primary-100) 100%);
    border-color: var(--color-primary-200);
}

/* DESA CTA Card con video de fondo */
.desa-cta-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: none;
}

.desa-cta-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.1);
}

/* Overlay naranja sobre el video (igual que service cards) */
.desa-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.85) 0%, rgba(194, 65, 12, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.desa-cta-content {
    position: relative;
    z-index: 2;
    padding: var(--space-8);
    color: white;
}

.desa-cta-content h3 {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.desa-cta-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Botones transparentes con borde blanco */
.desa-cta-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    color: white !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.desa-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.desa-cta-btn svg {
    fill: white;
}

/* Stats Card */
.stats-card {
    background: var(--color-neutral-900);
    color: white;
}

.stat-box {
    text-align: center;
    padding: var(--space-6) 0;
}

.stat-box:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-4);
}

.stat-box .stat-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-primary-400);
    margin-bottom: var(--space-2);
}

.stat-box .stat-label {
    display: block;
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    padding: var(--space-20) 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

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

.cta-content h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: var(--text-xl);
    opacity: 0.95;
    margin-bottom: var(--space-10);
}

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

@media (max-width: 768px) {
    .page-title {
        font-size: var(--text-3xl);
    }

    .page-description {
        font-size: var(--text-lg);
    }

    .cta-content h2 {
        font-size: var(--text-2xl);
    }

    .cta-content p {
        font-size: var(--text-base);
    }
}

/* ============================================
   CATALOG PAGE
   ============================================ */

.catalog-page {
    background: var(--color-background);
}

.hero-catalogo .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(6px);
}

.catalog-container {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: var(--space-16) var(--space-6);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-8);
}

.catalog-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.catalog-controls {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.control-group label {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.control-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: white;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ea580c' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 12px;
    padding-right: calc(var(--space-4) + 16px);
}

.control-group select:hover {
    border-color: var(--color-primary-400);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.control-group select:focus {
    outline: none;
    border-color: var(--color-primary-600);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
}

.input-with-icon input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: var(--text-base);
}

.input-with-icon input:focus {
    outline: none;
}

.catalog-footer-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.catalog-footer-status span {
    font-size: var(--text-xs);
    color: var(--color-primary-600);
    font-weight: 500;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.catalog-product-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.catalog-product-card .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
    background: #f3f4f6;
}

.catalog-product-card .product-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.catalog-product-card .product-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary-600);
}

.catalog-product-card .product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.catalog-product-card .product-tags span {
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: 600;
}

.catalog-product-card .card-footer {
    display: flex;
    gap: var(--space-3);
}

.catalog-product-card .card-footer .btn {
    flex: 1;
    justify-content: center;
}

.cart-panel {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: sticky;
    top: var(--space-10);
    height: fit-content;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.cart-badge {
    background: var(--color-primary-600);
    color: white;
    border-radius: 999px;
    padding: var(--space-2) var(--space-4);
    font-weight: 700;
}

.cart-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-height: 420px;
    overflow-y: auto;
}

.cart-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-1) var(--space-2);
}

.quantity-input button {
    border: none;
    background: transparent;
    font-size: var(--text-lg);
    cursor: pointer;
    color: var(--color-text-primary);
}

.quantity-input input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
}

.cart-summary {
    border-top: 1px dashed var(--color-border);
    padding-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-lg);
}

.order-summary textarea {
    width: 100%;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    font-family: var(--font-body);
    resize: vertical;
}

.order-actions {
    display: flex;
    gap: var(--space-3);
}

.empty-cart {
    text-align: center;
    color: var(--color-text-secondary);
}

.catalog-help {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

.catalog-help-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.catalog-help-actions .btn {
    width: auto;
}

/* Modal para enviar pedido */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    height: auto;
}

.modal-content:not([data-scrollbar]) {
    overflow-y: auto;
}

/* Scrollbar personalizado para modales */
.modal-content[data-scrollbar] {
    --card-border-radius: 20px;
    --thumb-color: #ea580c;
    --thumb-color-active: #c2410c;
    --thumb-width: 4;
    --thumb-width-active: 6;
    --track-color: transparent;
    --track-color-active: rgba(234, 88, 12, 0.1);
    --track-width: 4;
    --track-width-active: 6;
    overflow: hidden;
    contain: size;
    height: auto;
    max-height: 90vh;
}

.modal-content .scroll-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.5rem 1rem 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge Legacy */
}

.modal-content[data-scrollbar] {
    height: auto;
    max-height: 90vh;
}

.modal-content .scroll-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.modal-content .scrollbar-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.modal-content .scrollbar-svg:has(:active) {
    --thumb-width: var(--thumb-width-active);
    --track-width: var(--track-width-active);
    --track-color: var(--track-color-active);
}

.modal-content .scrollbar-track {
    fill: none;
    stroke: var(--track-color);
    stroke-width: var(--track-width);
    stroke-linecap: round;
    transition: stroke-width 150ms ease-in-out, stroke 150ms ease-in-out;
}

.modal-content .scrollbar-thumb {
    fill: none;
    stroke: var(--thumb-color);
    stroke-width: var(--thumb-width);
    stroke-linecap: round;
    pointer-events: auto;
    cursor: grab;
    transition: stroke-width 150ms ease-in-out, stroke 150ms ease-in-out;
}

.modal-content .scrollbar-thumb:active {
    stroke: var(--thumb-color-active);
    cursor: grabbing;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    margin: 0;
    color: var(--color-primary-600);
    font-size: var(--text-2xl);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--color-gray-100);
    color: var(--color-text-primary);
}

.modal-body {
    padding: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: all 0.2s;
}

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

.order-preview {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.order-preview h3 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-text-primary);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-item {
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.order-item-header {
    margin-bottom: var(--space-2);
}

.order-item-details {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.order-total {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 2px solid var(--color-border);
    text-align: right;
    font-size: var(--text-lg);
    color: var(--color-primary-600);
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    justify-content: flex-end;
}

.form-actions .btn {
    min-width: 120px;
}

@media (max-width: 1200px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .catalog-container {
        padding: var(--space-10) var(--space-4);
    }

    .catalog-product-card img {
        height: 180px;
    }

    .order-actions {
        flex-direction: column;
    }
}

/* ============================================
   DESFIBRILADORES MAP & AUTH
   ============================================ */

#devices-map {
    min-height: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

#devices-map .leaflet-container {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 16px;
}

/* Modal Styles */
#device-details-modal,
#login-modal {
    backdrop-filter: blur(4px);
}

#device-details-modal > div,
#login-modal > div {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Owner Panel */
#owner-panel {
    margin-top: 2rem;
}

#owner-panel h3 {
    color: var(--color-primary-700);
    margin-bottom: 0.5rem;
}

#owner-panel button {
    transition: all 0.3s ease;
}

#owner-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Technician Panel */
#technician-panel {
    border-left-width: 4px;
}

#technician-panel h3 {
    color: var(--color-primary-700);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* User Panel in Sidebar */
#user-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#user-info p {
    color: white;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Responsive Map */
@media (max-width: 768px) {
    #devices-map {
        height: 400px;
    }
}