/* ═══════════════════════════════════════════════════════════
   ESTUDIO NOTARIAL MODELO — Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --primary:       #254388;
  --primary-hover: #1c3370;
  --accent:        #3a5fbf;
  --dark:          #1a1a2e;
  --gray:          #6b7280;
  --light-gray:    #f3f4f6;
  --white:         #ffffff;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.14);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --navbar-h:      72px;
  --transition:    0.25s ease;
  --font:          'Inter', system-ui, sans-serif;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--font);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

/* ─── Utility ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

/* Fade-in animation (driven by JS Intersection Observer) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Section common headers ─────────────────────────────── */
.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 560px;
  margin-inline: auto;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background-color: transparent;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.navbar__nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition), background-color var(--transition);
}

.navbar.scrolled .navbar__nav a {
  color: var(--dark);
}

.navbar__nav a:hover {
  color: var(--primary);
  background-color: var(--light-gray);
}

.navbar.scrolled .navbar__nav a:hover {
  color: var(--primary);
  background-color: var(--light-gray);
}

.navbar__cta {
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* Navbar CTA blanco cuando está sobre el hero (sin scroll) */
.navbar:not(.scrolled) .navbar__cta {
  background-color: var(--white);
  color: var(--primary);
}

.navbar:not(.scrolled) .navbar__cta:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.navbar__hamburger:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .navbar__hamburger:hover {
  background-color: var(--light-gray);
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition),
    background-color var(--transition);
}

.navbar.scrolled .navbar__hamburger span {
  background-color: var(--dark);
}

/* Hamburger → X animation */
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: var(--navbar-h);
  overflow: hidden;
  background: var(--primary);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 67, 136, 0.82) 0%, rgba(26, 47, 110, 0.82) 100%);
  z-index: 1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 3rem;
  min-height: calc(100svh - var(--navbar-h));
  padding-block: 4rem;
  position: relative;
  z-index: 2;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  gap: 1.375rem;
}

.hero__badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.375rem 1rem;
  border-radius: 100px;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 460px;
}

.hero__tagline {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  line-height: 1.5;
  max-width: 460px;
}

