:root {
    --bg-main: #121212;
    --bg-card: #1E1E1E;
    --accent: #2962FF; 
    --accent-hover: #1c46b8;
    --text-white: #ffffff;
    --text-gray: #B0B0B0;
    --border-dark: #333;
}

html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    -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 */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 8px; font-weight: 500;
    cursor: pointer; border: none; transition: 0.3s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 15px rgba(41,98,255,0.4); }
.btn-secondary { background: transparent; border: 1px solid var(--text-gray); color: var(--text-gray); }
.btn-secondary:hover { border-color: white; color: white; }
.btn-small { padding: 6px 16px; font-size: 0.9rem; }
.glow { box-shadow: 0 0 20px rgba(41,98,255,0.2); }

/* Header */
.site-header {
    background: rgba(18,18,18,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    position: sticky; top: 0; z-index: 100; padding: 15px 0;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.logo-img { width: 40px; height: 40px; object-fit: contain; }

/* Hero Section con tu BANNER */
.hero { 
    padding: 100px 0 80px; 
    text-align: center;
    /* Ruta relativa desde la carpeta CSS hacia arriba (../) */
    background: linear-gradient(rgba(18,18,18,0.8), rgba(18,18,18,0.95)), url('../img/banner/banner01.png');
    background-size: cover;
    background-position: center;
}
.hero-content h1 { font-size: 3rem; margin: 15px 0; font-weight: 900; }
.subtitle { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }
.badge {
    background: rgba(41, 98, 255, 0.1); color: var(--accent);
    padding: 4px 10px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}
.cta-group { display: flex; gap: 15px; justify-content: center; }

/* Sección Widgets (Con imágenes reales) */
.widgets-section { background: #0f0f0f; padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 10px; }
.section-desc { text-align: center; color: var(--text-gray); margin-bottom: 50px; }
.widgets-showcase-grid { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.widget-demo { text-align: center; max-width: 300px; }
.widget-demo h3 { font-size: 1.1rem; margin-bottom: 5px; }
.widget-demo p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 25px; }

/* Contenedor e Imagen de Widget */
.widget-img-container {
    display: flex; justify-content: center; align-items: center;
    padding: 10px;
}
.widget-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Sombra suave para que destaque del fondo oscuro */
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); 
}

/* Features */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.section-pad { padding: 80px 0; }
.feature-card {
    background: var(--bg-card); padding: 30px; border-radius: 16px;
    transition: 0.3s; border: 1px solid transparent;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; color: var(--accent); margin-bottom: 20px; display: block; }

/* Capturas de Pantalla (Imágenes Reales) */
.screenshots-section { padding: 80px 0; background: #0a0a0a; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin-top: 40px; }
.phone-frame {
    /* Ajuste para que las capturas se vean completas */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 2px solid #333;
}
.phone-frame:hover { transform: scale(1.02); border-color: var(--accent); }
.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border-dark); font-size: 0.9rem; color: var(--text-gray); }
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; align-items: center; gap: 15px; }
.link-btn { color: var(--text-gray); transition: 0.2s; }
.link-btn:hover { color: white; text-decoration: underline; }
.link-btn-icon { background: none; border: none; color: var(--text-gray); cursor: pointer; font-size: 1rem; }
.sep { color: #333; }

/* Banner Cookies */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; border-top: 2px solid var(--accent);
    padding: 20px; z-index: 1000;
}
.cookie-content {
    max-width: 1000px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.cookie-btns { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .widgets-showcase-grid { gap: 40px; }
    .footer-flex { flex-direction: column; text-align: center; }
    .cookie-content { flex-direction: column; text-align: center; }
}

/* --- ESTILOS AVANZADOS DE COOKIES --- */

/* Banner Inferior */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1a1a1a; border-top: 2px solid var(--accent);
    padding: 20px; z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
}
.cookie-content {
    max-width: 1000px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 15px;
}
@media (min-width: 768px) {
    .cookie-content { flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-text { max-width: 60%; }
}
.cookie-text h3 { margin-bottom: 5px; color: #fff; font-size: 1.1rem; }
.cookie-text p { font-size: 0.9rem; color: #ccc; margin: 0; }
.cookie-btns-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* Modal Overlay (Fondo oscuro) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

/* Ventana Modal */
.modal-window {
    background: #1E1E1E;
    width: 90%; max-width: 600px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex; flex-direction: column;
    max-height: 90vh;
}

/* Cabecera Modal */
.modal-header {
    padding: 20px; border-bottom: 1px solid #333;
    display: flex; justify-content: space-between; align-items: center;
    background: #252525;
}
.modal-header h3 { font-size: 1.2rem; margin: 0; color: #fff; }
.close-icon {
    background: none; border: none; color: #fff; font-size: 2rem;
    cursor: pointer; line-height: 1; padding: 0;
}

/* Cuerpo Modal */
.modal-body { padding: 20px; overflow-y: auto; }
.modal-desc { font-size: 0.95rem; color: #bbb; margin-bottom: 25px; }

.cookie-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #333;
}
.cookie-option:last-child { border-bottom: none; }
.option-text h4 { font-size: 1rem; color: #fff; margin-bottom: 5px; }
.option-text p { font-size: 0.85rem; color: #888; margin: 0; }

/* Footer Modal */
.modal-footer {
    padding: 20px; background: #252525; border-top: 1px solid #333;
    display: flex; justify-content: space-between; gap: 10px;
}

/* --- INTERRUPTORES (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: #555; 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); } /* Azul al activar */
input:checked + .slider:before { transform: translateX(24px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Estado Deshabilitado (Cookies Técnicas) */
input:disabled + .slider { background-color: #3a3a3a; cursor: not-allowed; opacity: 0.6; }
input:disabled:checked + .slider { background-color: #4CAF50; opacity: 0.5; } /* Verde apagado para indicar que está activo siempre */

/* --- FOOTER MINIMALISTA --- */
footer {
    padding: 30px 0;
    border-top: 1px solid #222;
    background-color: #0f0f0f;
    font-size: 0.85rem;
    color: #777;
}

.footer-simple {
    text-align: center;
}

.footer-simple p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Espacio entre elementos */
    flex-wrap: wrap;
}

.footer-simple a, 
.btn-link {
    color: var(--accent); /* O usa #ccc si lo quieres gris */
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}

/* Convertir el botón en texto plano */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
}

.footer-simple a:hover, 
.btn-link:hover {
    text-decoration: underline;
    color: white;
}

.sep {
    color: #444; /* Color de la barrita separadora */
}

/* --- ESTILOS DEL FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}