:root {
    --bg-dark: #0E0720;
    --accent-violet: #A020F0;
    --accent-cyan: #00F0FF;
    --text-main: #FFFFFF;
    --text-muted: #A0A0C0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    /* Increased brightness */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(14, 7, 32, 0.8) 100%),
        linear-gradient(to bottom, rgba(14, 7, 32, 0.1), var(--bg-dark));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.hero-video-embed {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 40px auto 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    /* 1. Cambiamos el borde a algo casi invisible o lo eliminamos */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 2. Forzamos fondo negro para que no brille nada detrás */
    background: #000;
}

.hero-video-embed::before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* Mantiene el 16:9 perfecto */
}

.hero-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.main-logo {
    width: 140px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px var(--accent-violet));
    animation: float 4s ease-in-out infinite;
}

.glow-text {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(160, 32, 240, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), #7B00E0);
    color: white;
    box-shadow: 0 10px 30px rgba(160, 32, 240, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(160, 32, 240, 0.6);
}

.btn-outline {
    border: 2px solid var(--glass-border);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* --- SECTIONS --- */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- USE CASES --- */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.use-case-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 32px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.use-case-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-violet);
    background: rgba(255, 255, 255, 0.08);
}

.use-case-card .icon {
    font-size: 50px;
    margin-bottom: 25px;
    display: block;
}

/* --- GALLERY --- */
.gallery-section {
    padding-top: 60px;
}

.gallery-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-violet) var(--glass-bg);
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background-color: var(--accent-violet);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 280px;
    scroll-snap-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
}

.gallery-img-container {
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.gallery-item p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: auto;
}

/* --- ALARM MODES --- */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mode-card {
    padding: 60px 40px;
    border-radius: 40px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mode-card:hover {
    transform: scale(1.02);
}

.mode-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.violet {
    background: var(--accent-violet);
    box-shadow: 0 0 20px var(--accent-violet);
}

.cyan {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* --- TECH GRID --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
}

.tech-item h4 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card.featured {
    border: 2px solid var(--accent-violet);
    background: rgba(160, 32, 240, 0.08);
    position: relative;
    box-shadow: 0 20px 50px rgba(160, 32, 240, 0.2);
}

.best-value {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-violet);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
}

.price {
    font-size: 4rem;
    font-weight: 900;
    margin: 30px 0;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.price-card ul {
    list-style: none;
    margin-bottom: 50px;
    text-align: left;
}

.price-card li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-card li::before {
    content: "✓";
    color: var(--accent-cyan);
    font-weight: 900;
}

/* --- FOOTER --- */
.footer {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: #05020a;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.footer-app-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.play-store-badge {
    width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.play-store-badge:hover {
    transform: scale(1.05);
}

.legal-links {
    margin-bottom: 40px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.8rem;
    color: #444466;
    margin-bottom: 5px;
}

.intellectual-property {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

/* --- PRIVACY PAGE --- */
.privacy-page {
    background: var(--bg-dark);
}

.privacy-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: var(--glass-bg);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

/* --- ANIMATIONS --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .price-card.featured {
        transform: none;
        order: -1;
    }
}

@media (max-width: 600px) {
    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}