/* VARIABLES y RESET */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #1abc9c; /* Verde/Cian para acentos */
    --background-dark: #121212; /* Fondo oscuro elegante */
    --background-light: #1e1e1e; /* Fondo de secciones */
    --text-color: #f0f0f0; /* Texto claro */
    --card-hover: #2a2a2a;
    --border-radius: 10px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ---------------- HEADER y NAVEGACIÓN ---------------- */
header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.whatsapp-btn-header {
    background-color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    color: var(--background-dark) !important;
    transition: transform 0.2s, opacity 0.2s;
}

.whatsapp-btn-header:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    border-bottom: none;
}

/* ---------------- SECCIONES GENERALES ---------------- */
main {
    padding: 0 5%;
}

section {
    padding: 80px 0;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(240, 240, 240, 0.1);
    margin: 0 5%;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
}

/* ---------------- PRODUCTOS ---------------- */
.products-section h2 {
    margin-bottom: 50px; 
}

.product-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 0 30px 30px 30px; 
    width: 350px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; 
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
    background-color: var(--card-hover);
}

/* Estilos para la imagen promocional */
.product-image {
    width: calc(100% + 60px); 
    margin: 0 -30px 20px -30px; 
    height: 290px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--background-dark); 
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05); 
}

.card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 1rem;
}

.features li:last-child {
    border-bottom: none;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--background-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.buy-button:hover {
    background: #0056b3;
    transform: scale(1.02);
}

/* ---------------- REFERENCIAS ---------------- */
.references-section {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 80px 5%;
    margin-bottom: 50px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.references-section .section-description {
    font-size: 1.1rem;
    color: rgba(240, 240, 240, 0.8);
    margin-bottom: 50px; 
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 0; 
}

.reference-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.reference-item:hover {
    transform: scale(1.05) rotate(1deg);
}

.reference-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

/* ---------------- WHATSAPP FLOTANTE ---------------- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 1.5s infinite;
    text-decoration: none; 
}

.whatsapp-float-btn i {
    color: white; 
    font-size: 30px; 
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* KEYFRAMES */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

/* ---------------- PÁGINAS DE PAGO (FORMULARIOS) ---------------- */

.payment-section {
    min-height: 80vh;
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.payment-section h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
    text-align: center;
}

.payment-box {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--primary-color);
}

.payment-instructions, .activation-info {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.payment-instructions h3, .activation-info h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.payment-instructions ol, .activation-info p {
    padding-left: 20px;
}

.payment-instructions ol li {
    margin-bottom: 10px;
}

/* Estilos Específicos del Formulario */
.payment-form {
    display: grid;
    gap: 20px;
    padding-top: 20px; /* Separación del título */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color); /* Color de acento para las etiquetas */
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background-color: var(--card-hover); /* Fondo ligeramente más oscuro que la caja */
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Efecto tecnológico al enfocar */
}

/* Estilo del Botón de Envío */
.submit-button {
    background-color: var(--secondary-color);
    color: var(--background-dark);
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}


/* ---------------- ADAPTACIÓN A MÓVILES (RESPONSIVE DESIGN) 📱 ---------------- */

/* Tabletas y pantallas medianas (max-width: 992px) */
@media (max-width: 992px) {
    header {
        padding: 15px 3%;
    }
    
    .product-card {
        width: 45%; 
        min-width: 300px; 
    }
    
    .product-image {
        height: 240px; 
    }

    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    #whatsapp-contact-desktop {
        display: none !important; 
    }
    
    .payment-box {
        padding: 30px; /* Reducir padding en tabletas */
    }
    
    .payment-section h2 {
        font-size: 1.8rem;
    }
}

/* Móviles (max-width: 600px) */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 15px;
        position: static; 
    }

    nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 5px 10px;
    }

    #whatsapp-contact-desktop {
        display: none !important;
    }
    
    .product-card {
        width: 100%; 
        margin: 0 auto;
    }
    
    .product-image {
        height: 290px; 
        width: calc(100% + 60px); 
        margin: 0 -30px 20px -30px;
    }

    .payment-box {
        padding: 20px; /* Mínimo padding en móvil */
    }
    
    .payment-instructions h3, .activation-info h3 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 10px;
    }

    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float-btn i {
        font-size: 25px; 
    }
}
