@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0f1115;
  --surface: #171b22;
  --primary: #00a8e8;
  --primary-hover: #0094cc;
  --accent: #25d366;
  --text: #f5f7fa;
  --muted: #98a2b3;
  --border: #2a2f3a;
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.625rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Sections */
section {
    padding: 5rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-inline: auto;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

header.compact {
    padding: 0.5rem 2rem;
    background-color: rgba(15, 17, 21, 0.95);
}

#logo img {
    height: 40px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-nav {
    background-color: var(--primary);
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    color: #fff !important;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    max-width: 100%;
    text-align: center;
    background: url('../images/autos.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15,17,21,0.6) 0%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 1rem;
    background-color: var(--surface);
    border-radius: 16px;
    margin-top: -50px;
    position: relative;
    z-index: 20;
    text-align: center;
    border: 1px solid var(--border);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Categorias */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid var(--border);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.3s;
}

.card-overlay h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.3s;
}

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

.category-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0,168,232,0.8), transparent);
}

.category-card:hover h3 {
    transform: translateY(0);
}

/* Marcas */
.marcas-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.logo-circular {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s;
    border: 2px solid var(--border);
}

.logo-circular img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-circular:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Beneficios & Medios Pago */
.beneficios-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background-color: var(--surface);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.medios-pago-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.medio-pago {
    text-align: center;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex: 1;
    min-width: 100px;
}

.medio-pago img {
    height: 48px;
    margin-bottom: 1rem;
}

/* Como Comprar */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.reviews-header {
    margin-bottom: 3rem;
}

.eyebrow {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(0, 168, 232, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.reviews-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.125rem;
    color: var(--muted);
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 500px;
    margin-inline: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1;
}

.rating-info {
    text-align: left;
}

.stars-summary {
    color: #fbbc04;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.rating-info span {
    color: var(--muted);
    font-size: 0.9rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: left;
}

.review-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

.review-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-meta strong {
    color: #fff;
    font-size: 1.05rem;
}

.review-meta span {
    color: var(--muted);
    font-size: 0.85rem;
}

.review-stars {
    color: #fbbc04;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.review-card p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    font-style: normal;
}

.reviews-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

.btn-review {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Sobre Nosotros & Ubicacion */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.mapa-container {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1.5rem;
    height: 300px;
    border: 1px solid var(--border);
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
}

.ubicacion address {
    font-style: normal;
    color: var(--muted);
    margin-top: 1rem;
    display: block;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--surface) 0%, #0d1a26 100%);
    border-radius: 24px;
    text-align: center;
    padding: 5rem 2rem;
    border: 1px solid var(--border);
}

.cta-final h2 {
    margin-bottom: 1rem;
}

.cta-final p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Contacto */
#contacto form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-sans);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

#contacto button {
    width: 100%;
}

#datos-contacto {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

#datos-contacto > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

#datos-contacto a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
}

#datos-contacto a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

#direccion a::after { content: "📍"; font-size: 24px; }
#whatsapp a::after { content: "💬"; font-size: 24px; }
#email a::after { content: "✉️"; font-size: 24px; }

/* Footer */
footer {
    background: #0b0c0f;
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #fff;
}

/* Links (Left) */
.links-col {
    justify-self: start;
    text-align: left;
}

.links-col ul {
    list-style: none;
}

.links-col li {
    margin-bottom: 0.75rem;
}

.links-col a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.links-col a:hover {
    color: var(--primary);
}

/* Logo (Center) */
.logo-col {
    justify-self: center;
    text-align: center;
}

.logo-col img {
    height: 70px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-col img:hover {
    opacity: 1;
}

/* Social (Right) */
.social-col {
    justify-self: end;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
    border: 1px solid var(--border);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-bottom .linkedin {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom .linkedin:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Responsive */
@media (max-width: 992px) {
    .beneficios-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 2rem;
        align-items: start;
    }
    
    .logo-col {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 2rem;
    }
    
    .links-col {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }
    
    .social-col {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        text-align: right;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        background: rgba(15, 17, 21, 0.98);
        padding: 2rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .trust-bar {
        margin-top: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #contacto form {
        padding: 1.5rem;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        text-align: center;
    }

    .rating-info {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .logo-col, .links-col, .social-col {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-self: center;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .links-col li {
        margin-bottom: 1rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-google, .btn-review {
        width: 100%;
        justify-content: center;
    }
}