:root {
    /* --- PALETA DE COLORES (Negro Puro) --- */
    --accent: #000000;          /* Negro puro */
    --accent-hover: #333333;    /* Gris oscuro para hover */
    
    --text-main: #111111;       /* Texto casi negro */
    --text-secondary: #546E7A;  /* Gris azulado profesional */
    --text-white: #ffffff;
    
    --bg-card: #FFFFFF;         /* Tarjetas blancas */
    
    /* Colores del Widget */
    --bg-widget-header: #263238; 
    --bg-widget-body: #37474F;
    
    --border-light: #E0E0E0;
    --border-dark: #333;
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #E3F2FD 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-accent { color: var(--accent); }
.hidden { display: none !important; }

/* --- BOTONES GENERALES --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 30px; border-radius: 8px; 
    font-weight: 700; cursor: pointer; border: none; transition: all 0.2s ease;
    font-size: 1rem;
}
.btn-primary { 
    background: var(--accent); /* Negro */
    color: white; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-primary:hover { 
    background: var(--accent-hover); 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); 
}
.btn-secondary { 
    background: white; border: 2px solid #ddd; color: #555; 
}
.btn-secondary:hover { 
    border-color: var(--accent); color: var(--accent);
}
.btn-small { padding: 8px 18px; font-size: 0.85rem; border-radius: 6px; }
.glow { box-shadow: 0 0 20px rgba(0,0,0,0.2); }

/* --- HEADER NEGRO --- */
.site-header {
    background: #000000; /* Fondo Negro Puro */
    position: sticky; top: 0; z-index: 100; padding: 15px 0;
    border-bottom: 1px solid #333; /* Línea separadora sutil */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); /* Sombra para separar del contenido */
}
.header-content { display: flex; justify-content: space-between; align-items: center; }

