/* ==========================================================================

VARIABLES Y RESET GENERAL
========================================================================== */
:root {
--primary-color: #ff8922;
--primary-hover: #e04b00;
--dark-bg: #121212;
--light-bg: #f4f6f8;
--card-bg: #ffffff;
--text-dark: #222222;
--text-muted: #666666;
--border-radius: 16px;
--shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
html {
scroll-behavior: smooth;
}

body {
background-color: var(--light-bg);
color: var(--text-dark);
line-height: 1.6;
overflow-x: hidden;
position: relative;
}

a {
text-decoration: none;
color: inherit;
}

/* --- CANVAS DE FONDO --- */
#bgCanvas {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;
pointer-events: none;
}

/* ==========================================================================
2. NAVBAR & HEADER
========================================================================== */
.navbar {
background-color: var(--primary-color);
padding: 10px 20px;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}

.logo {
display: flex;
align-items: center;
flex-shrink: 0;
}

.logo a {
display: flex;
align-items: center;
text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    background-color: transparent;
}

.logo.white-logo {
font-size: 26px;
font-weight: 900;
color: #ffffff;
}

.logo span {
color: #000000;
}

.nav-menu {
display: flex;
align-items: center;
gap: 18px;
flex-wrap: wrap;
}

.nav-menu a {
color: #ffffff;
font-weight: 700;
font-size: 0.85rem;
white-space: nowrap;
transition: color 0.3s, opacity 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
color: #000000;
opacity: 0.85;
text-decoration: underline;
}

.nav-actions {
display: flex;
align-items: center;
gap: 15px;
flex-shrink: 0;
}

.phone-num {
color: #ffffff;
font-weight: 800;
font-size: 0.95rem;
white-space: nowrap;
}

.btn-portal {
background-color: #000000;
color: #ffffff;
padding: 10px 20px;
border-radius: 25px;
font-weight: 800;
font-size: 0.8rem;
white-space: nowrap;
transition: background-color 0.3s, transform 0.2s;
}

.btn-portal:hover {
background-color: #222222;
transform: translateY(-2px);
}

/* ==========================================================================
3. HERO SECTION
========================================================================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('images/images.jpg') center/cover no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

.hero-container {
max-width: 1200px;
margin: 0 auto;
width: 100%;
}

.hero-badge-box {
background-color: rgba(248, 123, 56, 0.95);
color: #fff;
padding: 30px;
border-radius: 12px;
max-width: 380px;
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.badge-number {
font-size: 3.5rem;
font-weight: 900;
line-height: 1;
}

.badge-text strong {
display: block;
font-size: 1.2rem;
}

.badge-sub {
margin-top: 10px;
font-size: 0.85rem;
letter-spacing: 1px;
}

.btn-hero {
display: inline-block;
margin-top: 20px;
background-color: #000;
color: #fff;
padding: 12px 20px;
border-radius: 25px;
font-weight: 800;
text-transform: uppercase;
font-size: 0.85rem;
transition: transform 0.2s, background-color 0.2s;
}

.btn-hero:hover {
transform: scale(1.05);
background-color: #222;
}

/* ==========================================================================
4. CONTENEDOR PRINCIPAL Y ENCABEZADOS DE PÁGINA
========================================================================== */
.main-container {
max-width: 1100px;
margin: 50px auto;
padding: 0 20px;
text-align: center;
display: flex;
flex-direction: column;
gap: 60px;
}

.page-header h1 {
font-size: 32px;
font-weight: 900;
color: var(--text-dark);
margin-bottom: 10px;
}

.page-header h1 span {
color: var(--primary-color);
}

.page-header p {
color: var(--text-muted);
font-size: 15px;
font-weight: 500;
margin-bottom: 40px;
}

.section-title {
text-align: center;
font-size: 2rem;
font-weight: 900;
margin-bottom: 30px;
color: var(--text-dark);
line-height: 1.3;
}

.section-title span {
color: var(--primary-color);
}

/* ==========================================================================
5. SECCIÓN DE PLANES CON TARJETAS FLIP
========================================================================== */
.plans-section {
padding: 50px 20px;
max-width: 1200px;
margin: 0 auto;
}

.tabs-container {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 35px;
flex-wrap: wrap;
}

