/* MG Ebromotor - Styles matching mgzaragoza.com design */

html { scroll-behavior: smooth; }

/* ===== HERO SLIDER ===== */
.mg-hero-slider {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  overflow: hidden;
}

.hero-slide {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255,255,255,0.3) !important;
}

@media (max-width: 480px) {
  .mg-hero-caption {
    padding: 30px 20px 25px !important;
  }
}

/* ===== CAR CARDS (responsive grid) ===== */
.mg-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
  padding: 20px 0 40px 0;
}

/* Keep carousel for homepage fleet section */
.mg-fleet-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 20px 5px 40px 5px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mg-fleet-carousel::-webkit-scrollbar { display: none; }

.mg-car-card {
  transition: all 0.4s ease;
  cursor: pointer;
}
.mg-fleet-carousel .mg-car-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}
.mg-car-card:hover {
  transform: translateY(-10px);
}
.mg-car-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mg-car-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.mg-car-thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.mg-car-info {
  padding: 12px 4px 8px;
}
.mg-car-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 5px;
  color: #1a1a1a;
}
.mg-car-info p {
  font-size: 0.85rem;
  color: #777;
  height: 40px;
  overflow: hidden;
  margin: 0;
}
.mg-car-price {
  font-size: 1rem;
  font-weight: 700;
  color: #d71920;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
}

.mg-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mg-badge.cero { background: #3b82f6; }
.mg-badge.eco { background: #22c55e; }

.mg-car-discover {
  padding: 8px 4px 4px;
}
.mg-btn-discover {
  display: inline-block;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
}
.mg-car-card:hover .mg-btn-discover {
  background: #1a1a1a;
  color: #fff;
}

/* ===== FILTER NAV (tab style with underline) ===== */
.mg-filter-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mg-filter-nav::-webkit-scrollbar { display: none; }

.mg-filter-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.mg-filter-btn:hover {
  color: #1a1a1a;
}
.mg-filter-btn.active {
  color: #1a1a1a;
  border-bottom-color: #d71920;
}

/* ===== KM0 CARDS (accent border style) ===== */
.km0-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border-top: 3px solid #2a2d33;
  transition: all 0.3s;
}
.km0-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.km0-image-wrap {
  background: #f7f8f9;
  border: 1px solid #eceef0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.km0-image-wrap img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}
.km0-brand {
  font-size: 12px;
  text-transform: uppercase;
  color: #9aa0a6;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.km0-title {
  font-size: 22px;
  font-weight: bold;
  color: #2a2d33;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px;
}
.km0-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9aa0a6;
}
.km0-price {
  font-size: 16px;
  font-weight: 800;
  color: #2a2d33;
  font-family: 'Montserrat', sans-serif;
}
.km0-btn {
  display: inline-block;
  background: #46515c;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 0.3s;
}
.km0-btn:hover {
  filter: brightness(1.07);
}

/* ===== KM0 DETAIL ===== */
.km0-spec-card {
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s;
}
.km0-spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.km0-glass {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(18px);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ===== MODEL DETAIL GALLERY ===== */
.model-gallery-main {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f8f9;
  border: 1px solid #eceef0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.model-gallery-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== KM0 DETAIL GALLERY ===== */
.km0-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.km0-gallery-slide {
  display: none;
}
.km0-gallery-slide.active {
  display: block;
}
.km0-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.km0-gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.km0-gallery-dot.active {
  background: #fff;
}
.km0-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.3s;
}
.km0-gallery-arrow:hover {
  background: rgba(0,0,0,0.9);
}

/* ===== ACCORDION ===== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content.open {
  max-height: 500px;
}
.accordion-icon.rotated {
  transform: rotate(180deg);
}

/* ===== TYPOGRAPHY (legacy prose) ===== */
.prose h1, .prose h2, .prose h3 { font-family: 'Montserrat', sans-serif; }
.prose a { color: #d71920; text-decoration: underline; }
.prose a:hover { color: #b71518; }

/* ===== BLOG CONTENT ===== */
.mg-blog-content {
  color: #333;
  line-height: 1.85;
  font-size: 1.05rem;
}

/* H2 — big, bold, red accent bar + background */
.mg-blog-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.65rem;
  color: #1a1a1a;
  margin: 3.5rem 0 1.4rem;
  padding: 14px 20px;
  border-left: 5px solid #d71920;
  background: linear-gradient(90deg, #fef2f2, transparent);
  border-radius: 0 8px 8px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.mg-blog-content > h2:first-child {
  margin-top: 0;
}

/* H3 — semibold with subtle dot */
.mg-blog-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #1a1a1a;
  margin: 2.5rem 0 0.8rem;
  padding-left: 14px;
  position: relative;
}
.mg-blog-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #d71920;
  border-radius: 50%;
}

/* Paragraphs */
.mg-blog-content p {
  margin: 0 0 1.3rem;
}

/* Bold text highlight */
.mg-blog-content strong {
  color: #1a1a1a;
  font-weight: 700;
}

/* Links */
.mg-blog-content a {
  color: #d71920;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.mg-blog-content a:hover {
  color: #b71518;
}

/* Unordered lists */
.mg-blog-content ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.mg-blog-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.6rem;
}
.mg-blog-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: #d71920;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Ordered lists */
.mg-blog-content ol {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
  counter-reset: ol-counter;
}
.mg-blog-content ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 0.7rem;
  counter-increment: ol-counter;
}
.mg-blog-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  background: #d71920;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tables — clean card style */
.mg-blog-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  font-size: 0.92rem;
}
.mg-blog-content thead {
  background: #1a1a1a;
  color: #fff;
}
.mg-blog-content thead th {
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mg-blog-content tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.mg-blog-content tbody tr:last-child {
  border-bottom: none;
}
.mg-blog-content tbody tr:hover {
  background: #fef8f8;
}
.mg-blog-content tbody td {
  padding: 12px 16px;
  color: #444;
}
.mg-blog-content tbody tr:nth-child(even) {
  background: #fafafa;
}
.mg-blog-content tbody tr:nth-child(even):hover {
  background: #fef8f8;
}

/* Blockquotes — callout style */
.mg-blog-content blockquote {
  margin: 2rem 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff8f0, #fff3e8);
  border-left: 4px solid #d71920;
  border-radius: 0 12px 12px 0;
  font-style: normal;
}
.mg-blog-content blockquote p {
  margin: 0;
  color: #555;
  font-size: 1rem;
}

/* Horizontal rules — decorative */
.mg-blog-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d71920, transparent);
  margin: 3rem 0;
}

