/* ==========================================================================
   VARIABLES Y RESET
   ========================================================================== */
:root {
    --bg-dark: #000000;
    --bg-card: #151515;
    --primary-blue: #5395FF;
    --primary-blue-hover: #2563eb;
    --accent-green: #4ade80;
    --text-light: #ffffff;
    --text-muted: #929395;
    --iconb: #40e0d0;
    --sidebar-width: 34%;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}
/* ==========================================================================
   ESTRUCTURA PRINCIPAL (PANTALLA DIVIDIDA)
   ========================================================================== */
body {
    display: block;
    background-color: var(--bg-dark);
    overflow-x: hidden;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    align-items: center;
    padding-inline: 1.5rem;
    background-color: #232529;
    z-index: 1001;
}

.main-container {
    margin-top: 70px;
    width: calc(100% - var(--sidebar-width));
    color: var(--text-light);
    min-height: 100vh;
}

.site-content {
    color: var(--text-light);
}

.fixed-sidebar {
    position: fixed;
    top: 70px;
    right: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 70px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
}

.icon{
    display: inline-block;
    width: clamp(18px, 2vw, 24px);
    height: clamp(18px, 2vw, 24px);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -15%;
    margin-right: 12px;
    flex-shrink: 0;
}
/* ==========================================================================
   ESTILOS DEL SITIO (LADO IZQUIERDO)
========================================================================== */
/* NAVBAR
================================================== */
.nav-logo img{

}

.menu-toggle{
    display: none;
}

.nav-links {
    display: flex;
    gap: clamp(10px, 2vw, 30px); /* Espaciado fluido entre links */
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    transition: color 0.3s;
}

