:root {
    --bitel-yellow: #FFE600;
    --bitel-blue: #00549A;
    --bitel-blue-dark: #003d73;
    --bitel-green: #00A54F;
    --bitel-green-dark: #008f43;
    --gray-bg: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}


body {
    background-color: var(--gray-bg);
    color: #333;
    padding-bottom: 70px;
    /* Se mantiene para móviles */
}

/* --- ESTO ES LO NUEVO --- */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        /* Se elimina en Tablet y Escritorio */
    }
}

/* NAVBAR */
.navbar {
    background-color: var(--bitel-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-img.small {
    height: 35px;
}

.logo-footer {
    filter: brightness(0) invert(1);
}

.logo-text {
    margin-left: 10px;
    font-weight: bold;
    color: var(--bitel-blue);
    font-size: 1.25rem;
    display: none;
}

@media(min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.nav-btn {
    background: none;
    border: none;
    font-weight: bold;
    color: var(--bitel-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.desktop-menu {
    display: none;
    gap: 1rem;
}

@media(min-width: 1024px) {
    .desktop-menu {
        display: flex;
    }
}

.mobile-menu-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--bitel-blue);
    cursor: pointer;
}

@media(min-width: 768px) {
    .mobile-menu-icon {
        display: none;
    }
}

/* MOBILE DROPDOWN */
.mobile-dropdown {
    background: white;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.mobile-dropdown.hidden {
    display: none;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--bitel-blue);
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-link:hover {
    background: #e5e7eb;
}

@media(min-width: 1024px) {
    .mobile-dropdown {
        display: none;
    }
}

/* HERO */
.hero-section {
    background-color: var(--bitel-yellow);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-grid {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

@media(min-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.hero-text {
    text-align: left;
    max-width: 600px;
    z-index: 20;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bitel-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

@media(min-width: 768px) {
    .hero-text h1 {
        font-size: 4rem;
    }
}

.hero-tag {
    background: #E91E63;
    color: white;
    padding: 0 10px;
    transform: skewX(-6deg);
    display: inline-block;
}

.hero-text p {
    font-size: 1.1rem;
    color: #003d73;
    font-weight: 600;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-blue {
    background: var(--bitel-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-white {
    background: white;
    color: var(--bitel-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* MINI FORM */
.hero-mini-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    width: 100%;
}

.hero-mini-form h3 {
    color: var(--bitel-blue);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.hero-mini-form p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    font-weight: normal;
}

.inline-form {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

@media(min-width: 640px) {
    .inline-form {
        flex-direction: row;
    }
}

.input-group {
    position: relative;
    flex: 1;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    outline: none;
    height: 45px;
}

.btn-green-inline {
    background: var(--bitel-green);
    color: white;
    font-weight: bold;
    padding: 0 20px;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    height: 45px;
    white-space: nowrap;
    transition: 0.2s;
}

.btn-green-inline:hover {
    background: var(--bitel-green-dark);
}

.legal-text-inline {
    font-size: 0.7rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    color: #888 !important;
}

/* ROUTER IMAGE */
.hero-router-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.hero-router-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@media(min-width: 768px) {
    .hero-router-img {
        width: 250px;
    }
}

@media(min-width: 1024px) {
    .hero-router-container {
        margin-top: 0;
        margin-left: -50px;
    }

    .hero-router-img {
        width: 350px;
    }
}

/* BIPAY SECTION */
.bipay-section {
    background: #003d73;
    color: white;
    padding: 1rem 0;
}

.bipay-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.bipay-content h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bitel-yellow);
}

.bipay-icon {
    font-size: 2rem;
    color: var(--bitel-yellow);
}

/* BENEFICIOS */
.benefits-section {
    background: white;
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--bitel-blue);
}

.divider {
    width: 5rem;
    height: 4px;
    background: var(--bitel-yellow);
    margin: 0.5rem auto 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

@media(min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-item .icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.blue-light {
    background: #dbeafe;
    color: var(--bitel-blue);
}

.yellow-light {
    background: #fef9c3;
    color: #ca8a04;
}

.purple-light {
    background: #f3e8ff;
    color: #9333ea;
}

.benefit-item h3 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* SECCIONES PLANES (Carousel Snap) */
.planes-section {
    padding: 2rem 0;
}

@media(min-width: 768px) {
    .planes-section {
        padding: 4rem 0;
    }
}

.bg-blue-50 {
    background: #eff6ff;
}

.bg-white {
    background: white;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.icon-box-blue {
    background: var(--bitel-blue);
    color: white;
    padding: 8px;
    border-radius: 8px;
}

.icon-box-yellow {
    background: var(--bitel-yellow);
    color: var(--bitel-blue);
    padding: 8px;
    border-radius: 8px;
}

.section-title-row h2 {
    margin-top: 0.5rem;
}

/* CAROUSEL CONTAINER */
.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* PLAN CARD */
.plan-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.card-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bitel-yellow);
    color: var(--bitel-blue);
    font-weight: 900;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-bottom-right-radius: 0.5rem;
    border-top-left-radius: 1rem;
    z-index: 10;
}

.card-header {
    background: var(--bitel-blue);
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* --- ROUTER FLOTANTE --- */
.router-float {
    position: absolute;
    width: 70px;
    top: -10px;
    left: -20px;
    z-index: 20;
    /*.filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));*/
    transform: rotate(-15deg);
    animation: floatRouter 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatRouter {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg);
    }

    50% {
        transform: translateY(-10px) rotate(-10deg);
    }
}

.fibra-card .card-tag {
    left: auto;
    right: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0.5rem;
}

.fibra-card .card-header {
    padding-top: 3rem;
    /* Espacio para el router */
}

.speed-row i {
    color: var(--bitel-yellow);
}

.speed-row span {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
}

.card-price {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.card-price .regular {
    text-decoration: line-through;
    color: #6b7280;
    font-size: 0.875rem;
}

.price-large {
    color: var(--bitel-blue);
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price-symbol {
    font-size: 1.5rem;
    font-weight: bold;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.price-month {
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 4px;
}

.promo-pill {
    background: #dcfce7;
    color: var(--bitel-green);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 9999px;
    display: inline-block;
    margin-top: 4px;
}

.card-features {
    padding: 1.25rem;
    flex-grow: 1;
}

.feature-row {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-row i {
    color: var(--bitel-green);
    margin-top: 4px;
}

.feature-row p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4;
}

.card-cta {
    padding: 1.5rem;
    padding-top: 0;
    text-align: center;
}

.btn-card {
    width: 100%;
    margin: 0 auto;
    background: var(--bitel-green);
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    box-shadow: var(--shadow);
}

.btn-card:hover {
    background: var(--bitel-green-dark);
}

/* FOOTER */
.main-footer {
    background-color: #00549A;
    background-color: var(--bitel-blue);
    color: white;
    padding: 3rem 0 6rem;
    width: 100%;
}

@media(min-width: 768px) {
    .main-footer {
        padding-bottom: 3rem;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.5fr;
    }
}

.footer-col h4 {
    color: var(--bitel-yellow);
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
    color: #dbeafe;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: white;
}

.footer-contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dbeafe;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact-info i {
    color: var(--bitel-yellow);
    width: 20px;
    text-align: center;
}

/* CAPTURE BOX STYLES */
.capture-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.capture-box h4 {
    color: var(--bitel-yellow);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.capture-box p {
    font-size: 0.85rem;
    color: #dbeafe;
    margin-bottom: 1rem;
}

.footer-form {
    display: flex;
    gap: 0.5rem;
}

.footer-form input {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    outline: none;
}

.footer-form button {
    background: var(--bitel-green);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.footer-form button:hover {
    background: var(--bitel-green-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* MOBILE BOTTOM BAR */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
    z-index: 500;
}

@media(min-width: 768px) {
    .mobile-bottom-bar {
        display: none;
    }
}

.call-cta {
    display: flex;
    flex-direction: column;
}

.call-cta span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: bold;
    text-transform: uppercase;
}

.call-cta a {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--bitel-blue);
    text-decoration: none;
}

.wsp-btn-mobile {
    background: var(--bitel-green);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

/* DESKTOP WSP FLOAT */
.wsp-float-desktop {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bitel-green);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: bold;
    text-decoration: none;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    z-index: 500;
    transition: 0.3s;
}

@media(min-width: 768px) {
    .wsp-float-desktop {
        display: flex;
    }
}

.wsp-float-desktop:hover {
    transform: scale(1.05);
}

/* MODAL */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(2px);
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 32rem;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.3s;
}

.modal-header {
    background: var(--bitel-yellow);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--bitel-blue);
    font-weight: 900;
    text-transform: uppercase;
}

.modal-header button {
    background: none;
    border: none;
    color: var(--bitel-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.info-alert {
    background: #eff6ff;
    color: var(--bitel-blue);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

#purchaseForm label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

#purchaseForm input,
#purchaseForm select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    outline: none;
    background: white;
    box-sizing: border-box;
}

#purchaseForm input:focus,
#purchaseForm select:focus {
    border-color: var(--bitel-blue);
    box-shadow: 0 0 0 2px var(--bitel-blue);
}

#purchaseForm .btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    background: #f9fafb;
    margin: 0 -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
}

.btn-cancel {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-submit {
    background: var(--bitel-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    box-shadow: 0 8px 16px rgba(0, 30, 80, 0.2);
}

/* Carousel Navigation */

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--bitel-blue);
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: var(--bitel-blue);
    color: var(--bitel-yellow);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 30, 80, 0.2);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow.left {
    left: -24px;
}

.nav-arrow.right {
    right: -24px;
}

@media (max-width: 1024px) {
    .nav-arrow {
        display: none;
    }
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    color: #1f2937;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    min-width: 300px;
    max-width: 400px;
    border-left: 6px solid var(--bitel-blue);
    pointer-events: auto;
    font-weight: 500;
}

.toast.success {
    border-left-color: var(--bitel-green);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast i {
    font-size: 1.5rem;
}

.toast.success i {
    color: var(--bitel-green);
}

.toast.error i {
    color: #ef4444;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}