/* Code blocks */
.mg-blog-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #d71920;
}

/* Images in content */
.mg-blog-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .mg-blog-content { font-size: 1rem; }
  .mg-blog-content h2 { font-size: 1.3rem; }
  .mg-blog-content table { font-size: 0.82rem; }
  .mg-blog-content thead th { padding: 10px 12px; }
  .mg-blog-content tbody td { padding: 10px 12px; }
}

/* ===== LINE CLAMP ===== */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== UTILITY ===== */
:focus-visible {
  outline: 2px solid #d71920;
  outline-offset: 2px;
}
::selection {
  background: #d71920;
  color: white;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f7f8f9; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d71920; }

/* ===== PILLS (CTA buttons) ===== */
.mg-btn-pill {
  display: inline-block;
  background: #d71920;
  color: #fff;
  padding: 11px 32px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: background 0.3s;
}
.mg-btn-pill:hover {
  background: #b5151b;
}
.mg-btn-pill-outline {
  display: inline-block;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  padding: 11px 32px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
}
.mg-btn-pill-outline:hover {
  background: #1a1a1a;
  color: #fff;
}
.mg-btn-pill-outline.white {
  border-color: #fff;
  color: #fff;
}
.mg-btn-pill-outline.white:hover {
  background: #fff;
  color: #1a1a1a;
}

/* ===== FAQ DETAILS (native accordion) ===== */
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; content: ''; }
details[open] .faq-summary { background-color: #fff5f5; color: #d71920; }
details[open] .faq-plus { content: '-'; }
details[open] .faq-plus::after { content: ''; }

/* ===== MODEL GALLERY ENHANCED ===== */
.model-thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 5px 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.model-thumb-row::-webkit-scrollbar { display: none; }
.thumb-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  flex-shrink: 0;
}
.thumb-img:hover, .thumb-img.active {
  border-color: #d71920;
  opacity: 1;
  transform: translateY(-2px);
}
.model-gallery-main img {
  transition: opacity 0.15s ease;
}

/* ===== PLAN AUTO+ PAGE ===== */

/* Scope wrapper — overrides Tailwind preflight resets */
.plan-page {
  font-family: 'Inter', 'Montserrat', sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}
.plan-page *,
.plan-page *::before,
.plan-page *::after {
  box-sizing: border-box;
}