.nav-links .active {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-phone {
    color: var(--primary-blue);
    font-size: 25px;
    font-weight: bold;
}

.phone-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone-link:hover {
  opacity: 0.8;
}

/* CONTENT
================================================== */
.content h1{
    font-size: 35px;
    font-weight: 600;
}
.content .btn-primary {
    --bs-btn-bg: #4087F8;
    border: 0;
}
.box-megas{
    background: linear-gradient(271deg, #6302BE 0%, #2F11A5 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem 2.5rem;
}
.box-megas .megas{
    font-size: 90px;
	font-weight: 800;
	line-height: 1;
	display: flex;
	align-items: end;
    justify-content: center;
	gap: 1rem;
	text-align: left;
}
.box-megas .megas strong{
    font-size: 40px;
    font-weight: 600;
}
.box-megas .megas strong span{
    font-size: 27px;
    font-weight: 400;
    display: block;
}
.box-megas .includes{
    display: flex;
    border: 1px solid #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    height: 84px;
    max-width: 330px;
}
.box-megas .includes > div{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.box-megas .includes > div img{
    max-width: 90%;
}
.box-megas .includes .appletv{
    background-color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    color: #000000;
}
.box-megas .price{
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    padding-block: 1.5rem 2rem;
    background: linear-gradient(300deg, #6CE380 0%, #4A1CC5 100%);
    border: 1px solid #2C97C4;
    border-radius: 20px;
    position: relative;
}
.box-megas .price num{
    display: block;
    font-size: 70px;
    font-weight: 800;
    line-height: .7;
	margin-top: .75rem;
}
.box-megas .price num:before{
    content: "$ ";
	font-size: 55%;
	position: relative;
	top: -12px;
}
.box-megas .price num::after{
    content: "*";
	font-size: 65%;
	position: relative;
	top: -20px;
}
.box-megas .price small{
    font-size: 16px;
    font-weight: 300;
}
.box-megas .price .btn{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 20px);
    margin-inline: auto;
    width: 80%;
    box-shadow: inset 0px 3px 6px #00000029, 0px 3px 6px #00000029;
}
.benefits{
    width: 380px;
    margin-inline: auto;
    border-radius: 20px;
    background: linear-gradient(0deg, #4A1CC6 0%, #000000 100%);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    margin-top: 1.5rem;
}
.benefits:before{
    content: "";
    position: absolute;
    right: calc(100% - 70px);
    bottom: -10px;
    height: 140%;
    width: 135px;
    background: url("../img/tplay.webp") no-repeat center/contain;
}
.benefits .header{
    background-color: #ffffff;
    color: #2F11A5;
    font-size: 25px;
    padding-left: 3rem;
    border-radius: 20px 20px 0 0;
}
.benefits ul{
    padding-left: 5rem;
    padding-block: .75rem;
    margin: 0;
    text-align: left;
}
.benefits ul li span{
    font-size: 16px;
    font-weight: 300;
    display: block;
}
.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.grid > div{
    background: linear-gradient(180deg, #222222 0%, #000000 100%);
    border: 1px solid #2F11A5;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 14px;
}
.grid > div img{
    display: block;
    margin-bottom: .5rem;
}
@media(max-width: 767px){
    .content h1,
    .content .h4{
        font-size: 25px;
    }
    .content .btn-primary{
        font-size: 14px;
    }
    .box-megas{
        padding-bottom: 3.5rem;
    }
    .box-megas .megas{
        font-size: 80px;
    }
    .box-megas .megas strong{
        font-size: 32px;
    }
    .box-megas .price .btn{
        font-size: 16px;
    }
    .benefits{
        margin-top: 6rem;
    }
    .benefits .header{
        padding-left: 0;
    }
    .benefits ul{
        padding-left: 3rem;
    }
    .benefits:before{
        z-index: -1;
        right: 0;
        left: 0;
        bottom: 50%;
        margin-inline: auto;
    }
    .grid{
        grid-template-columns: 1fr;
    }
    .grid > div{
        max-width: 300px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   ESTILOS DEL FORMULARIO (LADO DERECHO)
   ========================================================================== */
.sidebar-header, .contact-form, .online-chat-section{
    padding: 0 clamp(5px, 2vw, 60px);
}
.sidebar-header {
    text-align: center;
    padding-top: clamp(10px, 5vw, 25px);
    margin-bottom: 25px;
}

.trust-badges {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 15px;
}

.trust-badges img{
    max-width: 240px;
    width: 100%;
}

.sidebar-header h2 {
    color: #4F5357;
    font-size: clamp(1.3rem, 5vw, 2rem);
}

.sidebar-header h2 .txtn{
    font-weight: 300;
}

.sidebar-header h2 img {
    vertical-align: middle;
    margin-right: 8px;
    width: 50%;
}
.contact-form {
    width: 100%;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    color: #555;
    margin-bottom: 5px;
}
.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus {
    border-color: var(--primary-blue);
}
.legal-text {
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    margin: 15px 0;
}
.btn-call,
.btn-chat{
    font-size: 25px;
    display: block;
    width: 360px;
}
.online-chat-section {
    background: #F1F1F1;
    margin-top: auto;
    padding:
        clamp(20px, 4vw, 30px)
        clamp(5px, 2vw, 60px)
        clamp(30px, 8vw, 60px);
    text-align: center;
    border-top: 1px solid #eee;
}
.online-chat-section p {
    font-size: clamp(0.8rem, 1.9vw, 1.5rem);
    color: #555;
    margin-bottom: 10px;
}

/* ==========================================================================
    MODAL
========================================================================== */
.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #2F2F2F;
    width: 90%;
    max-width: 500px;
    margin-inline: auto;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

.modal-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
    padding: 40px 40px 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 40px 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-group label {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-left: 5px;
}

.input-group input {
    background-color: #2d2d2d;
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--primary-blue);
}

.privacy-note{
    color: #a1a1aa;
    text-align: center;
    font-size: 0.7rem;
}

.btn-send {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-send:hover {
    background-color: var(--primary-blue-hover);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 30px;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
    MODAL GRACIAS
========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER - ESTILO TOTALPLAY
========================================================================== */
.main-footer {
    background-color: #1a1d23;
    color: #ffffff;
    padding: 30px 5%;
    font-family: 'Segoe UI', Roboto, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-legal {
    flex: 1;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 300;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-legal p {
    font-size: .8rem;
    margin: 0;
    font-weight: 300;
}

.footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-logos {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.logo-bottom {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: flex-end;
}

.footer-logos img {
    height: auto;
    max-height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    color: #ffffff;
    font-size: 0.7rem;
    line-height: 1.4;
    font-weight: 300;
}

.footer-copyright p {
    margin: 0;
}
/* ==========================================================================
   MOBILE ACTION BAR
========================================================================== */
.mobile-action-bar {
    display: none; /* Oculto en desktop */
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(60px, 10vh, 75px);
    background: #111;
    padding: 10px 0px;
    gap: .25rem;
    z-index: 2000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}
.mobile-action-bar .btn {
    flex: 1 0 auto;
}
/* ==========================================================================
   RESPONSIVO
========================================================================== */
@media (max-width: 1440px) {
    .sidebar-header h2 {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }
    .trust-badges img {
        max-width: 190px;
    }
}
@media (max-width: 1024px) {
    .sidebar-header h2 {
        font-size: clamp(.5rem, 5vw, 1rem);
    }
    .trust-badges img {
        max-width: 150px;
    }
}
@media (max-width: 768px) {
    .main-container{
        margin: 0;
        width: 100%;
    }
    .navbar {
        position: relative;
        padding: 0 20px;
        height: 60px;
    }

    .nav-logo .logo {
        width: auto;
        height: 28px;
    }

    #menu-toggle{
        position: absolute;
        right: 5%;
        z-index: 9999;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .menu-toggle {
        display: block; /* Solo se ve en móviles */
    }

    .nav-links {
        display: flex !important; /* Forzamos flex */
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Totalmente fuera a la derecha */
        width: 100%;
        height: 100vh;
        background-color: #111;
        padding: 80px 40px;
        transition: all 0.4s ease-in-out;
        z-index: 1040;
    }

    /* Esta es la clase que el JS activa */
    .nav-links.active {
        right: 0 !important;
    }

    .nav-links a {
        font-size: 1.5rem; /* Letra más grande en móvil */
        margin-bottom: 25px;
    }

    .nav-phone{
        font-size: 18px;
        padding-right: 14%;
    }
    .fixed-sidebar{
        display: none;
    }

    /* Si las imágenes de banners internos son muy grandes */
    .main-footer{
        padding-bottom: 90px;
    }
    .footer-container{
        display: block;
        gap: 10px;
    }
    .footer-legal{
        text-align: center;
    }
    .footer-info{
        display: block;
        text-align: center;
    }
    .footer-logos{
        justify-content: center;
        margin: 20px 0;
    }
    .mobile-action-bar {
        display: flex;
    }

    /* Cuando llega al footer, podemos cambiar su estilo o posición */

    /*.action-btn {
        flex: 1;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        text-decoration: none;
        text-transform: uppercase;
    }*/
    .btn-chat{
        width: 50%;
    }
    .btn-call{
        width: 50%;
    }
}
@media (max-width: 488px) {
    .footer-copyright {
        font-size: 0.6rem;
    }
}
@media (max-width: 375px) {
    .nav-links {
        width: 100%;
    }
}
