/* ==========================================================================
   Grupo Kasa — Seminuevos Certificados
   Estilos principales del sitio web.
   
   Paleta: Negro (#111), Gris oscuro (#1d1d1d), Blanco, Gris claro, Rojo (#d32f2f)
   Tipografía: Outfit (Google Fonts)
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   1. VARIABLES CSS
   -------------------------------------------------------------------------- */
:root {
  --negro:       #111111;
  --gris-oscuro: #1d1d1d;
  --gris:        #888888;
  --gris-claro:  #f5f5f5;
  --blanco:      #ffffff;
  --rojo:        #d32f2f;
  --rojo-hover:  #b71c1c;

  --sombra-sm:   0 2px 8px rgba(0,0,0,0.08);
  --sombra-md:   0 8px 30px rgba(0,0,0,0.1);
  --sombra-lg:   0 16px 48px rgba(0,0,0,0.14);

  --radius:      12px;
  --radius-lg:   20px;

  --transition:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. UTILIDADES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gris);
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-padding {
  padding: 100px 0;
}

/* --------------------------------------------------------------------------
   3. ANIMACIONES DE SCROLL (reveal)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delays escalonados para grupos */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   4. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), 
              padding var(--transition), 
              box-shadow var(--transition),
              backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 48px;
  width: auto;
  transition: height var(--transition);
}

.navbar.scrolled .navbar__logo img {
  height: 38px;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blanco);
  position: relative;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rojo);
  transition: width var(--transition);
}

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

.navbar__link:hover {
  color: var(--rojo);
}

/* Menú hamburguesa */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(17, 17, 17, 0.65) 50%,
    rgba(29, 29, 29, 0.55) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

/* Animación de entrada */
.hero__content .hero__badge,
.hero__content h1,
.hero__content .hero__tagline,
.hero__content .hero__description,
.hero__content .hero__buttons {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.9s ease forwards;
}

.hero__content h1            { animation-delay: 0.2s; }
.hero__content .hero__tagline { animation-delay: 0.4s; }
.hero__content .hero__description { animation-delay: 0.6s; }
.hero__content .hero__buttons { animation-delay: 0.8s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.05);
}

.hero__content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero__content h1 span {
  color: var(--rojo);
}

.hero__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}

.hero__description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.btn--primary:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--negro);
  color: var(--blanco);
}

.btn--dark:hover {
  background: var(--gris-oscuro);
  transform: translateY(-2px);
  box-shadow: var(--sombra-md);
}

/* --------------------------------------------------------------------------
   7. BENEFICIOS
   -------------------------------------------------------------------------- */
.beneficios {
  background: var(--gris-claro);
}

.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.beneficio-card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--sombra-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.beneficio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-lg);
}

.beneficio-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rojo), #e53935);
  border-radius: 16px;
  color: var(--blanco);
}

.beneficio-card__icon svg {
  width: 28px;
  height: 28px;
}

.beneficio-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 10px;
}

.beneficio-card__text {
  font-size: 0.92rem;
  color: var(--gris);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. INVENTARIO
   -------------------------------------------------------------------------- */
.inventario__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.car-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-lg);
}

.car-card__img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--gris-claro);
}

.car-card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.car-card:hover .car-card__img-wrapper img {
  transform: scale(1.06);
}

.car-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  background: var(--rojo);
  color: var(--blanco);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-card__body {
  padding: 24px;
}

.car-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 16px;
  text-transform: capitalize;
}

.car-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--negro);
  color: var(--blanco);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
  width: 100%;
  justify-content: center;
}

.car-card__btn:hover {
  background: var(--rojo);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.car-card__btn svg {
  width: 16px;
  height: 16px;
}

.inventario__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--gris);
  font-size: 1.1rem;
}

