/* CSS Variables - Blue Skill Dark Mode (Apple Style) */
:root {
    /* Color Palette */
    --bg-color: #000000;
    /* Pure Black for premium feel */
    --bg-secondary: #000000;
    /* Keeping consistent or slight variation */
    --section-bg: #161617;
    /* Dark Grey for contrast sections */
    --card-bg: #1c1c1e;
    /* Card background */

    --text-color: #F5F5F7;
    /* Apple Off-White */
    --text-muted: #86868b;
    /* Apple Muted Grey */
    --text-highlight: #FFFFFF;

    --accent-blue: #2997FF;
    /* Apple System Blue Dark Mode */
    --accent-blue-hover: #007AFF;

    --nav-bg: rgba(22, 22, 23, 0.8);
    /* Dark frosted glass */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
    /* Overlap navbar (54px) by 4px to hide previous section bleed */
    /* Global offset for fixed header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
.nav-logo {
    font-family: var(--font-heading);
}

h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-highlight);
}

h2 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--text-highlight);
}

h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-highlight);
}

p {
    font-size: 19px;
    font-weight: 400;
    color: var(--text-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    p {
        font-size: 17px;
    }

    /* Hero Video Mobile Boost */
    .hero-image-container {
        width: 100%;
        height: auto;
        min-height: 400px;
        margin-top: 20px;
    }

    .product-img-hero {
        transform: scale(1.15);
        /* Aumentamos el tamaño visual un 15% */
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }

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

    .mobile-video {
        display: block !important;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

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

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 54px;
    /* Slightly more compact */
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: background 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.logo-img {
    height: 40px;
    /* Adjusted from 60px to fit in 54px navbar */
    width: auto;
    /* Allow full width to show icon + text from image */
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--accent-blue);
}

.nav-gratitud-img {
    height: 34px;
    /* Slightly reduced */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.nav-gratitud-img:hover {
    transform: scale(1.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* .btn.small-btn must override .btn base styles */
.btn.small-btn {
    font-size: 13px;
    padding: 6px 14px;
}

@media (max-width: 768px) {
    .btn.small-btn {
        font-size: 12px;
        padding: 5px 12px;
        margin: 0 2px;
    }

    .nav-actions {
        gap: 8px;
        /* Closer together on mobile */
    }

    .nav-gratitud-img {
        height: 26px;
        /* Reduced to fit better */
    }

    .logo-img {
        height: 34px;
        /* Reduced to fit comfortably in 54px bar */
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-color);
}

.mobile-menu {
    position: absolute;
    top: 54px;
    /* Matches navbar height */
    left: 0;
    width: 100%;
    background: var(--bg-color);
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
    display: flex;
    flex-direction: column;
}

.mobile-menu a {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu.open {
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 980px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 5px;
}

.btn.primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn.primary:hover {
    background-color: var(--accent-blue-hover);
    transform: scale(1.02);
}

.btn.secondary {
    color: var(--accent-blue);
}

.btn.secondary:hover {
    text-decoration: underline;
}

.apple-link {
    color: #0066cc;
    /* Apple Blue for light backgrounds */
    font-size: 19px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    margin-top: 15px;
}

.apple-link:hover {
    text-decoration: underline;
}

.apple-link::after {
    content: '›';
    margin-left: 6px;
    font-size: 1.15em;
    line-height: 0;
    position: relative;
    top: -1px;
}

/* Color override for dark sections */
.hero .apple-link,
#active-security .apple-link {
    color: #2997ff;
    /* Lighter blue for dark backgrounds */
}

#active-security .apple-link:hover {
    color: #66b2ff;
}

#cctv .apple-link,
#about .apple-link,
.ecosystem-section .apple-link {
    color: #0066cc;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    background-color: var(--bg-color);
    /* No dark gradient needed for light mode */
}

.hero-title {
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 28px;
    /* Increased from 24px */
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero .apple-link {
    margin-top: 0;
}

.hero-image-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img-hero {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    /* Adds depth */
}

/* Visibility classes for hero videos */
.mobile-video {
    display: none;
}

.desktop-video {
    display: block;
}

/* Statement Section */
.statement {
    padding: 120px 24px;
    text-align: center;
    background: var(--bg-color);
}

.statement p {
    font-size: 36px;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
    color: var(--text-highlight);
}

.highlight-text {
    color: var(--text-muted);
    display: block;
    margin-top: 10px;
}

/* Grid Features - Ecosystem */
.ecosystem-section {
    padding: 140px 24px;
    background: #ffffff;
    background-image: radial-gradient(rgba(0, 242, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    /* Technical dot grid pattern */
    position: relative;
    overflow: hidden;
}

.ecosystem-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, #ffffff 85%);
    pointer-events: none;
}

.ecosystem-section .section-title {
    color: #1D1D1F;
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 1;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

/* Apple-style Contrast: Deep Midnight Blue */
/* Apple-style Light Gradients */
/* Apple-style Light Gradients */
.ecosystem-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 60px 45px;
    border-radius: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.15);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ecosystem-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 30px 60px rgba(0, 242, 255, 0.12);
}

.ecosystem-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse-active 2s infinite;
}

@keyframes pulse-active {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ecosystem-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    filter: brightness(1.02);
    /* Slight highlight */
}

.ecosystem-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1D1D1F;
    /* Dark Apple Text */
    font-weight: 600;
}

.ecosystem-item p {
    font-size: 16px;
    line-height: 1.5;
    color: #424245;
    /* Secondary Dark Text */
}

/* Common Section Styles */
.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 60px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 80px 24px 40px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.col h4 {
    color: var(--text-highlight);
    margin-bottom: 16px;
    font-weight: 600;
}

.col a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.col a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* Product Detail Section - Guardian Familias */
.product-detail-section {
    padding: 120px 24px;
    background-color: #000000;
    /* scroll-margin-top managed globally by html {scroll-padding-top} */
}

.fw-container {
    max-width: 1100px;
    margin: 0 auto;
}

.product-eyebrow {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.product-headline {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 80px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Split Hero */
.product-hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.split-content {
    flex: 1;
}

.split-content h4 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--text-highlight);
}

.split-content p {
    color: var(--text-muted);
    font-size: 19px;
    margin-bottom: 20px;
}

.split-content .highlight-p {
    color: var(--text-highlight);
    font-weight: 600;
    border-left: 3px solid var(--accent-blue);
    padding-left: 20px;
}

.split-image {
    flex: 1;
}

.rounded-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Components Grid */
.section-subtitle {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: var(--text-highlight);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 120px;
}

.component-card {
    background: #000000;
    /* Match image background (Black) */
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Slightly clearer border since bg is black */
}

.component-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.comp-img {
    height: 120px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Magnify Siren Image (Increased 20% as requested) */
.card-siren .comp-img {
    transform: scale(1.08);
}

/* Magnify Camera Image (Increased 30% as requested) */
.card-camera .comp-img {
    transform: scale(1.3);
}

.icon-placeholder {
    font-size: 60px;
    height: 120px;
    /* Matches .comp-img height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.component-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-highlight);
}

.component-card p {
    font-size: 14px;
}

/* How It Works - Steps */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 120px;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.step p {
    font-size: 15px;
    color: var(--text-highlight);
}

.step-line {
    flex: 0.5;
    height: 2px;
    background: #333;
    display: block;
}

/* Pricing */
.pricing-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.pricing-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card.featured {
    border: 1px solid var(--accent-blue);
    background: linear-gradient(180deg, rgba(41, 151, 255, 0.1) 0%, var(--card-bg) 50%);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-card h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-highlight);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 18px;
}

.price-new {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-highlight);
    margin: 5px 0;
}

.price-new small {
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.save-tag {
    color: #30D158;
    /* Apple Success Green */
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 14px;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.components-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

.components-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 15px;
}

.text-right {
    text-align: right;
    color: var(--text-highlight) !important;
}

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

.mt-4 {
    margin-top: 24px;
}

.shipping-note {
    background: rgba(48, 209, 88, 0.1);
    color: #30D158;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .product-hero-split {
        flex-direction: column;
        text-align: center;
    }

    .split-content .highlight-p {
        border-left: none;
        border-top: 3px solid var(--accent-blue);
        padding-top: 20px;
        padding-left: 0;
    }

    .step-line {
        display: none;
    }

    .product-headline {
        font-size: 40px;
    }
}

/* About Section Images Fix */
.about-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    /* Limit height */
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.about-img-container img[src*="button"] {
    object-fit: contain;
    background: transparent;
    max-height: 400px;
}

/* House Silhouette & Active Security */
.house-silhouette-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    padding: 20px;
}

.house-silhouette-wrapper svg {
    width: 100%;
    height: auto;
    fill: transparent;
    stroke: #00FFFF;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.7));
}

/* --- Active Security Section Animation --- */
:root {
    --color-neon: #00f2ff;
}

.contenedor-seguridad-activa {
    position: relative;
    width: 100%;
    height: 700px;
    /* Altura suficiente para la órbita inferior */
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* Permitir que los productos orbiten fuera */
    font-family: 'Montserrat', sans-serif;
}

.casa-estatica {
    position: relative;
    width: 380px;
    /* Reduced size to prevent overlap */
    z-index: 5;
}

.svg-casa {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Estado inicial del texto (Oculto y desplazado) */
/* Estado inicial del texto (Oculto y desplazado) */
.texto-central {
    position: absolute;
    bottom: 50px;
    /* Final adjustment */
    left: 50%;
    /* Centered */
    transform: translate(-50%, 20px);
    text-align: center;
    width: 90%;
    max-width: 400px;
    /* Increased width slightly */
    color: white;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 20;
    pointer-events: none;

    /* Mejoras de visibilidad: Fondo Glassmorphism */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Estado cuando el texto se hace VISIBLE */
.texto-central.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Añadimos un pequeño retraso a la descripción para que aparezca después del título */
#desc-prod {
    transition: opacity 0.8s ease-out 0.2s;
    /* 0.2s de retraso */
}

.texto-central h3 {
    font-size: 1.4rem;
    color: var(--color-neon);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    /* Resplandor suave */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-family: var(--font-heading);
}

.texto-central p {
    font-size: 1rem;
    color: #fff;
    margin-top: 10px;
    line-height: 1.4;
    font-family: var(--font-body);
}

/* PRODUCTOS: Ajuste de visibilidad */
#anillo-orbita {
    position: absolute;
    top: 50%;
    /* Centered */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* La animación se iniciará desde JS para sincronización perfecta */
    z-index: 100;
    /* Ensure ring container is above house */
}

@keyframes rotar-orbita {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.producto-card {
    position: absolute;
    width: 100px;
    z-index: 200;
    /* Increased to stay above house */
    pointer-events: none;
    display: block !important;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translate(-50%, -50%) scale(0.6);
    /* Smaller orbit size */
}

/* Counter-rotate images so they stay upright while orbiting */
.producto-card img {
    width: 100%;
    height: auto;
    display: block;
    animation: contra-rotar 60s linear infinite;
}

@keyframes contra-rotar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* PRODUCTO ACTIVO: Posicionado en la mitad superior de la casa */
.producto-card.active {
    left: 50% !important;
    top: 50% !important;
    /* Center of the now-centered ring (eliminates wobble) */
    transform: translate(-50%, -50%) scale(1.3) !important;
    z-index: 300;
    /* Highest priority */
    opacity: 1 !important;
    /* Active product stays upright too */
    /* Disable transition to prevent sliding from orbit */
    transition: none;
    /* Animate 'arrival' from background depth */
    animation: zoomFromBack 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoomFromBack {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.visible {
    opacity: 1 !important;
}

@media (max-width: 768px) {

    /* Solo aplicamos altura fija al contenedor de la órbita, no a todas las imágenes */
    #orbit-container.contenedor-seguridad-activa {
        height: 600px !important;
    }

    #active-security .split-image {
        min-height: 600px !important;
        height: auto !important;
    }

    .casa-estatica {
        position: absolute;
        top: 45%;
        /* Lowered to center vertically */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 55vw;
        max-width: 220px;
        margin-top: 0;
    }

    .producto-card {
        width: 90px;
        /* Increased icon size ~25% */
    }

    #anillo-orbita {
        top: 45%;
        /* Adjusted to match house center */
    }

    /* Mobile specific active state to be smaller and centered higher */
    .producto-card.active {
        top: 50% !important;
        /* Center relative to RING (50% is geometric center) */
        transform: translate(-50%, -50%) scale(1.25) !important;
        /* Larger active product */
        animation: none !important;
        /* Disable desktop animation */
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* Override for specific large products */
    .producto-card.active.is-solar {
        transform: translate(-50%, -50%) scale(0.82) !important;
        /* Reduced for solar camera */
    }

    .producto-card.active.is-smart-switch {
        transform: translate(-50%, -50%) scale(1.17) !important;
        /* Reduced for smart switch */
    }

    .producto-card.active.is-smart-plug {
        transform: translate(-50%, -50%) scale(0.95) !important;
        /* Significantly reduced for smart plug to avoid overflow */
    }

    /* Adjust text box for mobile */
    .texto-central {
        left: 50%;
        width: 100%;
        /* Full width */
        max-width: none;
        bottom: -20px;
        /* Moved down to clear the orbit */
        padding: 20px;
        background: rgba(0, 0, 0, 0.95);
        z-index: 500;
        border-radius: 24px 24px 0 0;
        /* Rounded top corners only */
        border-bottom: none;
        /* Ensure text is above EVERYTHING if overlap happens */
    }

    .texto-central h3 {
        font-size: 1.1rem;
        /* Smaller title */
    }

    .texto-central p {
        font-size: 1.05rem;
        /* Increased from 0.9rem for better readability */
        margin-top: 5px;
        line-height: 1.4;
    }
}

/* Botón con efecto de pulso */
.btn-accion {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #00f2ff;
    /* Color Neón */
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
    transition: transform 0.3s ease;
    animation: pulso-seguridad 2s infinite;
    pointer-events: auto;
    /* IMPORTANTE: Permite que sea clickeable */
}

.btn-accion:hover {
    transform: scale(1.1);
    background-color: #fff;
}

/* Animación de Pulso */
@keyframes pulso-seguridad {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 242, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
    }
}

/* Ajuste del contenedor de cierre */
#mensaje-cierre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    width: 85%;
    color: white;
    opacity: 0;
    display: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 100;
}

