/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --dark: #0f172a;
  --gray-800: #1e293b;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --accent: #f59e0b;
  --green: #10b981;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none;
  transition: all .2s ease; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.full-width { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.logo i { font-size: 1.3rem; }
.logo-img { height: 42px; width: 42px; object-fit: cover; border-radius: 8px; }
.nav-links {
  display: flex; list-style: none; gap: 8px; margin-left: auto;
}
.nav-links a {
  text-decoration: none; color: var(--gray-600); font-weight: 500;
  padding: 6px 14px; border-radius: 6px; transition: all .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-cta { margin-left: 8px; padding: 10px 20px; }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--dark); margin-left: auto;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 20px 16px; border-top: 1px solid var(--gray-100);
  background: var(--white);
}
.mobile-menu a {
  text-decoration: none; color: var(--gray-600); font-weight: 500;
  padding: 10px 12px; border-radius: 8px; transition: all .2s;
}
.mobile-menu a:hover { color: var(--primary); background: var(--primary-light); }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  padding: 80px 0 100px; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block; background: rgba(255,255,255,.12); color: var(--accent);
  border: 1px solid rgba(245,158,11,.4); padding: 6px 14px;
  border-radius: 20px; font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.highlight { color: #60a5fa; }
.hero-text p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat strong { color: var(--white); font-size: 1.3rem; font-weight: 700; }
.stat span { color: #94a3b8; font-size: .8rem; }

.hero-image { position: relative; display: flex; justify-content: center; }
.phone-mockup {
  width: 200px; height: 380px; background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 100px; color: rgba(255,255,255,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.1);
}
.floating-card {
  position: absolute; background: var(--white); border-radius: 10px;
  padding: 10px 14px; font-size: .82rem; font-weight: 600;
  color: var(--dark); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.floating-card i { color: var(--primary); }
.card-1 { top: 60px; right: -10px; }
.card-2 { bottom: 80px; left: -20px; }

/* ===== QUICK SERVICES ===== */
.quick-services { background: var(--gray-100); padding: 48px 0; }
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.quick-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s;
}
.quick-card:hover { transform: translateY(-4px); }
.quick-card i {
  font-size: 2rem; color: var(--primary); margin-bottom: 14px; display: block;
}
.quick-card h3 { font-size: 1rem; margin-bottom: 8px; }
.quick-card p { color: var(--gray-600); font-size: .88rem; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.section-gray { background: var(--gray-100); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--gray-600); font-size: 1rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: #94a3b8; }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; border-radius: 20px; border: 2px solid var(--gray-100);
  background: var(--white); color: var(--gray-600); font-weight: 600;
  cursor: pointer; transition: all .2s; font-size: .9rem;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-100); overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--primary); color: var(--white); font-size: .75rem;
  font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.product-badge.hot { background: #ef4444; }
.product-badge.offer { background: var(--green); }

.product-img {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: rgba(255,255,255,.5);
}
.product-img.samsung { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.product-img.apple { background: linear-gradient(135deg, #1c1c1e, #2c2c2e); }
.product-img.motorola { background: linear-gradient(135deg, #003087, #00509e); }
.product-img.xiaomi { background: linear-gradient(135deg, #ff6900, #ff8c00); }

/* ===== CAROUSEL ===== */
.carousel { position: relative; height: 220px; overflow: hidden; background: #f1f5f9; }
.carousel-track { height: 100%; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s ease; padding: 12px; pointer-events: none; }
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.35); color: white; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); transition: background .2s; }
.carousel-dot.active { background: var(--primary); }
.carousel-slide { cursor: zoom-in; }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; line-height: 1; opacity: .8; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: white; font-size: 2.4rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; line-height: 1; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav.hidden { display: none; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600; background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 20px; }
.carousel-placeholder { height: 220px; display: flex; align-items: center; justify-content: center; font-size: 80px; color: rgba(255,255,255,.5); background: linear-gradient(135deg, #1e293b, #334155); }

.product-info { padding: 20px; }
.brand-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  color: var(--primary); background: var(--primary-light);
  padding: 2px 10px; border-radius: 4px; margin-bottom: 8px;
}
.product-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.product-info p { color: var(--gray-600); font-size: .85rem; margin-bottom: 16px; }
.price-row { margin-bottom: 16px; }
.price { display: block; font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.installments { font-size: .8rem; color: var(--green); font-weight: 600; }

/* ===== REPAIRS ===== */
.repairs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.repair-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: all .25s;
}
.repair-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.repair-icon {
  width: 64px; height: 64px; background: var(--primary); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--white); margin: 0 auto 20px;
}
.repair-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.repair-card p { color: #94a3b8; font-size: .88rem; margin-bottom: 16px; }
.repair-price {
  display: block; color: var(--accent); font-weight: 700;
  font-size: 1rem; margin-bottom: 20px;
}

/* ===== STEPS ===== */
.steps-grid {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.step { flex: 1; min-width: 160px; max-width: 220px; text-align: center; padding: 20px; }
.step-num {
  font-size: 2.5rem; font-weight: 800; color: var(--primary);
  opacity: .2; line-height: 1; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: .875rem; }
.step-arrow {
  padding-top: 32px; color: var(--gray-400); font-size: 1.2rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--gray-100);
}
.stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial p { color: var(--gray-600); font-size: .9rem; margin-bottom: 20px; line-height: 1.7; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary);
  color: var(--white); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reviewer strong { display: block; font-size: .9rem; }
.reviewer span { color: var(--gray-400); font-size: .8rem; }

/* ===== NOSOTROS ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text .badge { margin-bottom: 16px; display: inline-block; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.about-text p { color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--gray-600); font-weight: 500; }
.about-list li i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-stat-card { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 16px; padding: 28px 20px; text-align: center; }
.about-stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.about-stat-label { font-size: .85rem; color: var(--gray-400); font-weight: 500; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.map-wrapper { margin-top: 48px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.10); }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.contact-item i {
  width: 42px; height: 42px; background: var(--primary-light); color: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.contact-item span { color: var(--gray-600); font-size: .9rem; }
.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-links a {
  width: 42px; height: 42px; border-radius: 10px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 1.1rem; text-decoration: none;
  transition: all .2s;
}
.social-links a:hover { background: var(--primary); color: var(--white); }

.contact-form {
  background: var(--gray-100); border-radius: 16px; padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: .875rem;
  margin-bottom: 6px; color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid #e2e8f0; font-size: .9rem; font-family: inherit;
  transition: border-color .2s; background: var(--white); color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; }
.form-note { text-align: center; font-size: .8rem; color: var(--gray-400); margin-top: 12px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; display: inline-flex; }
.footer-brand p { color: #94a3b8; font-size: .88rem; max-width: 280px; line-height: 1.7; }
.footer-links h4 { font-size: .9rem; font-weight: 700; margin-bottom: 16px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #94a3b8; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  text-align: center;
}
.footer-bottom p { color: #64748b; font-size: .82rem; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white); text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,.55); }
.whatsapp-tooltip {
  position: absolute; right: 70px; background: var(--dark); color: var(--white);
  font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1.5px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--white); border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--dark); text-align: left;
  gap: 16px; transition: background .2s;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question[aria-expanded="true"] { background: var(--primary-light); color: var(--primary); }
.faq-icon { font-size: .85rem; color: var(--gray-400); flex-shrink: 0; transition: transform .3s ease; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px; background: var(--white);
}
.faq-answer.open { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { color: var(--gray-600); font-size: .9rem; line-height: 1.7; }
.faq-answer strong { color: var(--dark); }

/* ===== HIDDEN (filter) ===== */
.product-card.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .repairs-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .repairs-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
}

.admin-lock {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.2;
  text-decoration: none;
  transition: opacity .2s;
}
.admin-lock:hover { opacity: 0.6; }
