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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    color: #182230;
}

/* =========================
   MENÚ
========================= */

header {
    background-color: #f7f9fc;
    padding: 20px 60px;
    border-bottom: 1px solid #e7ebf2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #182230;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow:
        0 0 8px #00aaff,
        0 0 18px #0077ff,
        0 0 30px rgba(0, 170, 255, 0.7);
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    color: #182230;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.menu a:hover {
    color: #7c3aed;
}

/* =========================
   INICIO
========================= */

.inicio {
    min-height: 90vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 80px 30px;

    position: relative;
    overflow: hidden;

    background:
     linear-gradient(
        rgba(5, 5, 15, 0.35),
        rgba(5, 5, 15, 0.45)
    ),
    url("portada-briroci.png") center center / cover no-repeat;
}

/* EFECTO DE LUZ */

.inicio::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    background: #7c3aed;

    border-radius: 50%;

    filter: blur(180px);

    opacity: 0.15;
}

/* CONTENIDO */

.contenido-inicio {
    max-width: 900px;

    position: relative;

    z-index: 2;
}

/* ETIQUETA */

.etiqueta-inicio {
    display: inline-block;

    color: #c084fc;

    border: 1px solid #7c3aed;

    background-color: rgba(124, 58, 237, 0.12);

    padding: 8px 18px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

/* TITULO */

.contenido-inicio h1 {
    font-size: 65px;

    line-height: 1.05;

    margin-bottom: 25px;
}

.contenido-inicio h1 span {
    display: block;

    color: #a855f7;
}

/* TEXTO */

.contenido-inicio p {
    font-size: 21px;

    color: #d1d5db;

    line-height: 1.6;

    max-width: 700px;

    margin: 0 auto 25px;
}

/* PRECIO */

.precio-inicio {
    font-size: 20px;

    color: #667085;

    margin-bottom: 35px;
}

.precio-inicio strong {
    color: #182230;

    font-size: 28px;
}

/* BOTONES DE INICIO */

.botones-inicio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.boton-secundario {
    background-color: transparent;
    border: 1px solid #7c3aed;
}

.boton-secundario:hover {
    background-color: #7c3aed;
}

/* BOTON PRINCIPAL */

.boton-principal {
    font-size: 17px;

    padding: 17px 35px;

    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.3);
}


/* =========================
   BOTONES
========================= */

.boton {
    display: inline-block;
    background-color: #7c3aed;
    color: #182230;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.boton:hover {
    background-color: #9333ea;
    transform: translateY(-2px);
}

/* =========================
   SERVICIOS
========================= */

.servicios {
    background-color: #ffffff;
    padding: 100px 50px;
    text-align: center;
}

.servicios h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.subtitulo {
    color: #667085;
    font-size: 18px;
    margin-bottom: 55px;
}

.contenedor-servicios {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.tarjeta {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid #e7ebf2;
    transition: 0.3s;
}

.tarjeta:hover {
    transform: translateY(-8px);
    border-color: #7c3aed;
}

.icono {
    font-size: 45px;
    margin-bottom: 20px;
}

.tarjeta h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.tarjeta p {
    color: #667085;
    line-height: 1.6;
}


/* =========================
   PLANES
========================= */

.planes {
    background-color: #f7f9fc;
    padding: 100px 30px;
    text-align: center;
}

.planes h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contenedor-planes {
    left: 50%;
    max-width: 1100px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;

    align-items: stretch;
}

.plan {
    position: relative;

    background-color: #ffffff;

    padding: 40px 35px;

    border-radius: 18px;

    border: 1px solid #e7ebf2;

    text-align: left;

    transition: 0.3s;
}

.plan:hover {
    transform: translateY(-5px);
    border-color: #7c3aed;
}

.plan h3 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 15px;
}

.precio {
    text-align: center;
    font-size: 45px;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 5px;
}

.periodo {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.plan h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.descripcion-plan {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 25px;
}

.lista-plan {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.lista-plan li {
    color: #344054;
    line-height: 1.6;
    padding: 12px 0;
    border-bottom: 1px solid #e7ebf2;
}

.experiencia {
    color: #667085;
    line-height: 1.6;
    margin: 25px 0;
    font-style: italic;
}

.plan .boton {
    display: block;
    text-align: center;
}

.destacado {
    border: 2px solid #7c3aed;

    box-shadow:
        0 0 30px rgba(124, 58, 237, 0.15);
}

.etiqueta {
    position: absolute;

    top: -14px;
    left: 50%;

    transform: translateX(-50%);

    background-color: #7c3aed;

    color: #182230;

    padding: 7px 18px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;
}

/* AGREGADO */

/* Centrar el plan inferior si es impar (solo PC) */
@media (min-width: 801px) {
    .contenedor-planes .plan:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 15px); /* 50% menos la mitad de la separación del gap (30px) */
    }
}