/* Botón blanco para el hero */
.btn--white {
  background-color: var(--white);
  color: var(--primary);
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero__image img {
  width: 100%;
  height: auto;
  max-height: clamp(400px, 60vh, 640px);
  object-fit: contain;
  object-position: center;
}

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services {
  background-color: var(--white);
}

.services__group {
  margin-bottom: 3.5rem;
}

.services__group:last-child {
  margin-bottom: 0;
}

.services__group-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.services__group-title svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.625rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(37, 67, 136, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
}

.service-card__more {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════════════
   CAROUSEL
   ════════════════════════════════════════════════════════════ */
.carousel-section {
  background-color: var(--light-gray);
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel__track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  background-color: var(--white);
  border-top: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

/* ─── Carousel Cards ─────────────────────────────────────── */
.carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 600px;
  width: 100%;
}

.carousel-card__logo {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.carousel-card__divider {
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.carousel-card__title {
  font-size: clamp(1.1rem, 3vw, 1.625rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.carousel-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.carousel-card__list li {
  font-size: 1rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.carousel-card__desc {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.65;
  max-width: 480px;
}

.carousel-card__phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.carousel-card__badge {
  display: inline-block;
  background-color: rgba(37, 67, 136, 0.07);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  border: 1.5px solid rgba(37, 67, 136, 0.2);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition), transform var(--transition);
  z-index: 10;
}

.carousel__btn:hover {
  background-color: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.carousel__btn svg {
  width: 20px;
  height: 20px;
}

.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }

.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: background-color var(--transition), transform var(--transition);
}

.carousel__dot.active {
  background-color: var(--white);
  transform: scale(1.35);
}

/* ════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════ */
.about {
  background-color: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about__text .section__title {
  text-align: left;
  margin-top: 0.5rem;
}

.about__text p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 1.0125rem;
  line-height: 1.7;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about__value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__value > svg,
.about__value > i {
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.about__value div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about__value strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
}

.about__value span {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Badge */
.about__badge-wrap {
  display: flex;
  justify-content: center;
}

.about__badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
}

.about__badge-score {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.about__badge-label {
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.about__stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-top: 0.25rem;
}

.about__stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
}

.about__badge-sub {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* ════════════════════════════════════════════════════════════
   REVIEWS
   ════════════════════════════════════════════════════════════ */
.reviews {
  background-color: var(--light-gray);
}

.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.reviews__stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
}

.reviews__stars svg {
  width: 20px;
  height: 20px;
  fill: #fbbf24;
}

.reviews__score {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.reviews__source {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Carousel wrapper */
.reviews-carousel {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 3rem;
}

.reviews-carousel__window {
  overflow: hidden;
  transition: height 0.4s ease;
}

.reviews-carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: flex-start;
}

/* Review card — centered, 1 at a time */
.review-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 0.75rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.review-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 67, 136, 0.28);
}

.review-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.review-card__stars svg {
  width: 16px;
  height: 16px;
  fill: #fbbf24;
  color: #fbbf24;
}

.review-card__text {
  font-size: clamp(0.9rem, 2.2vw, 1.0625rem);
  color: var(--dark);
  line-height: 1.7;
  max-width: 520px;
  font-style: italic;
}

.review-card__time {
  font-size: 0.8125rem;
  color: var(--gray);
}

/* Carousel nav buttons */
.reviews-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition), transform var(--transition);
  z-index: 10;
  cursor: pointer;
}

.reviews-carousel__btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.06);
}

.reviews-carousel__btn svg {
  width: 20px;
  height: 20px;
}

.reviews-carousel__btn--prev { left: 0; }
.reviews-carousel__btn--next { right: 0; }

/* Dots */
.reviews-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.reviews-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition), transform var(--transition);
}

.reviews-carousel__dot.active {
  background-color: var(--primary);
  transform: scale(1.5);
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact {
  background-color: var(--white);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Contact cards ───────────────────────────────────── */
.contact__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.625rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--white);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition),
    border-color var(--transition);
}

a.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(37, 67, 136, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background-color var(--transition);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-card__value {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.4;
  word-break: break-word;
}

/* WhatsApp */
.contact-card--wpp .contact-card__icon {
  background-color: rgba(37, 211, 102, 0.12);
  color: #25D366;
}
a.contact-card--wpp:hover {
  border-color: #25D366;
}
a.contact-card--wpp:hover .contact-card__icon {
  background-color: rgba(37, 211, 102, 0.22);
}

/* Llamadas */
.contact-card--phone .contact-card__icon {
  background-color: rgba(52, 183, 241, 0.12);
  color: #34B7F1;
}
a.contact-card--phone:hover {
  border-color: #34B7F1;
}
a.contact-card--phone:hover .contact-card__icon {
  background-color: rgba(52, 183, 241, 0.22);
}

/* LinkedIn */
.contact-card--linkedin .contact-card__icon {
  background-color: rgba(10, 102, 194, 0.10);
  color: #0A66C2;
}
a.contact-card--linkedin:hover {
  border-color: #0A66C2;
}
a.contact-card--linkedin:hover .contact-card__icon {
  background-color: rgba(10, 102, 194, 0.20);
}

/* ── Horario ────────────────────────────────────────────── */
.contact__hours-row {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--border);
}