.tab-btn {
background-color: #ffffff;
border: 2px solid #e2e8f0;
padding: 12px 24px;
border-radius: 30px;
font-family: inherit;
font-weight: 800;
font-size: 0.95rem;
color: #555;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}

.tab-btn:hover,
.tab-btn.active {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: #ffffff;
box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
}

.plans-grid {
display: none;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
}

.plans-grid.active {
display: grid;
}

/* ANIMACIÓN FLIP DE PLANES */
.plan-card {
background-color: transparent;
height: 380px;
perspective: 1000px;
cursor: pointer;
}

.card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
transform-style: preserve-3d;
}

.plan-card.flipped .card-inner,
.plan-card:hover .card-inner {
transform: rotateY(180deg);
}

.card-face {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 16px;
padding: 30px 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
box-shadow: var(--shadow);
border: 1px solid #eef2f6;
}

.card-front {
background-color: #ffffff;
}

.front-badge {
background-color: var(--primary-color);
color: #fff;
font-size: 0.75rem;
font-weight: 800;
padding: 6px 16px;
border-radius: 20px;
letter-spacing: 1px;
}

.front-badge.gamer {
background-color: #111827;
}

.front-title {
font-size: 1.3rem;
font-weight: 800;
color: #1e293b;
line-height: 1.2;
}

.front-title span {
color: var(--primary-color);
}

.front-price {
font-size: 2.8rem;
font-weight: 900;
color: #0f172a;
}

.front-price span {
font-size: 1rem;
font-weight: 600;
color: #64748b;
}

.flip-hint {
font-size: 0.75rem;
color: #94a3b8;
font-weight: 600;
}

.card-back {
background-color: #0f172a;
color: #ffffff;
transform: rotateY(180deg);
}

.back-title {
font-size: 1.2rem;
font-weight: 800;
color: var(--primary-color);
margin-bottom: 10px;
}

.benefits-list {
list-style: none;
width: 100%;
font-size: 0.9rem;
}

.benefits-list li {
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-list li span {
font-weight: 700;
color: #38bdf8;
}

.benefits-list li.highlight {
color: #4ade80;
font-weight: 700;
}

.benefits-list li.subtext {
font-size: 0.8rem;
color: #94a3b8;
}

.btn-action {
background-color: var(--primary-color);
color: #ffffff;
width: 100%;
padding: 12px;
border-radius: 25px;
font-weight: 800;
font-size: 0.9rem;
transition: background 0.3s;
}

.btn-action:hover {
background-color: var(--primary-hover);
}

.terms-notes {
text-align: center;
margin-top: 30px;
font-size: 0.8rem;
color: #64748b;
}

.terms-notes a {
color: var(--primary-color);
text-decoration: underline;
}

/* ==========================================================================
6. REJILLA DE TARJETAS DE PAGO
========================================================================== */
.payment-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}

.card {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 35px 25px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 2px solid transparent;
transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
transform: translateY(-5px);
border-color: var(--primary-color);
}

.card.highlighted {
border-color: var(--primary-color);
background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
}

.card-icon {
font-size: 40px;
margin-bottom: 15px;
}

.text-orange {
color: var(--primary-color);
}

.card h3 {
font-size: 18px;
font-weight: 800;
color: var(--text-dark);
margin-bottom: 20px;
}

.btn-badge {
padding: 10px 22px;
border-radius: 20px;
font-weight: 800;
font-size: 13px;
cursor: pointer;
transition: all 0.3s ease;
outline: none;
}

.btn-outline {
background-color: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-color);
}

.btn-outline:hover {
background-color: var(--primary-color);
color: #ffffff;
box-shadow: 0 4px 12px rgba(255, 85, 0, 0.25);
}

.btn-fill {
background-color: #ffffff;
color: var(--primary-color);
border: 2px solid var(--primary-color);
box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.btn-fill:hover {
background-color: var(--primary-hover);
color: #ffffff;
border-color: var(--primary-hover);
}

/* ==========================================================================
7. SECCIÓN NOSOTROS (QUIÉNES SOMOS, MISIÓN, VISIÓN, VALORES)
========================================================================== */
.about-hero {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 40px;
box-shadow: var(--shadow);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
text-align: left;
}

.about-text h1 {
font-size: 32px;
font-weight: 900;
color: var(--text-dark);
margin-bottom: 20px;
line-height: 1.2;
}

.about-text h1 span {
color: var(--primary-color);
}

.about-text p {
color: var(--text-muted);
font-size: 15px;
font-weight: 500;
}

.about-img-wrapper {
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow);
max-height: 350px;
}

.about-img-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.purpose-section {
text-align: center;
}

.purpose-title {
font-size: 26px;
font-weight: 900;
margin-bottom: 30px;
color: var(--text-dark);
}

.purpose-title span {
color: var(--primary-color);
}