#mensaje-cierre.visible {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* --- Specific Override for Guardian Comercios (Light Theme) --- */
#guardian-comercios {
    background-color: #F5F5F7 !important;
    /* Apple Light Gray */
    color: #1D1D1F;
}

#guardian-comercios .product-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: #1D1D1F;
}

#guardian-comercios .product-eyebrow {
    color: #2997FF !important;
    /* Revert to standard accent blue */
}

#guardian-comercios h2,
#guardian-comercios h3,
#guardian-comercios h4,
#guardian-comercios p,
#guardian-comercios .section-subtitle {
    color: #1D1D1F;
}

#guardian-comercios p,
#guardian-comercios li {
    color: #424245;
    /* Secondary text */
}

#guardian-comercios .highlight-p {
    color: #1D1D1F;
    border-left-color: #007AFF;
}

/* Cards in Light Section */
#guardian-comercios .component-card,
#guardian-comercios .pricing-card,
#guardian-comercios .pricing-card.featured {
    background: #FBFBFD !important;
    /* Force solid color, override gradient */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Slightly clearer border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    /* Softer shadow */
}

#guardian-comercios .component-card h4,
#guardian-comercios .pricing-card h4 {
    color: #1D1D1F;
}

#guardian-comercios .component-card p,
#guardian-comercios .pricing-card p {
    color: #424245;
}