/* Hero */
.plan-page .plan-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.plan-page .plan-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.plan-page .plan-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.plan-page .plan-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 80px 30px 60px;
  color: #fff;
}
.plan-page .plan-hero-badge {
  display: inline-block;
  background: #d71920;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 28px;
  border-radius: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.plan-page .plan-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 20px 0 20px;
  color: #fff;
}
.plan-page .plan-hero-content h1 span {
  color: #d71920;
}
.plan-page .plan-hero-content > p {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Ayudas intro card — floats over hero */
.plan-page .plan-ayudas {
  max-width: 1200px;
  margin: -60px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}
.plan-page .plan-ayudas-intro {
  background: #fff;
  border-radius: 20px;
  padding: 45px 50px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.1);
  text-align: center;
  margin-bottom: 50px;
}
.plan-page .plan-ayudas-intro h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 15px;
  line-height: 1.3;
}
.plan-page .plan-ayudas-intro > p {
  font-size: 0.95rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Car cards grid — 2x2 for 4 cards */
.plan-page .plan-coches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}
.plan-page .plan-coche-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 30px 30px;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.plan-page .plan-coche-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border-color: transparent;
}
.plan-page .plan-coche-ahorro {
  display: inline-block;
  background: linear-gradient(135deg, #d71920, #ff4444);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 14px;
  margin: 0 0 20px;
  line-height: 1.2;
}
.plan-page .plan-coche-ahorro small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 4px;
}
.plan-page .plan-coche-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
}
.plan-page .plan-coche-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.plan-page .plan-coche-tipo {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 12px;
  margin: 0 0 12px;
}
.plan-page .tipo-electrico {
  background: #e8f0fe;
  color: #2563eb;
}
.plan-page .tipo-phev {
  background: #e6f7ed;
  color: #0d9488;
}
.plan-page .plan-coche-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}
.plan-page .plan-coche-card > p {
  font-size: 0.85rem;
  color: #777;
  margin: 0 0 10px;
  line-height: 1.6;
}
.plan-page .plan-desglose {
  font-size: 0.78rem;
  color: #aaa;
  margin: 0 0 22px;
}
.plan-page .plan-coche-btn {
  display: inline-block;
  padding: 12px 34px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-page .plan-coche-btn:hover {
  background: #d71920;
  color: #fff;
  text-decoration: none;
}

/* Ventajas section */
.plan-page .plan-ventajas {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.plan-page .plan-ventajas-header {
  text-align: center;
  margin: 0 0 50px;
}
.plan-page .plan-ventajas-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.2;
}
.plan-page .plan-ventajas-header p {
  font-size: 1rem;
  color: #888;
  margin: 0;
}
.plan-page .plan-ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.plan-page .plan-ventaja-item {
  text-align: center;
  padding: 40px 25px;
  background: #f8f8f8;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.plan-page .plan-ventaja-item:hover {
  background: #fff;
  box-shadow: 0 10px 35px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}
.plan-page .plan-ventaja-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  background: #1a1a1a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-page .plan-ventaja-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.plan-page .plan-ventaja-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.3;
}
.plan-page .plan-ventaja-item p {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.65;
  margin: 0;
}

/* Por que elegir — dark card */
.plan-page .plan-porque-wrapper {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.plan-page .plan-porque {
  padding: 60px 50px;
  background: #1a1a1a;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.plan-page .plan-porque-texto {
  flex: 1;
}
.plan-page .plan-porque-texto h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}
.plan-page .plan-porque-texto h2 span {
  color: #d71920;
}
.plan-page .plan-porque-texto > p {
  font-size: 0.95rem;
  color: #bbb;
  margin: 0 0 20px;
  line-height: 1.7;
}
.plan-page .plan-porque-lista {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}
.plan-page .plan-porque-lista li {
  font-size: 0.92rem;
  color: #ddd;
  padding: 9px 0 9px 32px;
  position: relative;
  line-height: 1.5;
}
.plan-page .plan-porque-lista li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 9px;
  color: #d71920;
  font-weight: 700;
  font-size: 1rem;
}
.plan-page .plan-porque-badge {
  flex-shrink: 0;
  width: 280px;
  text-align: center;
}
.plan-page .etiqueta-cero {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  padding: 35px 45px;
  border-radius: 20px;
  line-height: 1;
  margin: 0 0 15px;
}
.plan-page .etiqueta-cero small {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 8px;
  opacity: 0.9;
}
.plan-page .plan-porque-badge > p {
  color: #888;
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* CTA final */
.plan-page .plan-cta-final {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  padding: 0 20px;
}
.plan-page .plan-cta-final h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 15px;
  line-height: 1.3;
}
.plan-page .plan-cta-final p {
  font-size: 0.95rem;
  color: #888;
  margin: 0 0 30px;
  line-height: 1.6;
}
.plan-page .plan-cta-btn {
  display: inline-block;
  padding: 16px 54px;
  background: #d71920;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-page .plan-cta-btn:hover {
  background: #b5151b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(215,25,32,0.3);
  text-decoration: none;
}

