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

:root {
  --clr-primary:    #1a1f2e;
  --clr-secondary:  #2d3348;
  --clr-accent:     #f59e0b;
  --clr-accent-hover: #d97706;
  --clr-whatsapp:   #25d366;
  --clr-whatsapp-hover: #1ebe5a;
  --clr-phone:      #3b82f6;
  --clr-phone-hover: #2563eb;
  --clr-text:       #1f2937;
  --clr-muted:      #6b7280;
  --clr-bg:         #ffffff;
  --clr-gray:       #f8f9fa;
  --radius:         12px;
  --shadow:         0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.15);
  --font:           'Inter', sans-serif;
  --max-w:          1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--whatsapp {
  background: var(--clr-whatsapp);
  color: #fff;
  border-color: var(--clr-whatsapp);
}
.btn--whatsapp:hover {
  background: var(--clr-whatsapp-hover);
  border-color: var(--clr-whatsapp-hover);
  transform: scale(1.07);
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
}

.btn--phone {
  background: var(--clr-phone);
  color: #fff;
  border-color: var(--clr-phone);
}
.btn--phone:hover {
  background: var(--clr-phone-hover);
  border-color: var(--clr-phone-hover);
  transform: scale(1.07);
  box-shadow: 0 10px 30px rgba(59,130,246,.5);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: scale(1.07); box-shadow: 0 10px 30px rgba(26,31,46,.2);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-primary);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.logo-icon { font-size: 1.4rem; }

.header__nav {
  display: flex;
  gap: 1.75rem;
}

.header__nav a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.header__nav a:hover { color: var(--clr-accent); }

.header__cta { font-size: .85rem; padding: .6rem 1.2rem; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(26,31,46,.92) 0%, rgba(26,31,46,.75) 60%, rgba(26,31,46,.6) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1400&q=80') center/cover no-repeat;
  padding: 5rem 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,31,46,.85) 50%, transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__badge {
  display: inline-block;
  background: var(--clr-accent);
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}

/* ===== STATS ===== */
.stats {
  background: var(--clr-accent);
  padding: 2.5rem 0;
}

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

.stat__number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--clr-primary);
}

.stat__label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(26,31,46,.7);
  margin-top: .25rem;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section--dark { background: var(--clr-primary); }
.section--gray { background: var(--clr-gray); }

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.section__header p {
  color: var(--clr-muted);
  font-size: 1.05rem;
}

.section__header--light h2 { color: #fff; }
.section__header--light p { color: rgba(255,255,255,.65); }

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--clr-gray);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid transparent;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured h3 { color: #fff; }
.service-card--featured li { color: rgba(255,255,255,.8); }
.service-card--featured li::before { color: var(--clr-accent); }

/* ===== SERVICE CARD IMAGE ===== */
.service-card__img {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1rem -2rem;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__badge {
  position: absolute;
  top: 168px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: 50px;
  white-space: nowrap;
}

.service-card__icon {
  width: 60px;
  height: 60px;
  color: var(--clr-accent);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.service-card li {
  font-size: .9rem;
  color: var(--clr-muted);
  padding-left: 1.1rem;
  position: relative;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clr-whatsapp);
  font-weight: 700;
}

/* ===== WHY ===== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background .2s;
}

.why-card:hover { background: rgba(255,255,255,.08); }

.why-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.why-card h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.why-card p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,31,46,.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__note {
  text-align: center;
  color: var(--clr-muted);
  font-size: .9rem;
}

.gallery__note a {
  color: var(--clr-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== GALLERY MOBILE LIST ===== */
.gallery__list {
  display: none;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.gallery__list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--clr-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.gallery__list-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.gallery__list-item strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .15rem;
}

.gallery__list-item span {
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.4;
}

/* ===== TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--clr-gray);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--clr-accent);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.testimonial__stars { color: var(--clr-accent); font-size: 1.1rem; }

.testimonial p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--clr-text);
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

.testimonial__author strong { display: block; font-size: .9rem; }
.testimonial__author span { font-size: .8rem; color: var(--clr-muted); }

/* ===== FAQ ===== */
.faq { max-width: 720px; margin: 0 auto; }

.faq__item {
  border-bottom: 1px solid #e5e7eb;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color .2s;
}

.faq__question:hover { color: var(--clr-accent); }

.faq__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--clr-accent);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq__answer.open {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

.faq__answer p {
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__item-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

.contact__item strong { display: block; font-weight: 700; margin-bottom: .25rem; }
.contact__item span, .contact__item a {
  display: block;
  color: var(--clr-muted);
  font-size: .95rem;
  transition: color .2s;
}
.contact__item a:hover { color: var(--clr-whatsapp); }

.badge--24 {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-top: .5rem;
}

.contact__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* ===== FORM ===== */
.contact__form {
  background: var(--clr-gray);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact__form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.form__subtitle {
  color: var(--clr-muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form__group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--clr-text);
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  background: #fff;
  color: var(--clr-text);
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--clr-whatsapp);
  box-shadow: 0 0 0 3px rgba(37,211,102,.15);
}

/* ===== MAP ===== */
.map__wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-primary);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
}

.footer__copy { color: rgba(255,255,255,.5); font-size: .85rem; }

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: color .2s;
}
.footer__links a:hover { color: var(--clr-accent); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--clr-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 999;
  transition: transform .2s, box-shadow .2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 70px;
  background: var(--clr-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--clr-primary);
  border-right: 0;
}

.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav { display: none; }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services__grid,
  .why__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .service-card--featured { transform: none; }

  .gallery__list { display: flex; }
  .gallery__grid { display: none; }

  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }

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

  .contact__ctas { flex-direction: column; }
  .contact__ctas .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding: 4rem 0; }
  .section { padding: 3.5rem 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CARRUSEL DE MARCAS ===== */
.brands__wrapper {
  margin-top: 3rem;
  text-align: center;
}

.brands__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary, #6b7280);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}

.brands__track-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 0.5rem 0;
}

.brands__track-container::before,
.brands__track-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.brands__track-container::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.brands__track-container::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.brands__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scrollBrands 22s linear infinite;
}

.brands__track:hover {
  animation-play-state: paused;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter .3s, opacity .3s;
}

.brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.brand-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@keyframes scrollBrands {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== LOGO IMAGEN ===== */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer .logo-img {
  height: 32px;
}

/* Ajuste stat para textos de horario */
.stat__number {
  font-size: clamp(1.2rem, 3vw, 2rem);
}