#guardian-comercios .features-list li,
#guardian-comercios .components-table td {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: #424245;
}

#guardian-comercios .price-new {
    color: #1D1D1F;
}

#guardian-comercios .step-num {
    background: #007AFF;
    color: #FFFFFF;
}

#guardian-comercios .step p {
    color: #1D1D1F;
}

/* --- Specific Override for Guardian Familias (Light Theme) --- */
#guardian-familias {
    background-color: #F5F5F7 !important;
    /* Apple Light Gray */
    color: #1D1D1F;
}

#guardian-familias .product-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: #1D1D1F;
}

#guardian-familias .product-eyebrow {
    color: #2997FF !important;
    /* Accent Blue */
}

#guardian-familias h2,
#guardian-familias h3,
#guardian-familias h4,
#guardian-familias p,
#guardian-familias .section-subtitle {
    color: #1D1D1F;
}

#guardian-familias p,
#guardian-familias li {
    color: #424245;
    /* Secondary text */
}

#guardian-familias .highlight-p {
    color: #1D1D1F;
    border-left-color: #007AFF;
}

/* Cards in Light Section */
#guardian-familias .component-card,
#guardian-familias .pricing-card,
#guardian-familias .pricing-card.featured {
    background: #FBFBFD !important;
    /* Solid light background */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

