/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0a0f1f;
    color: #fff;
    overflow-x: hidden;
}

canvas#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ===== NAVBAR ===== */
header {
    width: 100%;
    background: rgba(10,15,30,0.7);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 10;
}

.navbar {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #4eaaff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #dce8ff;
    font-size: 17px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links .active {
    color: #4eaaff;
}

/* ===== HERO ===== */
.hero {
    padding-top: 130px;
    text-align: center;
    padding-bottom: 100px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #d1d7e6;
    max-width: 700px;
    margin: auto;
    margin-bottom: 30px;
}

.btn-primary {
    background: #4eaaff;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #77c0ff;
    transform: scale(1.05);
}

/* ===== BANDERA DE PLANES ===== */
.bandera-planes {
    width: 100%;
    background: linear-gradient(90deg, #00101f, #0a2d4f);
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
}

.bandera h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.bandera p {
    font-size: 18px;
    color: #c4d2e8;
    margin-bottom: 20px;
}

.btn-secundario {
    background: transparent;
    border: 2px solid #4eaaff;
    padding: 12px 28px;
    font-weight: bold;
    text-decoration: none;
    color: #4eaaff;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-secundario:hover {
    background: #4eaaff;
    color: #000;
    transform: scale(1.05);
}

/* ===== BENEFICIOS ===== */
.beneficios {
    padding: 80px 20px;
    text-align: center;
}

.beneficios h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 85%;
    margin: auto;
}

.beneficio {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.beneficio:hover {
    transform: translateY(-7px);
    background: rgba(255,255,255,0.10);
}

/* ===== PLANES ===== */
.pagina-titulo {
    text-align: center;
    padding: 130px 20px 40px;
}

.pagina-titulo h1 {
    font-size: 42px;
}

.planes-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    padding-bottom: 100px;
}

.plan-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    transition: 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.12);
}

.precio {
    font-size: 28px;
    margin: 10px 0 20px;
    color: #4eaaff;
}

.plan-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 25px;
    padding-left: 0;
}

.plan-card ul li {
    margin-bottom: 10px;
    color: #cdd7ec;
}

.destacado {
    border: 2px solid #4eaaff;
}

.etiqueta {
    background: #4eaaff;
    color: black;
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 20px;
    position: absolute;
    margin-top: -15px;
    transform: translateX(-50%);
}

/* ===== PRODUCTOS ===== */
.productos-grid {
    width: 85%;
    margin: auto;
    padding: 40px 0 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.producto-item {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.producto-item:hover {
    transform: translateY(-7px);
    background: rgba(255,255,255,0.10);
}

/* ===== CONTACTO FORM ===== */
.contacto-form {
    width: 90%;
    max-width: 550px;
    margin: auto;
    padding-bottom: 100px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: white;
}

.contacto-form textarea {
    height: 140px;
    resize: none;
}

.contacto-form button {
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    width: 100%;
    padding: 25px 0;
    background: rgba(0,0,0,0.3);
    text-align: center;
    font-size: 15px;
    color: #b4c2d9;
}
/* Fondo premium */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s ease;
    z-index: 99999;
}
.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

/* Imagen con glow premium */
.lightbox-main img {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 18px;
    box-shadow: 0 0 30px rgba(255,255,255,0.25);
    transition: transform 0.3s ease, opacity 0.3s;
}

/* Animación zoom + fade */
.zoom-fade {
    transform: scale(1.15);
    opacity: 0.2;
}

/* Botón cerrar */
.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 45px;
    color: #fff;
    cursor: pointer;
    background: rgba(0,0,0,0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 50px;
}

/* Flechas modernas */
.arrow {
    position: absolute;
    top: 50%;
    font-size: 55px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px 18px;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: 0.2s;
}

.arrow.left { left: -60px; }
.arrow.right { right: -60px; }

.arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.2);
}

/* Galería de miniaturas */
.thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.6;
    transition: 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.1);
}

.thumb.active {
    opacity: 1;
    border-color: #4da3ff;
    box-shadow: 0 0 10px rgba(77,163,255,0.7);
}
