/* Variables de Diseño (Premium Automotive Dark Theme) */
:root {
    --primary-color: #e62222; /* Rojo deportivo más intenso */
    --primary-hover: #ff3b30;
    --bg-dark: #070709;
    --bg-alt: #0d0d12;
    --bg-card: rgba(20, 20, 28, 0.6);
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Utils */
.section {
    padding: 60px 0;
    scroll-margin-top: 130px; /* Para que el menú fijo no tape el título al hacer clic en enlaces */
}

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(230, 34, 34, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

/* Header Wrapper */
.header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #11131c; /* Color sólido para que no se traslape texto al hacer scroll */
    border-bottom: 1px solid var(--border-color);
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, #ff7b54 0%, #ff523b 100%);
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.top-banner p {
    margin: 0;
}

.top-banner .divider {
    margin: 0 10px;
    opacity: 0.5;
}

/* Navbar */
.navbar {
    position: relative;
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px; /* Logo ajustado */
    width: auto;
    object-fit: contain;
    border-radius: 0; /* Por si el logo es png transparente */
}

.navbar nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px; /* Espacio para el top-banner + navbar */
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(230, 34, 34, 0.15);
    color: var(--primary-hover);
    border: 1px solid rgba(230, 34, 34, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: #d4d4d8;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Beneficios (Tarjetas estilo referencia visual) */
.card-feature {
    background: #1a1b26; /* Color azul oscuro como en la imagen */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card-feature-header {
    margin-bottom: 20px;
}

.card-feature-header h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-feature-header p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-feature-img {
    margin-bottom: 20px;
}

.card-feature-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.card-feature-footer {
    text-align: center;
    margin-top: auto;
}

.card-feature-footer small {
    display: block;
    margin-top: 10px;
    color: #8c8c94;
    font-size: 0.8rem;
}

/* Botón Naranja */
.btn-orange {
    background: linear-gradient(135deg, #ff7b54 0%, #ff523b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 82, 59, 0.3);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background: linear-gradient(135deg, #ff8c69 0%, #ff6450 100%);
    box-shadow: 0 6px 20px rgba(255, 82, 59, 0.5);
    transform: translateY(-2px);
}

/* Productos (Tarjetas de Precios) */
.pricing-card {
    background: #161925; /* Color azul muy oscuro */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    /* overflow: hidden quitado para que el badge sobresalga */
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border: 1px solid #ff7b54;
    background: #1a1e2d;
    margin-top: 35px; /* Espacio extra arriba para el badge completo */
}

@media (min-width: 768px) {
    .pricing-card.popular {
        transform: scale(1.03);
    }
    .pricing-card.popular:hover {
        transform: scale(1.03) translateY(-5px);
    }
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.pricing-badge {
    position: absolute;
    top: -32px; /* Mueve el badge completamente arriba de la tarjeta */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff7b54 0%, #ff523b 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px; /* Bordes completamente redondeados */
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap; /* Evita que el texto se divida en dos líneas */
}

.pricing-img-container {
    width: 100%;
    height: 250px;
}

.pricing-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.pricing-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pricing-info h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.color-badge {
    display: inline-block;
    background: #1a1b26;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.kit-desc {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #00b4d8; /* Azul cyan brillante */
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.includes-list {
    list-style: none;
    margin-bottom: 20px;
}

.includes-list li {
    font-size: 0.9rem;
    color: #d4d4d8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.includes-list .check {
    color: #00b4d8;
    margin-right: 8px;
    font-weight: bold;
}

.gratis-box {
    border: 1px solid rgba(255, 82, 59, 0.4);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 82, 59, 0.05);
    margin-bottom: 24px;
    flex-grow: 1;
}

.gratis-title {
    color: #ff7b54;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.gratis-box ul {
    list-style: none;
}

.gratis-box ul li {
    font-size: 0.85rem;
    color: #ff7b54;
    margin-bottom: 6px;
}

/* Urgency Banner & Trust Badges */
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.03); }
    30% { transform: scale(1); }
    45% { transform: scale(1.03); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.urgency-banner {
    background: rgba(255, 82, 59, 0.1);
    border: 1px solid rgba(255, 82, 59, 0.4);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
    animation: heartbeat 2s infinite;
    box-shadow: 0 0 15px rgba(255, 82, 59, 0.2);
}

.urgency-icon {
    font-size: 1.2rem;
    margin-right: 5px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.trust-secure img {
    height: 100px;
    object-fit: contain;
}

.trust-shipping {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    background: white;
    padding: 15px 30px;
    border-radius: 12px;
}

.trust-shipping img {
    height: 65px;
    object-fit: contain;
}

/* Testimonios */
.testimonio-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonio-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.testimonio-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonio-content p {
    color: #e4e4e7;
    font-style: italic;
    margin-bottom: 16px;
    flex-grow: 1;
}

.testimonio-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #161925;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
    border-color: rgba(255, 82, 59, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 24px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #a1a1aa;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #ff7b54;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 24px 20px;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #0a0b10;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #ff7b54;
}

.footer-col p {
    color: #a1a1aa;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Modal Formulario */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #121214;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.modal-content::-webkit-scrollbar,
select::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

select {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #a1a1aa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

.modal-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
}

.modal-header p {
    color: #a1a1aa;
    font-size: 0.95rem;
}

/* Caja de producto seleccionado */
.selected-product-box {
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.box-label {
    display: block;
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

#modalProductName {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.box-price {
    color: #ff7b54;
    font-weight: 700;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #11131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff7b54;
    box-shadow: 0 0 0 2px rgba(255, 123, 84, 0.2);
}

.modal-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-text {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px 15px;
}

.btn-text:hover {
    color: #ff7b54;
}

/* Utilities Extras */

/* Animaciones */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .navbar nav { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 30px 0; }
    .section-title { font-size: 2rem; }
    .section-subtitle { margin-bottom: 25px; font-size: 1rem; }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .card-feature, .pricing-card {
        padding: 20px;
    }
    
    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}