.contact__hours-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact__hours-title svg,
.contact__hours-title i {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact__hours-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.contact__schedule {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.contact__schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.contact__day {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
}

.contact__time {
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.3;
}

.contact__schedule-item--closed .contact__day,
.contact__schedule-item--closed .contact__time {
  color: #c94a4a;
}

/* ── Mapa ──────────────────────────────────────────────── */
.contact__map-row {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-md);
}

.contact__map-row iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ════════════════════════════════════════════════════════════
   FLOAT WPP
   ════════════════════════════════════════════════════════════ */
.float-wpp {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-wpp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.float-wpp svg {
  width: 28px;
  height: 28px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 2rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer__copy {
  font-size: 0.8125rem;
  text-align: center;
  flex: 1;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition), background-color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.footer__links svg {
  width: 18px;
  height: 18px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero tablet: 1 col para usar todo el ancho */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 3.5rem;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__badge-wrap {
    order: -1;
  }

  .about__text .section__title {
    text-align: center;
  }

  .about__text .section__tag {
    display: block;
    text-align: center;
  }

  .about__values {
    max-width: 480px;
    margin-inline: auto;
  }

  .contact__hours-row {
    padding: 1.25rem;
  }

  .contact__map-row {
    height: 260px;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── FIX 1: Navbar mobile ─────────────────────────────── */
  /* Fondo siempre blanco en mobile (independiente del scroll) */
  .navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
  }

  /* Logo visible sobre fondo blanco */
  .navbar__logo img {
    height: 40px;
  }

  /* Links del nav en color oscuro (navbar ya es blanca) */
  .navbar__nav a {
    color: var(--dark) !important;
  }

  /* CTA oculto, hamburger visible */
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Barras del hamburger oscuras sobre fondo blanco */
  .navbar__hamburger span {
    background-color: var(--dark);
  }

  /* Dropdown panel */
  .navbar__nav {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0s linear 0.3s;
    pointer-events: none;
    margin-left: 0;
  }

  .navbar__nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0s linear 0s;
  }

  .navbar__nav a {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .navbar__nav a:last-child {
    border-bottom: none;
  }

  .navbar__nav a:hover {
    background-color: var(--light-gray);
    color: var(--primary) !important;
  }

  /* ── Hero mobile ─────────────────────────────────────────── */
  .hero__inner {
    min-height: unset;
    padding-block: 0;
    gap: 0;
  }

  .hero__content {
    min-height: calc(100svh - var(--navbar-h));
    justify-content: center;
    padding-block: 2.5rem;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  /* ── Carousel mobile ──────────────────────────────────── */
  .carousel__slide {
    min-height: 320px;
    padding: 2rem 1.25rem;
  }

  .carousel-card__logo {
    height: 52px;
  }

  .carousel-card__title {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .carousel__btn {
    display: none;
  }

  /* ── Contacto ────────────────────────────────────────── */
  .contact__actions {
    grid-template-columns: 1fr;
  }

  .contact__schedule {
    flex-wrap: wrap;
  }

  .contact__schedule-item {
    flex: 1 1 calc(25% - 0.5rem);
    min-width: 60px;
  }

  /* ── Servicios ───────────────────────────────────────── */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about__badge {
    padding: 1.75rem 1.5rem;
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }

  /* Reviews carousel */
  .reviews-carousel {
    padding-inline: 0;
  }

  .reviews-carousel__btn {
    display: none;
  }

  /* Float WPP */
  .float-wpp {
    width: 50px;
    height: 50px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .float-wpp svg {
    width: 24px;
    height: 24px;
  }

  /* Mapa mobile */
  .contact__map-row {
    height: 240px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__copy {
    order: 2;
  }
}

/* ════════════════════════════════════════════════════════════
   SERVICE MODAL
   ════════════════════════════════════════════════════════════ */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.service-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.service-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 2rem;
  max-width: 540px;
  width: 100%;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.service-modal-overlay.active .service-modal {
  transform: translateY(0);
}

.service-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}

.service-modal__close:hover {
  background: var(--light-gray);
  color: var(--dark);
}

.service-modal__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.875rem;
  padding-right: 2rem;
  line-height: 1.3;
}

.service-modal__desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.service-modal__cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .service-modal {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .service-modal__title {
    font-size: 1.05rem;
  }
}