.purpose-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}

.purpose-card {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 35px 25px;
box-shadow: var(--shadow);
border-top: 5px solid var(--primary-color);
transition: transform 0.3s;
text-align: left;
}

.purpose-card:hover {
transform: translateY(-5px);
}

.purpose-icon {
font-size: 42px;
color: var(--primary-color);
margin-bottom: 15px;
}

.purpose-card h2 {
font-size: 22px;
font-weight: 800;
margin-bottom: 12px;
}

.purpose-card p {
color: var(--text-muted);
font-size: 14px;
}

.values-section {
text-align: center;
}

.values-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
}

.value-card {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 30px 20px;
box-shadow: var(--shadow);
transition: transform 0.3s, border-color 0.3s;
border: 2px solid transparent;
}

.value-card:hover {
transform: translateY(-5px);
border-color: var(--primary-color);
}

.value-icon {
font-size: 36px;
color: var(--primary-color);
margin-bottom: 15px;
}

.value-card h3 {
font-size: 18px;
font-weight: 800;
margin-bottom: 10px;
}

.value-card p {
color: var(--text-muted);
font-size: 13px;
}

/* ==========================================================================
8. SECCIÓN REGISTRO Y MAPA
========================================================================== */
.registration-section {
background-color: #ffffff;
padding: 50px 20px;
border-top: 1px solid #e2e8f0;
}

.form-container {
max-width: 800px;
margin: 0 auto;
}

.form-title {
text-align: center;
font-size: 1.6rem;
font-weight: 900;
color: #0f172a;
margin-bottom: 30px;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

.form-group {
margin-bottom: 20px;
display: flex;
flex-direction: column;
}

.form-group label {
font-size: 0.85rem;
font-weight: 700;
color: #334155;
margin-bottom: 8px;
}

.form-group input,
.form-group select {
padding: 12px 16px;
border: 2px solid #cbd5e1;
border-radius: 8px;
font-family: inherit;
font-size: 0.95rem;
transition: border-color 0.3s;
outline: none;
}

.form-group input:focus,
.form-group select:focus {
border-color: var(--primary-color);
}

.search-box {
display: flex;
gap: 10px;
margin-bottom: 12px;
}

.search-box input {
flex: 1;
}

.search-box button {
background-color: #0f172a;
color: #ffffff;
border: none;
padding: 0 20px;
border-radius: 8px;
font-weight: 700;
cursor: pointer;
transition: background 0.3s;
}

.search-box button:hover {
background-color: var(--primary-color);
}

#map {
height: 320px;
width: 100%;
border-radius: 12px;
box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
border: 2px solid #cbd5e1;
}

.coordinates-readout {
margin-top: 8px;
font-size: 0.8rem;
color: #64748b;
font-weight: 600;
}

.btn-submit {
background-color: #25d366;
color: #ffffff;
border: none;
width: 100%;
padding: 16px;
border-radius: 30px;
font-family: inherit;
font-size: 1.1rem;
font-weight: 800;
cursor: pointer;
box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
transition: transform 0.2s, background 0.3s;
}

.btn-submit:hover {
background-color: #1ebc57;
transform: translateY(-2px);
}

/* ==========================================================================
9. SECCIÓN ¿POR QUÉ ELEGIR CLICKPERU?
========================================================================== */
.why-choose-section {
padding: 60px 20px;
max-width: 1200px;
margin: 0 auto;
}

.why-title {
text-align: center;
font-size: 1.8rem;
font-weight: 900;
margin-bottom: 40px;
}

.why-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
align-items: center;
}

.why-card {
background-color: #ffffff;
padding: 30px;
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.why-sub {
font-size: 1.1rem;
font-weight: 800;
line-height: 1.4;
}

.highlight-orange {
color: var(--primary-color);
font-size: 1.3rem;
}

.badge-osiptel {
display: inline-block;
margin-top: 15px;
background-color: #f1f5f9;
padding: 6px 12px;
border-radius: 6px;
font-size: 0.8rem;
font-weight: 700;
color: #475569;
}

.why-image img {
width: 100%;
height: 280px;
object-fit: cover;
border-radius: 16px;
}

.award-box {
background-color: #0f172a;
color: #ffffff;
padding: 35px 25px;
border-radius: 16px;
text-align: center;
}

.award-rank {
display: block;
font-size: 2.2rem;
font-weight: 900;
color: var(--primary-color);
}

.award-title {
display: block;
font-weight: 800;
margin: 10px 0 5px;
}

.award-sub {
font-size: 0.8rem;
color: #94a3b8;
}

/* ==========================================================================
10. MODAL DE INSTRUCCIONES
========================================================================== */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 2000;
padding: 20px;
}

