:root {
  --primary: #134866;
  --secondary: #ff6600;
  --accent: #ff4f5a;
  --gray: #f5f5f5;
  --dark: #333333;
  --light: #ffffff;
  --form-gray: #f4f4f4;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--gray);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

/* ====================== HEADER & NAV ====================== */
header {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.logo img {
  width: 180px;
  height: 180px;
  margin-right: 15px;
  border-radius: 10px;
  transform: translateZ(0);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}

.logo span {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo:hover img {
  transform: scale(1.07) translateZ(0);
}

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

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: .5rem 0;
  position: relative;
  transition: color .3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transition: width .35s ease;
  border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  padding: 8px;
}

/* ====================== BOTÓN DE TELÉFONO EN EL MENÚ ====================== */
nav a.nav-phone-btn {
  background: linear-gradient(135deg, var(--accent), #e83d48);
  color: white;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(255,79,90,0.45);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

nav a.nav-phone-btn::after { display: none; }

nav a.nav-phone-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: navBtnShimmer 3.5s infinite 1s;
}

@keyframes navBtnShimmer {
  0%   { left: -100%; }
  40%  { left: 160%; }
  100% { left: 160%; }
}

nav a.nav-phone-btn:hover {
  background: white;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,79,90,0.5);
}

/* ====================== PROMOTIONS ====================== */
.promotions {
  padding: 5rem 5%;
  text-align: center;
  background: linear-gradient(160deg, #f0f4f8 0%, #e6ecf2 60%, #f0f4f8 100%);
  position: relative;
  overflow: hidden;
}

.promotions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f8f9fa"/><path d="M0,50 Q25,30 50,50 T100,50" stroke="%23dee2e6" stroke-width="1" fill="none"/></svg>') repeat;
  opacity: .04;
  z-index: 0;
}

.promotions h2 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  position: relative;
  z-index: 1;
}

.promotions h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  display: block;
  margin: 0.9rem auto 2rem;
  border-radius: 2px;
}

.promo-box {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(19,72,102,0.14), 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.45s ease;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.8);
}

.promo-box:hover {
  transform: translateY(-14px);
  box-shadow: 0 36px 70px rgba(19,72,102,0.2), 0 8px 20px rgba(0,0,0,0.08);
}

.promo-img-container {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
  will-change: transform;
}

.promo-box:hover .promo-img {
  transform: scale(1.08);
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .7) 70%);
  color: #fff;
  text-align: center;
  transition: background .4s ease;
}

.promo-overlay h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: .6rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.promo-overlay p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  opacity: .95;
  line-height: 1.5;
}

.promo-overlay .btn {
  background: var(--accent);
  color: #fff;
  padding: .9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .95rem;
  transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(255, 79, 90, .4);
  display: inline-block;
}

.promo-overlay .btn:hover {
  background: #e63946;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 79, 90, .5);
}

.promo-badge {
  position: absolute;
  top: 15px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.2rem;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(255, 79, 90, .4);
  transform: rotate(12deg);
  z-index: 2;
}

.promo-badge::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #cc3a44;
}

/* ====================== DRIVEWAY SLIDER ====================== */
.driveway-slider {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 520px;
  max-height: 780px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  margin-bottom: 4rem;
}

.dslide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.2s ease, visibility 1.2s ease;
  will-change: opacity, visibility;
}

.dslide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 5;
}

.dslide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.before-after {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.before-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 10s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, .5);
  z-index: 5;
}

.dslide-caption {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10;
  width: 90%;
  max-width: 1000px;
}

/* Stagger entrance per element */
.dslide-caption h2,
.dslide-caption p,
.dslide-caption .dslide-btn {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.dslide.active .dslide-caption h2 {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.45s;
}

.dslide.active .dslide-caption p {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.65s;
}

.dslide.active .dslide-caption .dslide-btn {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.85s;
}

.dslide-caption h2 {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
  margin-bottom: 0.7rem;
  text-wrap: balance;
  letter-spacing: 0.3px;
}

/* Animated underline on title */
.dslide-caption h2::after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
  margin: 0.8rem auto 0;
  transition: width 0.7s ease 1s;
}