/* Legal note */
.plan-page .plan-legal {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 25px 30px;
  text-align: center;
  border-top: 1px solid #eee;
}
.plan-page .plan-legal p {
  font-size: 0.72rem;
  color: #bbb;
  line-height: 1.65;
  margin: 0;
}

/* ===== Plan AUTO+ Responsive ===== */
@media (min-width: 1025px) {
  .plan-page .plan-coches-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}
@media (max-width: 1024px) {
  .plan-page .plan-coches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .plan-page .plan-ventajas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .plan-page .plan-porque {
    flex-direction: column;
    text-align: center;
    padding: 45px 35px;
    gap: 40px;
  }
  .plan-page .plan-porque-badge {
    width: 100%;
  }
  .plan-page .plan-porque-lista li {
    text-align: left;
  }
}
@media (max-width: 768px) {
  .plan-page .plan-hero {
    min-height: 400px;
  }
  .plan-page .plan-hero-content {
    padding: 60px 20px 50px;
  }
  .plan-page .plan-hero-content h1 {
    font-size: 1.8rem;
  }
  .plan-page .plan-hero-content > p {
    font-size: 0.95rem;
  }
  .plan-page .plan-coches-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
  }
  .plan-page .plan-ventajas-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .plan-page .plan-ayudas-intro {
    padding: 30px 25px;
  }
  .plan-page .plan-ayudas-intro h2 {
    font-size: 1.35rem;
  }
  .plan-page .plan-porque {
    gap: 30px;
    padding: 35px 25px;
  }
  .plan-page .plan-porque-texto h2 {
    font-size: 1.5rem;
  }
  .plan-page .plan-cta-final h2 {
    font-size: 1.4rem;
  }
  .plan-page .plan-ventajas-header h2 {
    font-size: 1.5rem;
  }
}

/* ===== RENTING PAGE ===== */

/* Scope wrapper — overrides Tailwind preflight resets */
.renting-page {
  font-family: 'Inter', 'Montserrat', sans-serif;
  color: #444;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.renting-page *,
.renting-page *::before,
.renting-page *::after {
  box-sizing: border-box;
}

.renting-page .renting-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.renting-page .renting-btn {
  display: inline-block;
  padding: 14px 35px;
  background-color: #d71920;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(215,25,32,0.3);
}
.renting-page .renting-btn:hover {
  background-color: #b5151b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(215,25,32,0.4);
  color: #fff;
  text-decoration: none;
}

.renting-page .renting-btn-dark {
  display: inline-block;
  padding: 12px 30px;
  background-color: #111;
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.renting-page .renting-btn-dark:hover {
  background-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  color: #fff;
  text-decoration: none;
}

/* Hero */
.renting-page .renting-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 120px 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4)), url('/img/hero/renting.webp') center/cover;
  color: #fff;
  text-align: center;
  border-radius: 0 0 30px 30px;
}
.renting-page .renting-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
}
.renting-page .renting-hero > .renting-container > p {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #fff;
}
.renting-page .renting-tag {
  display: inline-block;
  background: #fff;
  color: #111;
  padding: 5px 15px;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Floating features strip */
.renting-page .renting-features-strip {
  margin-top: -50px;
  position: relative;
  z-index: 10;
  margin-bottom: 80px;
}
.renting-page .renting-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.renting-page .renting-feature-item {
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.renting-page .renting-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}
.renting-page .renting-feature-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 5px;
  color: #111;
}
.renting-page .renting-feature-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Split section (manifesto + video) */
.renting-page .renting-split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 80px;
  gap: 40px;
}
.renting-page .renting-split-text {
  flex: 1;
  min-width: 300px;
}
.renting-page .renting-split-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 20px;
  color: #111;
  line-height: 1.2;
}
.renting-page .renting-quote {
  font-style: italic;
  color: #555;
  border-left: 4px solid #d71920;
  padding-left: 20px;
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.7;
}
.renting-page .renting-split-video {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  height: 350px;
}
.renting-page .renting-split-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Checklist */
.renting-page .renting-check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.renting-page .renting-check-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #444;
}
.renting-page .renting-check-icon {
  color: #d71920;
  margin-right: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Catalog section */
.renting-page .renting-catalog-section {
  background-color: #f8f9fa;
  padding: 80px 0;
  border-radius: 30px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.renting-page .renting-catalog-header {
  text-align: center;
  margin-bottom: 50px;
}
.renting-page .renting-catalog-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
}
.renting-page .renting-catalog-header p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}
.renting-page .renting-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.renting-page .renting-catalog-legal {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #999;
}