#guardian-familias .component-card h4,
#guardian-familias .pricing-card h4 {
    color: #1D1D1F;
}

#guardian-familias .component-card p,
#guardian-familias .pricing-card p {
    color: #424245;
}

#guardian-familias .features-list li,
#guardian-familias .components-table td {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: #424245;
}

#guardian-familias .price-new {
    color: #1D1D1F;
}

#guardian-familias .step-num {
    background: #007AFF;
    color: #FFFFFF;
}

#guardian-familias .step p {
    color: #1D1D1F;
}

#guardian-familias .step-line {
    background: #D2D2D7;
}

#guardian-familias .icon-placeholder {
    filter: none;
}

#guardian-comercios .step-line {
    background: #D2D2D7;
}

/* Ensure images/icons look good on light bg */
#guardian-comercios .icon-placeholder {
    filter: none;
    /* Add valid filter if needed, or remove opacity adjustments */
}

/* --- Specific Override for About/Nosotros Section (Light Theme) --- */
#cctv {
    background: #f5f5f7 !important;
    /* Apple Light Gray */
    padding: 140px 24px;
    color: #1d1d1f;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#cctv .product-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: #1d1d1f;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 100px;
    /* Aumentado de 60px para dar más aire */
}

#cctv .product-eyebrow {
    color: #0066cc !important;
    /* Apple Link/Accent Blue */
    font-weight: 600;
}

