/* ==========================================================
   Domicilios Multiservicios TAMA - Design Tokens & Styles
   ========================================================== */

/* --- Fonts (self-hosted, swap) --- */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fredoka-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fredoka-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --- */

:root {
  --navy: #14213D;
  --navy-light: #1b2d52;
  --yellow: #FFD100;
  --yellow-hover: #e6bc00;
  --cream: #FFF9E6;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-600: #5a6170;
  --gray-300: #c5c9d2;
  --radius: 12px;
  --font-heading: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utility --- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--yellow-hover);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-whatsapp-nav {
  background: #25D366;
  color: var(--white);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-whatsapp-nav:hover {
  background: #1ebc5a;
}

.btn-whatsapp-nav:active {
  transform: scale(0.97);
}

.btn-whatsapp-nav svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* --- Navigation --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  align-items: center;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav__hamburger span {
  display: block;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__mobile {
  display: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav__mobile.open {
    display: flex;
  }

  .nav__mobile a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
  }

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

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

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

/* --- Hero --- */

.hero {
  background: var(--cream);
  padding: 4rem 0 4.5rem;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__title .accent {
  color: var(--yellow);
  text-shadow: 0 1px 0 rgba(20, 33, 61, 0.15);
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 50ch;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

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

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__logo-wrapper {
  position: relative;
  width: clamp(220px, 22vw, 340px);
  height: clamp(220px, 22vw, 340px);
}

.hero__logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(20, 33, 61, 0.12);
}

.hero__badge {
  position: absolute;
  bottom: -8px;
  right: -16px;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.18);
}

.hero__badge svg {
  width: 18px;
  height: 18px;
  fill: var(--yellow);
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0 3rem;
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__logo-wrapper {
    width: 180px;
    height: 180px;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* --- Section shared --- */

.section {
  padding: 5rem 0;
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--cream {
  background: var(--cream);
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section__subtitle {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.section--navy .section__subtitle {
  color: var(--gray-300);
}

/* --- About --- */

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 55ch;
}

.about__text p + p {
  margin-top: 1rem;
}

.about__highlight {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about__stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 209, 0, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--yellow);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__stat-text {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .about__content {
    grid-template-columns: 1fr;
  }
}

/* --- Services (bento) --- */

.services__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.service-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card--food {
  background: var(--navy);
  color: var(--white);
}

.service-card--transport {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card--food .service-card__icon {
  background: rgba(255, 209, 0, 0.15);
}

.service-card--transport .service-card__icon {
  background: rgba(20, 33, 61, 0.08);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-card--food .service-card__icon svg {
  stroke: var(--yellow);
}

.service-card--transport .service-card__icon svg {
  stroke: var(--navy);
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
}

.service-card__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 40ch;
}

.service-card--food .service-card__desc {
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* --- How it works (connected steps) --- */

.steps {
  display: flex;
  gap: 0;
  position: relative;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.step__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
}

.step__icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step__connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 3px;
  background: var(--yellow);
  z-index: 1;
}

.step:last-child .step__connector {
  display: none;
}

.step__number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.section--navy .step__number {
  color: var(--yellow);
}

.step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .step {
    max-width: 320px;
  }

  .step__connector {
    display: none;
  }
}

/* --- Contact --- */

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

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

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

.contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__label {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.contact__value {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.contact__value a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
  transition: border-color 0.2s ease;
}

.contact__value a:hover {
  border-color: var(--navy);
}

.contact__hours-table {
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 300px;
}

.contact__hours-row + .contact__hours-row {
  margin-top: 0.25rem;
}

.contact__cta {
  margin-top: 1.5rem;
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact__map iframe {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border: 0;
}

.contact__map-link {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--navy);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(20, 33, 61, 0.18);
  transition: background 0.2s ease;
}

.contact__map-link:hover {
  background: var(--yellow);
}

.contact__map-link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__map {
    min-height: 220px;
  }
}

/* --- Footer --- */

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.6;
  max-width: 35ch;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.footer__legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.5;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.footer__social a:hover {
  background: var(--yellow);
}

.footer__social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: fill 0.25s ease;
}

.footer__social a:hover svg {
  fill: var(--navy);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav-list a {
  font-size: 0.875rem;
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.footer__nav-list a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__desc {
    margin-inline: auto;
  }

  .footer__social {
    justify-content: center;
  }
}

/* --- Floating WhatsApp button (mobile) --- */

.fab-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: transform 0.25s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@media (max-width: 768px) {
  .fab-whatsapp {
    display: flex;
  }
}