.modal-overlay.active {
opacity: 1;
visibility: visible;
}

.modal-container {
background-color: var(--card-bg);
border-radius: var(--border-radius);
width: 100%;
max-width: 550px;
padding: 35px 30px;
position: relative;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
transform: translateY(20px);
transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
transform: translateY(0);
}

.modal-close {
position: absolute;
top: 15px;
right: 15px;
background: #f0f0f0;
border: none;
color: #333333;
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 18px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
background: var(--primary-color);
color: #ffffff;
}

.modal-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid var(--light-bg);
}

.modal-icon {
font-size: 28px;
}

.modal-header h2 {
font-size: 20px;
font-weight: 800;
color: var(--text-dark);
}

.steps-list {
display: flex;
flex-direction: column;
gap: 12px;
text-align: left;
}

.step-item {
background-color: var(--light-bg);
border-left: 4px solid var(--primary-color);
border-radius: 0 8px 8px 0;
padding: 14px 18px;
font-size: 14px;
color: var(--text-dark);
}

.step-item strong {
color: var(--primary-color);
}

/* ==========================================================================
11. FOOTER
========================================================================== */
footer {
background-color: var(--dark-bg);
color: #ffffff;
padding: 50px 20px 20px;
margin-top: 80px;
}

.footer-container {
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}

.brand-subtext {
color: #cccccc;
font-size: 13px;
margin: 8px 0;
}

.copyright-text {
color: #777777;
font-size: 12px;
margin-top: 15px;
}

.footer-contact h4,
.footer-newsletter h4 {
font-size: 16px;
font-weight: 800;
margin-bottom: 15px;
color: var(--primary-color);
}

.contact-info p {
font-size: 13px;
color: #dddddd;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 10px;
}

.newsletter-form {
display: flex;
gap: 8px;
}

.newsletter-form input {
padding: 10px 14px;
border-radius: 6px;
border: none;
outline: none;
font-size: 13px;
flex: 1;
}

.newsletter-form button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 10px 18px;
border-radius: 6px;
font-weight: 800;
cursor: pointer;
}

/* ==========================================================================
12. BOTONES FLOTANTES DE CONTACTO
========================================================================== */
.floating-buttons {
position: fixed;
bottom: 25px;
right: 25px;
z-index: 999;
display: flex;
flex-direction: column;
gap: 12px;
}

.float-btn {
width: 48px;
height: 48px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
font-size: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn:hover {
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.float-btn.facebook { background-color: #1877f2; }
.float-btn.tiktok { background-color: #000000; }
.float-btn.whatsapp { background-color: #25d366; }
.float-btn.phone { background-color: var(--primary-color); }

/* ==========================================================================
13. RESPONSIVE DESIGN (DISPOSITIVOS MÓVILES)
========================================================================== */
@media (max-width: 768px) {
.nav-menu,
.phone-num {
display: none;
}

.payment-grid,
.about-hero, 
.purpose-grid,
.form-row {
    grid-template-columns: 1fr;
}

.section-title {
    font-size: 1.5rem;
}

.tabs-container {
    flex-direction: column;
}

.tab-btn {
    width: 100%;
    justify-content: center;
}


}

/* Posicionamiento en el centro del Hero */
.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinea los elementos internos */
}

.hero-center-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Ocupa el espacio disponible para centrarse */
}

/* Estilos del botón flotante centrado con texto resaltado */
.hero-phone-btn {
    display: inline-block;
    background-color: transparent; /* Fondo transparente */
    color: #ffffff !important; /* Texto totalmente blanco */
    font-size: 2.2rem; /* Un poco más grande para mejorar visibilidad */
    font-weight: 900; /* Texto súper en negrita */
    padding: 14px 32px;
    border: 2px solid #ff6600; /* Borde del contenedor naranja opcional */
    border-radius: 50px;
    text-decoration: none;
    
    /* 1. DELINEADO NEGRO ALREDEDOR DE LAS LETRAS */
    -webkit-text-stroke: 1.5px #000000;
    
    /* 2. SOMBRA NEGRA PARA HACER CONTRASTE MÁXIMO CON CUALQUIER FONDO */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7);

    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hero-phone-btn:hover {
    background-color: #ff6600; /* Relleno naranja al pasar el cursor */
    transform: scale(1.08);
    color: #ffffff !important;
    -webkit-text-stroke: 1px #000000;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.6);
}