.inventario__empty svg {
  width: 64px;
  height: 64px;
  color: var(--gris);
  margin-bottom: 16px;
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   9. ESTADÍSTICAS (¿Por qué Grupo Kasa?)
   -------------------------------------------------------------------------- */
.estadisticas {
  background: var(--negro);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.estadisticas::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.estadisticas .section-title {
  color: var(--blanco);
}

.estadisticas .section-subtitle {
  color: rgba(255,255,255,0.5);
}

.estadisticas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
}

.stat-item__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--rojo);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   10. OPINIONES
   -------------------------------------------------------------------------- */
.opiniones {
  background: var(--gris-claro);
}

.opiniones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.opinion-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--sombra-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
}

.opinion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-md);
}

.opinion-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
}

.opinion-card__stars svg {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  fill: #f59e0b;
}

.opinion-card__text {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  font-style: italic;
}

.opinion-card__quote {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 4rem;
  color: rgba(211, 47, 47, 0.08);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   11. CTA (LLAMADO A LA ACCIÓN)
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: 100px 0;
  background: var(--gris-oscuro);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(211, 47, 47, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(211, 47, 47, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta__content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. CONTACTO
   -------------------------------------------------------------------------- */
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacto__info-card {
  background: var(--gris-claro);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contacto__info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 28px;
}

.contacto__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contacto__info-item:last-child {
  margin-bottom: 0;
}

.contacto__info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blanco);
  border-radius: 10px;
  color: var(--rojo);
  box-shadow: var(--sombra-sm);
}

.contacto__info-icon svg {
  width: 20px;
  height: 20px;
}

.contacto__info-label {
  font-size: 0.82rem;
  color: var(--gris);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contacto__info-value {
  font-size: 1rem;
  color: var(--negro);
  font-weight: 500;
}

.contacto__map {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris);
  font-size: 0.9rem;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Formulario */
.contacto__form-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--sombra-md);
  border: 1px solid rgba(0,0,0,0.06);
}

.contacto__form-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--negro);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: var(--gris-claro);
  color: var(--negro);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rojo);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.08);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--negro);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  max-width: 340px;
}

.footer__logo {
  height: 42px;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--rojo);
  min-width: 18px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--rojo);
  color: var(--blanco);
  transform: translateY(-2px);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  text-align: center;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* --------------------------------------------------------------------------
   14. BOTÓN VOLVER ARRIBA
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--rojo);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--rojo-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.45);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   15. GLASSMORPHISM CARD (Usada selectivamente)
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   16. NOSOTROS (About)
   -------------------------------------------------------------------------- */
.nosotros {
  background: var(--blanco);
}

.nosotros__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros__text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: 16px;
}

.nosotros__text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.nosotros__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.nosotros__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--negro);
}

.nosotros__feature svg {
  width: 20px;
  height: 20px;
  color: var(--rojo);
  min-width: 20px;
}

.nosotros__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
  aspect-ratio: 4/3;
}

.nosotros__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablets */
@media (max-width: 1024px) {
  .beneficios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .estadisticas__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .opiniones__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotros__image {
    order: -1;
    max-height: 350px;
  }
}

/* Móvil grande */
@media (max-width: 768px) {
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right var(--transition);
    padding: 24px;
  }

  .navbar__menu.open {
    right: 0;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__link {
    font-size: 1.1rem;
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .beneficios__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .inventario__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .estadisticas__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .opiniones__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

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

  .footer__top {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer__social {
    justify-content: center;
  }

  .section-padding {
    padding: 70px 0;
  }

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

/* Móvil pequeño */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .stat-item__number {
    font-size: 2.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* --------------------------------------------------------------------------
   18. TRANSICIONES DEL MENÚ MÓVIL OVERLAY
   -------------------------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   19. SCROLLBAR PERSONALIZADO
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gris-claro);
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* --------------------------------------------------------------------------
   20. SELECCIÓN DE TEXTO
   -------------------------------------------------------------------------- */
::selection {
  background: rgba(211, 47, 47, 0.2);
  color: var(--negro);
}

/* --------------------------------------------------------------------------
   21. PRELOADER (Opcional)
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--negro);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--rojo);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