#cctv h2,
#cctv h3,
#cctv h4,
#cctv .section-subtitle {
    color: #1d1d1f;
    text-shadow: none;
}

#cctv p {
    color: #424245;
    /* Apple secondary text */
    font-size: 21px;
    line-height: 1.5;
    max-width: 600px;
}

#cctv .btn.secondary {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
}

#cctv .btn.secondary:hover {
    background-color: #0077ed;
}

/* Reducir espacio en blanco al final de la sección CCTV */
#cctv .product-hero-split {
    margin-bottom: 0;
}

#cctv {
    padding-bottom: 100px;
    /* Reducido de 140px para equilibrar */
}

/* Excellence Cards in Light Section */
/* Excellence Cards - Apple Bento Style */
/* Nosotros Section - Light/White theme like Apple info sections */
#about {
    background: #ffffff !important;
    color: #1d1d1f;
}

#about .product-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: #1d1d1f;
}

#about .product-eyebrow {
    color: #0066cc !important;
}

#about h3,
#about h4,
#about p,
#about .section-subtitle {
    color: #1d1d1f;
}

#about p {
    color: #424245;
}

#about .excellence-grid {
    gap: 30px;
}

#about .excellence-card {
    background: #f5f5f7 !important;
    /* Apple Light Gray card on White background */
    border: none !important;
    box-shadow: none !important;
    padding: 40px !important;
    text-align: left !important;
    border-radius: 28px;
    transition: transform 0.4s ease;
}

#about .excellence-card:hover {
    transform: scale(1.02);
}

#about .excellence-card h4 {
    color: #1d1d1f !important;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

#about .excellence-card p {
    color: #424245 !important;
    font-size: 17px;
    line-height: 1.5;
}

/* --- Specific Override for Footer (Dark Theme for Contrast) --- */
/* Apple Style Light Footer after Dark Section */
footer {
    background-color: #f5f5f7 !important;
    /* Apple Footer Gray */
    color: #1d1d1f;
    padding: 60px 0;
    border-top: 1px solid #d2d2d7;
}

footer .col h4 {
    color: #1d1d1f !important;
    font-weight: 600;
}

footer .col a {
    color: #424245;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 8px;
}

footer .col a:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

footer .footer-bottom {
    border-top: 1px solid #d2d2d7;
    margin-top: 40px;
    padding-top: 20px;
}

footer .footer-bottom p {
    color: #86868b;
    font-size: 12px;
}

/* --- Mobile Spacing Fixes --- */
@media (max-width: 768px) {

    #cctv,
    #about,
    .product-detail-section,
    .about-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .product-headline {
        margin-bottom: 25px !important;
        font-size: 30px !important;
        line-height: 1.2 !important;
    }

    .product-hero-split {
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    .split-image {
        margin-bottom: 5px !important;
        min-height: auto !important;
        /* Reset global min-height */
    }

    /* Solo el Active Security mantiene su espacio para la animación */
    #active-security .product-hero-split {
        margin-bottom: 40px !important;
    }

    #cctv .product-hero-split,
    #about .product-hero-split {
        margin-bottom: 0 !important;
    }
}