/* Rossy's Cleaning Services
   Colores planos unicamente. Nada de degradados: la jerarquia se construye con
   peso tipografico, bordes de 1px y bloques de color solido. */

:root {
  --teal: #0F766E;
  --teal-dark: #0B5A54;
  --teal-soft: #E6F0EF;
  --sand: #F5F1E8;
  --sand-line: #E3DCCB;
  --ink: #1C1917;
  --muted: #57534E;
  --white: #FFFFFF;
  --line: #E7E5E4;
  --focus: #B45309;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2 { color: var(--white); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--teal .section__head p { color: rgba(255, 255, 255, .85); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 18px;
}
.skip:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--onteal { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn--onteal:hover { background: var(--sand); border-color: var(--sand); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { max-height: 52px; width: auto; }
.logo__ph {
  display: grid; place-items: center;
  width: 62px; height: 46px; flex: none;
  border: 2px dashed var(--teal); border-radius: var(--radius);
  color: var(--teal); font-size: .68rem; font-weight: 800; letter-spacing: .12em;
}
.logo__name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.logo__name span { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }

.nav { display: none; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--teal); color: var(--teal); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 700;
}
.lang:hover { border-color: var(--teal); color: var(--teal); }
.header__call { display: none; }

.burger {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }

.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { background: var(--teal); color: var(--white); padding: 56px 0 64px; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.12rem; color: rgba(255, 255, 255, .9); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__phone { margin-top: 24px; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hero__phone strong { display: block; font-size: 1.5rem; color: var(--white); letter-spacing: .01em; }
.hero__phone a { color: var(--white); text-decoration: none; }

.hero__media img { border: 6px solid var(--white); border-radius: var(--radius); width: 100%; }
.hero__ph {
  display: grid; place-content: center; text-align: center; gap: 8px;
  aspect-ratio: 4 / 3; padding: 24px;
  border: 3px dashed rgba(255, 255, 255, .6); border-radius: var(--radius);
  color: rgba(255, 255, 255, .9); font-weight: 600;
}
.hero__ph svg { width: 40px; height: 40px; margin: 0 auto; }

/* ---------- Barra de confianza ---------- */
.trust { background: var(--sand); border-bottom: 1px solid var(--sand-line); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__item {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 12px; font-weight: 700; font-size: .92rem;
  border-bottom: 1px solid var(--sand-line);
}
.trust__item:nth-child(odd) { border-right: 1px solid var(--sand-line); }
.trust__item svg { width: 22px; height: 22px; color: var(--teal); flex: none; }

/* ---------- Servicios ---------- */
.cards { display: grid; gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--teal); color: var(--white); border-radius: var(--radius); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__price { display: inline-block; margin-top: 14px; padding: 5px 10px; background: var(--teal-soft); color: var(--teal-dark); border-radius: var(--radius); font-weight: 700; font-size: .88rem; }

/* ---------- Galeria ---------- */
.gallery { display: grid; gap: 20px; }
.shot { background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius); overflow: hidden; }
.shot__pair { display: grid; grid-template-columns: 1fr 1fr; }
.shot__side { position: relative; }
.shot__side + .shot__side { border-left: 1px solid var(--white); }
.shot__side img, .shot__single img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot__tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: var(--white);
  padding: 4px 10px; border-radius: var(--radius);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.shot__tag--after { background: var(--teal); }
.shot__caption { padding: 12px 16px; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--sand-line); }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* ---------- Sobre mi ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.about__photo img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.about__ph {
  display: grid; place-content: center; text-align: center; gap: 10px;
  aspect-ratio: 1 / 1; padding: 24px;
  border: 3px dashed var(--sand-line); border-radius: var(--radius);
  background: var(--sand); color: var(--muted); font-weight: 600;
}
.about__ph svg { width: 44px; height: 44px; margin: 0 auto; color: var(--teal); }

/* ---------- Testimonios ---------- */
.reviews { display: grid; gap: 20px; }
.review { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; }
.review p { font-size: 1rem; }
.review__stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--teal); }
.review__stars svg { width: 18px; height: 18px; }
.review__who { font-weight: 700; margin: 0; }
.review__where { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Zona de servicio ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 16px; font-weight: 600; font-size: .95rem;
}

/* ---------- Formulario ---------- */
.quote { display: grid; gap: 32px; align-items: start; }
.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #C7C2BB; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
.field textarea { min-height: 110px; resize: vertical; }
.field--half { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; margin-bottom: 16px; }
.note--ok { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid var(--teal); }
.note--bad { background: #FDECEA; color: #8A2018; border: 1px solid #E2A9A2; }

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sand-line); }
.contact-list svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.contact-list a:hover { color: var(--teal); }
.contact-list span { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--white); padding: 48px 0 100px; }
.footer a { color: var(--white); }
.footer__grid { display: grid; gap: 32px; }
.footer h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.footer p, .footer li { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer .logo__ph { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.footer .logo__name { color: var(--white); }
.footer .logo__name span { color: rgba(255, 255, 255, .6); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius);
}
.social a:hover { background: var(--teal); border-color: var(--teal); }
.social svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem; color: rgba(255, 255, 255, .6);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.footer__bottom a { color: rgba(255, 255, 255, .6); }

/* ---------- Barra fija en movil ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
}
.dock a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; text-decoration: none; font-weight: 800; font-size: .98rem;
}
.dock svg { width: 19px; height: 19px; }
.dock__call { background: var(--teal); color: var(--white); }
.dock__wa { background: var(--white); color: var(--ink); }

/* ---------- Visor de imagenes ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(28, 25, 23, .93);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.viewer.is-open { display: flex; }
.viewer img { max-width: 100%; max-height: 88vh; border: 4px solid var(--white); }
.viewer button {
  position: absolute; top: 16px; right: 16px;
  width: 46px; height: 46px; font-size: 1.6rem; line-height: 1;
  background: var(--white); color: var(--ink); border: 0; border-radius: var(--radius); cursor: pointer;
}

/* ---------- Escritorio ---------- */
@media (min-width: 700px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { border-bottom: 0; justify-content: center; }
  .trust__item:nth-child(odd) { border-right: 0; }
  .trust__item + .trust__item { border-left: 1px solid var(--sand-line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .field--half { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .section { padding: 84px 0; }
  .hero { padding: 76px 0 84px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .nav { display: flex; }
  .header__call { display: inline-flex; }
  .burger { display: none; }
  .mobile-nav { display: none !important; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1fr; gap: 56px; }
  .quote { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .dock { display: none; }
  .footer { padding-bottom: 48px; }
}