/* =========================
   CONTACTO
========================= */

.contacto {
    background:
        radial-gradient(circle at center, #241044 0%, #080808 70%);

    color: #182230;
    text-align: center;
    padding: 110px 30px;
}

.contacto h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.contacto p {
    font-size: 19px;
    color: #ccc;
    margin-bottom: 35px;
}

.whatsapp {
    background-color: #25D366;
}

.whatsapp:hover {
    background-color: #1ebe5d;
}

/* =========================
   WHATSAPP FLOTANTE
========================= */
.whatsapp-flotante {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 65px; /* Tamaño de la imagen */
    height: 65px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-flotante img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px; /* Redondea los bordes blancos para que quede perfecto */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.whatsapp-flotante:hover img {
    transform: scale(1.1); /* Efecto de crecimiento al pasar el mouse */
}
/* =========================
   BENEFICIOS
========================= */

.beneficios {
    background-color: #0b0b0b;
    padding: 100px 50px;
    text-align: center;
}

.beneficios h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contenedor-beneficios {
    max-width: 1100px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.beneficio {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid #e7ebf2;
    transition: 0.3s;
}

.beneficio:hover {
    transform: translateY(-8px);
    border-color: #7c3aed;
}

.beneficio-icono {
    font-size: 45px;
    margin-bottom: 20px;
}

.beneficio h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.beneficio p {
    color: #667085;
    line-height: 1.6;
}
/* =========================
   PREGUNTAS FRECUENTES
========================= */

.preguntas {
    background-color: #ffffff;
    padding: 100px 30px;
}

.preguntas h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

.contenedor-preguntas {
    max-width: 850px;
    margin: auto;
}

.contenedor-preguntas details {
    background-color: #ffffff;
    border: 1px solid #e7ebf2;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.contenedor-preguntas summary {
    cursor: pointer;
    padding: 22px 25px;
    font-size: 18px;
    font-weight: bold;
    list-style: none;
}

.contenedor-preguntas summary:hover {
    color: #a855f7;
}

.contenedor-preguntas p {
    color: #667085;
    padding: 0 25px 22px;
    line-height: 1.6;
}
/* =========================
   FOOTER
========================= */

footer {
    background-color: #111827;

    border-top: 1px solid #e7ebf2;

    padding: 50px 30px;

    text-align: center;
}

.footer-contenido {
    max-width: 800px;
    margin: auto;
}

.footer-contenido h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-contenido p {
    color: #888;
    margin-bottom: 15px;
}

.footer-contenido a {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

.copyright {
    margin-top: 30px;
    font-size: 13px;
}
/* CORRECCIÓN DE PORTADA EN PC */
@media (min-width: 801px) {

    .contenido-inicio {
        width: 92%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 80px 0;
        display: grid;
        grid-template-columns: 48% 52%;
        gap: 35px;
        align-items: center;
        box-sizing: border-box;
    }

    .contenido-inicio h1 {
        font-size: 58px;
        line-height: 1.08;
        margin: 20px 0;
        word-break: normal;
        overflow-wrap: normal;
    }

    .contenido-inicio p {
        font-size: 18px;
        line-height: 1.5;
        max-width: 560px;
    }

    .contenedor-servicios {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .tarjeta {
        min-width: 0;
        padding: 28px 18px;
        box-sizing: border-box;
    }
}
.prueba-gratis {
    text-align: center;
    margin: 50px auto 20px;
    padding: 35px 20px;
    max-width: 700px;
    background: linear-gradient(135deg, #151515, #241044);
    border: 1px solid #7c3aed;
    border-radius: 18px;
}

.prueba-gratis h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.prueba-gratis p {
    color: #ccc;
    margin-bottom: 25px;
}

.boton-prueba {
    background: #25D366;
    font-size: 20px;
    padding: 18px 35px;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.35);
}

.boton-prueba:hover {
    background: #1ebe5d;
    transform: scale(1.04);
}

/* AGREGADO */
/* =========================
   CELULARES
========================= */

@media (max-width: 800px) {
        .contenedor-beneficios {
        grid-template-columns: repeat(2, 1fr);
    }

    header {
        padding: 20px;
    }

    .menu {
        gap: 15px;
    }

    .contenido-inicio h1 {
        font-size: 40px;
    }

    .contenedor-servicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .planes {
        padding: 70px 10px; /* 10px de margen lateral en lugar de 20px/30px */
    }

    /* Hacemos que el contenedor aproveche el 100% del espacio disponible */
    .contenedor-planes {
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 35px;
    }

    /* Reducimos un poco el relleno interno de la tarjeta para que el texto respire mejor */
    .plan {
        padding: 30px 20px; 
        border-radius: 12px; /* Un borde un poco más formal y menos curvo */
    }
}

@media (max-width: 500px) {
    .contenedor-beneficios {
        grid-template-columns: repeat(2, 1fr); /* Crea 2 columnas */
        gap: 15px; /* Espaciado más pequeño */
    }

    .beneficio {
        padding: 15px 10px; /* Achica el relleno para hacerlos cuadrados */
        text-align: center;
    }

    .beneficio-icono {
        font-size: 32px; /* Ícono más chico */
        margin-bottom: 8px;
    }

    .beneficio h3 {
        font-size: 15px; /* Título más pequeño */
        margin-bottom: 8px;
    }

    .beneficio p {
        font-size: 12px; /* Texto más pequeño */
    }

    .whatsapp-flotante {
        width: 48px; /* Tamaño más reducido para celular */
        height: 48px;
        right: 15px;
        bottom: 15px;
    }
}

/* =========================
   HAMBURGUESA Y MENÚ MÓVIL
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Siempre arriba del todo */
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #182230;
    border-radius: 5px;
    transition: all .8s ease-in-out; /* Animación de 1.5s solicitada */
}

/* Modificaciones solo para pantallas de celular o tablet */
@media (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    /* Ocultar menú normal y prepararlo para desplegar */
    nav {
        position: relative; /* Para anclar el menú desplegable */
    }

    .menu {
        position: absolute;
        top: -400px; /* Escondido arriba */
        left: 0;
        width: 100%;
        background-color: #f7f9fc;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 30px 0;
        border-bottom: 2px solid #7c3aed;
        transition: top 1s ease-in-out; /* Velocidad de bajada */
        z-index: -1; /* Pasa por detrás de la barra del logo al bajar */
    }

    /* Clase activa cuando se abre el menú */
    .menu.active {
        top: 100%; /* Baja hasta quedar justo debajo del Header */
    }

    /* Animación de la Hamburguesa a flecha hacia arriba (^) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) translateX(-6px) rotate(-45deg);
        width: 20px;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0; /* Desaparece la línea del medio */
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) translateX(6px) rotate(45deg);
        width: 20px;
    }
    .whatsapp-flotante {
        width: 48px; /* Tamaño más reducido para celular */
        height: 46px;
        right: 15px;
        bottom: 15px;
    }
}

/* =========================
   BOTÓN VOLVER ARRIBA
========================= */
footer {
    position: relative; /* Fundamental para que el botón se guíe por el footer */
}

.volver-arriba {
    position: absolute;
    right: 40px; /* Lado derecho en Computadora */
    top: 40px; 
    color: #182230;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    opacity: 0; /* Oculto inicialmente */
    transform: scale(0.3) translateY(30px); /* Achicado y escondido hacia abajo */
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación de rebote (sale de lo negro) */
    pointer-events: none; /* Evita que se toque cuando no se ve */
}

/* Clase que aplicaremos con Javascript al ver el footer */
.volver-arriba.visible {
    opacity: 1;
    transform: scale(1) translateY(0); /* Se agranda a tamaño normal */
    pointer-events: auto;
}

.volver-arriba:hover {
    color: #128c7e; /* Efecto hover opcional */
}

/* Ubicación en celulares (Izquierda, según tu recuadro verde) */
@media (max-width: 800px) {
    .volver-arriba {
        right: auto; /* Anulamos la derecha */
        left: 20px;  /* Lo pegamos a la izquierda */
        top: 25px;   /* Ajustamos la altura */
        font-size: 14px;
    }
}

/* =========================
   CONVERTIDORES SMART TV
========================= */
.convertidores-smart {
    max-width: 1100px;
    margin: 45px auto 0;
    padding: 32px;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    border: 1px solid #dce8fb;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 22px;
    align-items: center;
    box-shadow: 0 12px 35px rgba(18,38,63,.08);
}
.convertidores-smart .icono-smart {
    font-size: 58px;
    text-align: center;
}
.convertidores-smart h3 {
    color: #182230;
    font-size: 26px;
    margin-bottom: 7px;
}
.convertidores-smart p {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 16px;
}
.convertidores-smart strong {
    color: #1268e8;
}

@media (max-width: 800px) {
    .convertidores-smart {
        grid-template-columns: 1fr;
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
    }
}
