/* ===========================
   BOBINADOS BARCELONA
   styles.css
   =========================== */

:root {
  --navy:       #0D1B35;
  --navy-light: #1B2E4B;
  --orange:     #E8501A;
  --orange-h:   #FF6B35;
  --white:      #FFFFFF;
  --bg-light:   #F5F6F8;
  --bg-dark:    #0A1525;
  --text:       #1A1A2A;
  --text-muted: #5A6070;
  --border:     #E2E5EC;
  --success:    #2ECC71;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,27,53,.12);
  --shadow-lg:  0 8px 48px rgba(13,27,53,.18);
  --transition: .25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* TYPOGRAPHY */
h1 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.18; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
p  { color: var(--text-muted); line-height: 1.75; }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-orange { color: var(--orange); }

.badge {
  display: inline-block;
  background: rgba(232,80,26,.12);
  color: var(--orange);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.badge-white {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,80,26,.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1fb855; transform: translateY(-2px); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* HEADER / NAV */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo span { color: var(--orange); }
.logo img { width: 36px; height: 36px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-links .btn { margin-left: 8px; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 8px;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}
.nav-dropdown-menu .dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 6px 0;
}
/* Móvil: dropdown inline */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    background: rgba(255,255,255,.05);
    border: none;
    box-shadow: none;
    padding: 4px 0 4px 14px;
    margin-top: 2px;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--navy) 60%, #162444 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 0 32px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/reparacion-motores-electricos-barcelona.webp') center/cover no-repeat;
  opacity: .12;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { color: var(--white); }
.hero-content h1 { margin-bottom: 10px; }
.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-content p {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 18px;
  max-width: 480px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
}
.trust-item svg { color: var(--orange); flex-shrink: 0; }

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* URGENCY BAR */
.urgency-bar {
  background: var(--orange);
  padding: 14px 0;
}
.urgency-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.urgency-bar p {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}
.urgency-bar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* STATS */
.stats {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--orange);
}
.service-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; }
.service-card-body h3 { margin-bottom: 10px; color: var(--navy); }
.service-card-body p  { font-size: .92rem; margin-bottom: 16px; }
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(232,80,26,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--orange);
}

/* URGENCY SECTION */
.urgency-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-dark) 100%);
  color: var(--white);
  padding: 80px 0;
}
.urgency-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.urgency-content h2 { color: var(--white); margin-bottom: 20px; }
.urgency-content h2 em { font-style: normal; color: var(--orange); }
.urgency-content p { color: rgba(255,255,255,.7); margin-bottom: 32px; }
.urgency-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.urgency-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.step-text h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.step-text p { font-size: .9rem; color: rgba(255,255,255,.6); }
.urgency-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.urgency-image img { width: 100%; height: 100%; object-fit: cover; }

/* WHY US */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.why-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-h) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}
.why-card h3 { color: var(--navy); margin-bottom: 10px; }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  margin-top: 48px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* VIDEO */
.video-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.video-wrapper video {
  width: 100%;
  display: block;
}

/* TESTIMONIALS */
.testimonials { background: var(--bg-light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: #FFC107; font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p { font-size: .95rem; margin-bottom: 20px; }
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: .92rem; color: var(--navy); }
.reviewer-company { font-size: .82rem; color: var(--text-muted); }

/* CTA SECTION */
.cta-section {
  background: var(--orange);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); margin-bottom: 36px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--orange);
}
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(232,80,26,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-item h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.contact-item p { color: var(--text); font-size: 1.05rem; font-weight: 600; }
.contact-item a { color: var(--navy); }
.contact-item a:hover { color: var(--orange); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,80,26,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { appearance: none; }
.form-submit .btn { width: 100%; justify-content: center; }

/* MAP */
.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* FOOTER */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.65);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.social-link:hover { background: var(--orange); color: var(--white); }

/* FLOATING WHATSAPP */
.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;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,.65); }
}

/* ZONE CARDS */
.zone-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: var(--transition);
  color: var(--text);
}
.zone-card strong { color: var(--navy); font-size: .95rem; }
.zone-card span   { color: var(--text-muted); font-size: .8rem; }
.zone-card:hover  { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.zone-card:hover strong { color: var(--orange); }

@media (max-width: 768px) {
  .zone-card { padding: 12px 14px; }
  section .container > div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bg-dark) 100%);
  padding: 60px 0;
  color: var(--white);
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }

/* URGENCY PAGE */
.urgency-hero {
  background: linear-gradient(135deg, #8B0000 0%, var(--orange) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.urgency-hero h1 { color: var(--white); margin-bottom: 16px; }
.urgency-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 36px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 16px;
}
.faq-question svg { flex-shrink: 0; transition: transform .3s ease; color: var(--orange); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer-inner { padding: 0 24px 20px; }
.faq-answer-inner p { font-size: .95rem; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-item.open { border-color: var(--orange); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
}
.about-list li svg { color: var(--orange); flex-shrink: 0; }
.about-image { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; object-fit: cover; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 16px 24px 24px; gap: 4px; z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  header { position: sticky; }

  .hero-inner       { grid-template-columns: 1fr; }
  .hero-image       { display: none; }
  .hero             { padding: 60px 0; }
  .urgency-inner    { grid-template-columns: 1fr; }
  .urgency-image    { display: none; }
  .why-grid         { grid-template-columns: 1fr; }
  .services-grid    { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .about-grid       { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom    { flex-direction: column; text-align: center; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid     { grid-template-columns: 1fr 1fr; }
  .hero-btns        { flex-direction: column; }
  .cta-btns         { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section    { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
}