.dslide.active .dslide-caption h2::after {
  width: 120px;
}

.dslide-caption p {
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  text-wrap: pretty;
}

.dslide-btn {
  background: var(--accent);
  color: white;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 30px rgba(255,79,90,0.5);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.dslide-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3.5s infinite 2s;
}

@keyframes btnShimmer {
  0%   { left: -100%; }
  45%  { left: 160%; }
  100% { left: 160%; }
}

.dslide-btn:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(255,79,90,0.35);
}

/* ====================== WHATSAPP BUTTON IN SLIDER ====================== */
.wa-float-btn {
  position: absolute;
  bottom: 30px;
  right: 5px;
  background: #25D366;
  color: white;
  padding: 1rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Sombra fija, no causa repaints */
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* El efecto de pulso ahora se hace en una capa invisible por detrás usando la tarjeta gráfica */
.wa-float-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit;
  border-radius: 50px;
  z-index: -1;
  animation: waPulseHardware 2s infinite ease-out;
  will-change: transform, opacity;
}

@keyframes waPulseHardware {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Controles de flechas del Slider */
.dnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dnav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.dnav.prev {
  left: 20px;
}

.dnav.next {
  right: 20px;
}

/* ============================================================
   OPTIMIZACIÓN DE VISIBILIDAD PRIMER SLIDER (ESCRITORIO/GENERAL)
   ============================================================ */
.driveway-slider .dslide:first-child .dslide-caption {
  position: absolute !important;
  z-index: 50 !important;
  pointer-events: none;
}

.driveway-slider .dslide:first-child .wa-float-btn {
  position: absolute !important;
  z-index: 60 !important;
  pointer-events: auto !important;
}

/* ====================== MODERN SERVICES ====================== */
.services-modern {
  padding: 7rem 5%;
  background:
    linear-gradient(135deg, #0b2e42 0%, var(--primary) 40%, #0f4a68 75%, #0b2e42 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Radial light accents */
.services-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,79,90,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(255,102,0,0.07) 0%, transparent 50%);
  pointer-events: none;
}

/* Shimmer top bar */
.services-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), var(--accent), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.services-modern h2 {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
  text-wrap: balance;
}

.services-modern h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  display: block;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.45s ease;
  background: white;
  height: 340px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease, filter 0.6s ease;
  filter: contrast(1.06) saturate(1.12) brightness(1.02);
}

.service-overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 2.5rem 1.5rem 1.8rem;
  background: linear-gradient(
    to top,
    rgba(13, 46, 66, 0.97) 0%,
    rgba(19, 72, 102, 0.75) 55%,
    transparent 100%
  );
  color: white;
  transform: translateY(0);
  text-align: center;
}

/* Accent line — appears on hover */
.service-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
  transition: width 0.4s ease 0.1s;
}

.service-card:hover .service-overlay::before {
  width: 65%;
}

.service-overlay h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.service-overlay p {
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.6;
  text-wrap: pretty;
}

.service-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}

.service-card:hover img {
  transform: scale(1.1);
  filter: contrast(1.08) saturate(1.18) brightness(1.05);
}

/* ====================== CONTACT ====================== */
.contact {
  background: linear-gradient(160deg, #f8fafd 0%, var(--light) 50%, #f0f5fa 100%);
  color: var(--dark);
  padding: 6rem 5%;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.contact-container {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: white;
  border-radius: 28px;
  padding: 3.5rem;
  box-shadow: 0 20px 60px rgba(19,72,102,0.10), 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid rgba(19,72,102,0.06);
  position: relative;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.contact h2::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

.contact p {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #6b7d8e;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid #e0e6ed;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafd;
  color: var(--dark);
  transition: border 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,79,90,0.1);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent), #e83d48);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(255,79,90,0.35);
  width: auto;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,79,90,0.48);
}

.success-message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  display: none;
  font-weight: 600;
  border: 1px solid #b1dfbb;
}