/* Vehicle cards */
.renting-page .renting-vehicle-card {
  background: #fff;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}
.renting-page .renting-vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.renting-page .renting-vehicle-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.renting-page .renting-vehicle-card-body {
  padding: 30px;
}
.renting-page .renting-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.renting-page .renting-badge-eco { background: #555; }
.renting-page .renting-badge-phev { background: #1565C0; }
.renting-page .renting-badge-ev { background: #2E7D32; }

.renting-page .renting-vehicle-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 5px;
}
.renting-page .renting-vehicle-specs {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 15px;
}
.renting-page .renting-price-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin: 15px 0 5px;
}
.renting-page .renting-price-amount small {
  font-size: 1rem;
  font-weight: 400;
  color: #777;
}
.renting-page .renting-price-sub {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 20px;
}

.renting-page .renting-vehicle-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.renting-page .renting-btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f9fa;
  color: #111;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  justify-content: center;
}
.renting-page .renting-btn-review:hover {
  background: #e8e8e8;
}
.renting-page .renting-btn-review svg {
  width: 18px;
  height: 18px;
}

/* Videos section */
.renting-page .renting-videos-section {
  padding: 80px 0;
}
.renting-page .renting-videos-header {
  text-align: center;
  margin-bottom: 10px;
}
.renting-page .renting-videos-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
}
.renting-page .renting-videos-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}
.renting-page .renting-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.renting-page .renting-video-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}
.renting-page .renting-video-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.renting-page .renting-video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.renting-page .renting-video-thumb:hover img {
  transform: scale(1.04);
}
.renting-page .renting-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.renting-page .renting-video-thumb:hover .renting-play-overlay {
  background: rgba(0,0,0,0.4);
}
.renting-page .renting-play-overlay svg {
  width: 60px;
  height: 42px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s;
}
.renting-page .renting-video-thumb:hover .renting-play-overlay svg {
  transform: scale(1.1);
}
.renting-page .renting-video-label {
  margin: 10px 0 0;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #111;
}

/* Lightbox */
.renting-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.renting-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.renting-lightbox-inner {
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s;
}
.renting-lightbox.active .renting-lightbox-inner {
  transform: scale(1);
}
.renting-lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.renting-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s;
}
.renting-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* FAQ accordion */
.renting-page .renting-faq-section {
  max-width: 800px;
  margin: 80px auto;
}
.renting-page .renting-faq-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 40px;
  color: #111;
}
.renting-page .renting-accordion-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}
.renting-page .renting-accordion-btn {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #111;
  cursor: pointer;
  transition: color 0.2s;
}
.renting-page .renting-accordion-btn:hover {
  color: #d71920;
}
.renting-page .renting-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  color: #555;
}
.renting-page .renting-accordion-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 20px;
}
.renting-page .renting-chevron {
  font-size: 1.5rem;
  transition: transform 0.3s;
  line-height: 1;
  color: #111;
}
.renting-page .renting-accordion-btn.active .renting-chevron {
  transform: rotate(45deg);
  color: #d71920;
}

/* ===== Renting Responsive ===== */
@media (max-width: 768px) {
  .renting-page .renting-hero {
    padding: 80px 0;
  }
  .renting-page .renting-hero h1 {
    font-size: 2.2rem;
  }
  .renting-page .renting-features-strip {
    margin-top: 0;
  }
  .renting-page .renting-features-grid {
    margin-top: 20px;
    grid-template-columns: 1fr;
  }
  .renting-page .renting-split-section {
    flex-direction: column-reverse;
  }
  .renting-page .renting-split-text h2 {
    font-size: 1.5rem;
  }
  .renting-page .renting-split-video {
    height: 250px;
  }
  .renting-page .renting-catalog-grid {
    grid-template-columns: 1fr;
  }
  .renting-page .renting-catalog-header h2 {
    font-size: 1.8rem;
  }
  .renting-page .renting-videos-grid {
    grid-template-columns: 1fr;
  }
  .renting-page .renting-videos-header h2 {
    font-size: 1.8rem;
  }
  .renting-page .renting-faq-title {
    font-size: 1.5rem;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .renting-page .renting-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .renting-page .renting-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