/* Logo en Header (Texto Blanco) */
.logo { font-size: 1.3rem; font-weight: 800; display: flex; gap: 12px; align-items: center; color: #ffffff; }
.logo-img { 
    width: 42px; height: 42px; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 2px solid #333; /* Pequeño borde para definir el círculo en fondo negro */
}

/* Menú de Navegación (Texto Blanco/Gris) */
.nav-menu { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-size: 0.95rem; font-weight: 500; color: #B0BEC5; } /* Gris claro */
.nav-menu a:hover { color: #ffffff; } /* Blanco al pasar ratón */
@media (max-width: 850px) { .nav-menu { display: none; } }

/* Botón Header Específico (Invertido: Blanco con texto negro) */
.site-header .btn-primary {
    background: #ffffff;
    color: #000000;
}
.site-header .btn-primary:hover {
    background: #e0e0e0;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}


/* --- HERO SECTION --- */
.hero { padding: 80px 0 60px; text-align: center; }
.hero-content {
    display: flex; flex-direction: column; align-items: center;
    max-width: 850px; margin: 0 auto;
}
.badge {
    display: inline-block; 
    background: #EEEEEE; color: #000;
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 25px;
}
.hero-content h1 { 
    font-size: 3.5rem; margin: 0 0 20px 0; font-weight: 900; 
    line-height: 1.1; color: var(--text-main); letter-spacing: -1px;
}
.hero-content h1 span { display: block; } 
.subtitle { 
    color: var(--text-secondary); font-size: 1.2rem; max-width: 600px; 
    margin: 0 auto 40px; font-weight: 400; 
}
.cta-group { display: flex; gap: 15px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.hero-banner-container { width: 100%; display: flex; justify-content: center; }
.hero-banner-img {
    max-width: 100%; width: 850px; height: auto;
    border-radius: 16px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- WIDGET DEMO --- */
.widget-section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 10px; color: var(--text-main); font-weight: 800; }
.section-desc { text-align: center; color: var(--text-secondary); margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }
.mockup-container { display: flex; gap: 60px; flex-wrap: wrap; justify-content: center; align-items: center; }
.widget-live-demo {
    width: 300px; background-color: var(--bg-widget-body);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 1px solid #455A64; transition: transform 0.3s;
}
.widget-live-demo:hover { transform: translateY(-5px); }
.widget-header {
    background-color: var(--bg-widget-header); padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.widget-title { color: #90CAF9; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }
.widget-icon { color: #90CAF9; font-size: 0.9rem; }
.widget-list { padding: 5px 0; margin: 0; list-style: none; }
.widget-item {
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:before { content: "≡"; margin-right: 10px; color: #78909C; font-size: 1.1rem; }
.widget-footer { padding: 12px; text-align: center; background: rgba(0,0,0,0.15); }
.btn-open-all { color: #90CAF9; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- FEATURES --- */
.section-pad { padding: 80px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-card {
    background: white; padding: 35px; border-radius: 12px;
    transition: all 0.3s ease; border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-color: #eee; }
.feature-icon { font-size: 2rem; color: var(--accent); margin-bottom: 20px; display: block; }
.feature-card h3 { margin: 0 0 10px 0; font-size: 1.2rem; font-weight: 800; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* --- SCREENSHOTS --- */
.gallery-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.phone-frame {
    width: 180px; border-radius: 16px; overflow: hidden;
    border: 5px solid #111; box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
    transition: transform 0.3s; background: black;
}
.phone-frame:hover { transform: scale(1.03); border-color: #333; }
.phone-frame img { width: 100%; height: auto; display: block; }

/* --- VIDEO --- */
.video-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.video-frame { 
    width: 100%; max-width: 320px; aspect-ratio: 9/16; 
    background: #000; border: 4px solid #111; border-radius: 20px;
    display: block; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* --- FOOTER --- */
footer { padding: 50px 0; background: #F5F5F5; border-top: 1px solid #E0E0E0; font-size: 0.9rem; color: #666; text-align: center; }
.footer-simple p { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }
.btn-link { background: none; border: none; padding: 0; color: #666; cursor: pointer; font-family: inherit; font-size: inherit; font-weight: 500;}
.btn-link:hover, footer a:hover { color: var(--accent); text-decoration: underline; }
.sep { color: #ccc; }

/* --- COOKIES --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #111; color: white;
    border-top: 2px solid var(--accent); padding: 20px; z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}
.cookie-content {
    max-width: 1000px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.cookie-text h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: white; }
.cookie-text p { font-size: 0.9rem; color: #ccc; margin: 0; }
.cookie-btns-group { display: flex; gap: 10px; }
.cookie-banner .btn-primary { background: white; color: black; }
.cookie-banner .btn-secondary { background: transparent; color: #ccc; border-color: #555; }
.cookie-banner .btn-secondary:hover { border-color: white; color: white; }

/* Modal Cookies */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.modal-window {
    background: white; color: var(--text-main);
    width: 90%; max-width: 600px; border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden; display: flex; flex-direction: column; max-height: 90vh;
}
.modal-header {
    padding: 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center; background: #f9f9f9;
}
.modal-header h3 { font-size: 1.2rem; margin: 0; color: #000; }
.close-icon {
    background: none; border: none; color: #555; font-size: 2rem;
    cursor: pointer; line-height: 1; padding: 0;
}
.modal-body { padding: 20px; overflow-y: auto; }
.modal-desc { font-size: 0.95rem; color: #666; margin-bottom: 25px; }
.cookie-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #eee;
}
.cookie-option:last-child { border-bottom: none; }
.option-text h4 { font-size: 1rem; color: #000; margin-bottom: 5px; margin-top: 0; }
.option-text p { font-size: 0.85rem; color: #777; margin: 0; }
.modal-footer {
    padding: 20px; background: #f9f9f9; border-top: 1px solid #eee;
    display: flex; justify-content: flex-end; gap: 10px;
}

/* Switches */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px;
    left: 3px; bottom: 3px; background-color: white; transition: .4s;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
input:disabled + .slider { background-color: #e0e0e0; cursor: not-allowed; opacity: 0.6; }
input:disabled:checked + .slider { background-color: #777; opacity: 0.5; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .mockup-container { flex-direction: column-reverse; }
    .cookie-content { flex-direction: column; text-align: center; }
    .footer-simple p { flex-direction: column; gap: 10px; }
    .hero-banner-img { width: 100%; margin-top: 20px; }
}