.email-links {
  margin-top: 2rem;
}

.email-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.email-links a:hover {
  text-decoration: underline;
}

/* ====================== ESTILOS DEL FORMULARIO MULTI-PASO ====================== */
.form-step {
  display: none;
  animation: fadeInStep 0.4s ease;
}
.form-step.active {
  display: block;
}
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.step-desc {
  color: #666;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Barra de Progreso */
.form-progress {
  margin-bottom: 2.5rem;
  padding: 0 10px;
}
.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 33.33%;
  transition: width 0.4s ease;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
}
.progress-labels span.active {
  color: var(--primary);
}

/* Tarjetas de Servicio Visuales */
.service-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
}
.service-card-radio {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.service-card-radio input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-card-radio .card-content {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.service-card-radio .card-content i {
  font-size: 2rem;
  color: var(--primary);
  transition: color 0.3s ease;
}
.service-card-radio .card-content span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}
.service-card-radio input[type="radio"]:checked + .card-content {
  border-color: var(--accent);
  background: rgba(255, 79, 90, 0.05);
  box-shadow: 0 4px 15px rgba(255, 79, 90, 0.15);
}
.service-card-radio input[type="radio"]:checked + .card-content i {
  color: var(--accent);
}
.service-card-radio:hover .card-content {
  border-color: var(--accent);
}

/* Botones y Subida de Archivos */
.step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 15px;
}
.btn-next, .btn-prev {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}
.btn-next {
  background: var(--primary);
  color: white;
  margin-left: auto;
}
.btn-next:hover {
  background: #0d324a;
}
.btn-prev {
  background: #e0e0e0;
  color: var(--dark);
}
.btn-prev:hover {
  background: #ccc;
}

/* Rediseño del botón Submit para encajar con los nuevos botones */
.btn-submit {
  margin-top: 0;
  width: auto;
}

.file-upload-group {
  text-align: center;
  padding: 2rem;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 1.5rem;
}
.file-upload-group input[type="file"] {
  display: none;
}
.file-upload-label {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}
.file-upload-label:hover {
  background: var(--primary);
  color: white;
}
#fileNameDisplay {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.trust-signals {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #666;
}
.trust-signals i {
  color: #28a745; /* Verde confianza */
}

/* Ajustes Responsive para el Formulario */
@media (max-width: 480px) {
  .service-cards-container {
    grid-template-columns: 1fr 1fr; /* 2 columnas en celular para que no sea tan largo */
  }
  .step-buttons {
    flex-direction: column-reverse;
  }
  .btn-next, .btn-submit, .btn-prev {
    width: 100%;
    margin-left: 0;
  }
}

/* ====================== FOOTER ====================== */
.footer-info {
  background: linear-gradient(160deg, #0b2e42 0%, #0e3d58 50%, #0b2e42 100%);
  color: white;
  padding: 5rem 5% 4rem;
  text-align: center;
  position: relative;
}

.footer-info::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), var(--accent), transparent);
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  padding: 1.8rem 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s ease, background 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.07);
}

.footer-column h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.8rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-column h3::after { display: none; }

.footer-column p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.7rem;
  opacity: 0.82;
}

.footer-address,
.footer-phone,
.footer-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.footer-address i,
.footer-phone i,
.footer-email i {
  color: var(--accent);
  font-size: 1rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12);
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: .5rem 0;
}

.contact-item i {
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 1.5rem 2rem;
  background: #060f16;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ====================== FLOATING SOCIAL ====================== */
.social-float-bar {
  position: fixed;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 8px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  border: 1px solid rgba(255,255,255,0.07);
  z-index: 999;
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px) translateY(-50%); }
  to   { opacity: 1; transform: translateX(0)     translateY(-50%); }
}

.social-btn {
  width: 48px;
  height: 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.social-btn i {
  position: relative;
  z-index: 1;
}

.social-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.social-btn.phone-call {
  display: none;
  background: var(--accent);
  position: relative;
}

.social-btn.phone-call::after,
.social-btn.whatsapp::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 2.2s infinite;
  pointer-events: none;
}

.social-btn.phone-call::after { background: rgba(255,79,90,0.35); }
.social-btn.whatsapp::after   { background: rgba(37,211,102,0.35); }

.social-btn.facebook  { background: #1877F2; }
.social-btn.instagram { background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.social-btn.whatsapp  { background: #25D366; position: relative; }

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
  }
}

/* =========================================================
   BLOQUE UNIFICADO PARA TABLETS Y MÓVILES (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
  
  /* Header & Menu */
  header { 
    padding: 0.5rem 4%; 
    flex-wrap: nowrap;
  }
  .logo { 
    font-size: 1.35rem;
    max-width: 75%;
  }
  .logo img { width: 105px; height: 105px; margin-right: 12px; }
  .logo span { font-size: 1.35rem; }
  nav ul { gap: 1.2rem; font-size: 1rem; }
  
  /* Hamburger Menu */
  .hamburger { 
    display: block;
    margin-left: auto;
    padding: 8px;
    font-size: 1.7rem;
   }
  #mainNav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary);
    transition: left 0.4s ease;
    z-index: 1000;
    padding-top: 2rem;
  }
  #mainNav.active { left: 0; }
  #mainNav ul { flex-direction: column; gap: 1.5rem; text-align: center; padding: 0 5%; }
  #mainNav a { font-size: 1.25rem; padding: 12px 0; display: block; }

  /* Slider */
  .driveway-slider {
    height: 52vh;
    min-height: 380px;
    border-radius: 0 0 20px 20px;
  }
  .dslide-caption {
    bottom: 12%;
    padding: 0 20px;
    width: 92%;
  }
  .dslide-caption h2 {
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 0.6rem;
  }
  .dslide-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  .dslide-btn,
  .wa-float-btn {
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }
  .before-after img {
    object-position: center 55%;
  }

  .driveway-slider .dslide:first-child .dslide-caption {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    width: 100% !important;
    bottom: 12% !important;
  }

  .driveway-slider .dslide:first-child .dslide-caption h2,
  .driveway-slider .dslide:first-child .dslide-caption p {
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9), -1px -1px 3px rgba(0,0,0,0.7) !important;
    padding: 0 15px;
  }

  .driveway-slider .dslide:first-child .dslide-caption p {
    margin-bottom: 20px !important; 
  }

  .driveway-slider .dslide:first-child .wa-float-btn {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 320px !important;
    justify-content: center !important;
  }

  .dnav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .dnav.prev { left: 10px; }
  .dnav.next { right: 10px; }

  /* Formulario */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1.1rem 1rem;
    font-size: 1.05rem;
  }
  .btn-submit {
    padding: 1.2rem 2.8rem;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 1.5rem;
  }

  .contact-container {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  /* Float bar */
  .social-btn.whatsapp {
    display: none !important; 
  }
  .social-btn.phone-call {
    display: flex !important; 
  }
  .social-float-bar {
    left: auto;
    right: 14px;
    top: auto;
    bottom: 20px;
    transform: none;
    padding: 10px 6px;
    gap: 10px;
    animation: slideInRightMobile 0.6s ease-out forwards;
  }
  @keyframes slideInRightMobile {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .social-btn { width: 44px; height: 44px; font-size: 1.2rem; }

  /* Services & Promos */
  .service-card { height: 300px; }
  .service-overlay h3 { font-size: 1.45rem; }
  .promo-overlay h3 { font-size: 1.45rem; }
  .promo-overlay p { font-size: 1.05rem; }

  /* Footer */
  .footer-columns { gap: 1.5rem; flex-direction: column; }
  .footer-column { max-width: 100%; padding: 1.2rem; }
}

/* Ajustes finales para teléfonos pequeños (max-width: 480px) */
@media (max-width: 480px) {
  .driveway-slider { height: 50vh; }
  .dslide-caption h2 { font-size: 2.1rem; }
  .about-hero h1 { font-size: 2.3rem; }
  .portfolio-item img { height: 320px; }
}