/* ==========================================================================
   Friendly Cleaning — hoja de estilo del sitio público
   Regla de marca: solo colores sólidos. Este archivo no contiene ni una sola
   declaración de degradado; los bloques se separan por color plano y borde.
   ========================================================================== */

:root {
  --navy: #15468c;
  --navy-dark: #0f3468;
  --navy-soft: #e8eef7;
  --green: #6cbe45;
  --green-dark: #55a032;
  --green-soft: #eef7e8;
  --ink: #1c2430;
  --muted: #5a6675;
  --gray: #f3f5f8;
  --line: #dde3ec;
  --white: #ffffff;

  --wrap: 1180px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(21, 70, 140, 0.08);
  --shadow-lg: 0 10px 30px rgba(21, 70, 140, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Compensa el header fijo al saltar a un ancla. */
  scroll-padding-top: 88px;
}

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%;
  display: block;
}

a {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
}
h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

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

/* ------------------------------------------------------------------ botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.06rem;
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------------- header */

.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.88rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar a:hover {
  text-decoration: underline;
}
.topbar .icon {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.topbar-items {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  height: 56px;
  width: auto;
}

/* Recuadro que ocupa el lugar del logo mientras no se haya subido uno. */
.logo-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 190px;
  height: 58px;
  padding: 6px 16px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--navy);
}
.logo-slot strong {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
}
.logo-slot span {
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch a {
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  background: var(--white);
}
.lang-switch a.is-active {
  background: var(--navy);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 9px;
  cursor: pointer;
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
/* La foto va detrás; el color de marca se aplica como capa plana, no degradada. */
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.82;
}
.hero .wrap {
  position: relative;
  padding: 84px 24px 92px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.hero-text {
  font-size: 1.14rem;
  color: #dce6f4;
  max-width: 700px;
  margin: 0 auto 30px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tagline {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.16rem;
  font-style: italic;
  color: var(--green);
  font-weight: 600;
}

/* ------------------------------------------------------------------ pilares */

.pillars {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.pillars .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-block: 44px;
}
.pillar {
  text-align: center;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}
.pillar:last-child {
  border-right: 0;
}
.pillar-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
}
.pillar-badge .icon {
  width: 32px;
  height: 32px;
}
.pillar:nth-child(odd) .pillar-badge {
  background: var(--navy);
}
.pillar:nth-child(even) .pillar-badge {
  background: var(--green);
}
.pillar h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------------------------------------------------------------- secciones */

.section {
  padding: 78px 0;
}
.section-gray {
  background: var(--gray);
}
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}
.section-navy .section-head p {
  color: #cfdcee;
}
.section-head .rule {
  width: 64px;
  height: 4px;
  background: var(--green);
  margin: 0 auto 22px;
  border-radius: 2px;
}

/* --------------------------------------------------------------- servicios */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-top-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}
.card:nth-child(even) {
  border-top-color: var(--green);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--navy);
  margin-bottom: 18px;
}
.card:nth-child(even) .card-icon {
  background: var(--green-soft);
  color: var(--green-dark);
}
.card-icon .icon {
  width: 27px;
  height: 27px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* -------------------------------------------------------------------- zonas */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.area-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.97rem;
}
.area-chip .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.areas-note {
  text-align: center;
  margin: 34px 0 0;
  color: #cfdcee;
}

/* ----------------------------------------------------------------- galería */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: var(--navy-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  padding: 10px 14px;
  text-align: left;
}

/* Visor a pantalla completa, sin librerías externas. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 52, 104, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: var(--radius);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: var(--white);
  color: var(--navy);
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-close {
  top: 22px;
  right: 22px;
}
.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}
.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------- sobre  */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-weight: 600;
}
.about-list .icon {
  width: 22px;
  height: 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  padding: 4px;
  flex: none;
  margin-top: 2px;
  stroke-width: 3;
}
.about-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}
.about-panel h3 {
  color: var(--white);
  font-size: 1.4rem;
}
.about-panel .owner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.about-panel .owner .icon {
  width: 46px;
  height: 46px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  padding: 10px;
}
.about-panel .owner strong {
  display: block;
  font-size: 1.14rem;
}
.about-panel .owner span {
  color: var(--green);
  font-size: 0.92rem;
}
.about-contact {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}
.about-contact a,
.about-contact div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.98rem;
}
.about-contact .icon {
  color: var(--green);
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------- testimonios */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
}
.quote .icon {
  color: var(--green);
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.quote p {
  font-size: 1rem;
  color: var(--ink);
}
.quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  margin-top: 12px;
}
.quote cite span {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ----------------------------------------------------------------- contacto */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field label .req {
  color: var(--green-dark);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.field textarea {
  min-height: 128px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px var(--navy-soft);
}
/* Trampa para bots: invisible para personas, presente en el DOM. */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.alert {
  border-radius: 8px;
  padding: 15px 18px;
  margin-bottom: 22px;
  font-weight: 600;
  border-left: 4px solid;
}
.alert-ok {
  background: var(--green-soft);
  color: #2f6b18;
  border-color: var(--green);
}
.alert-error {
  background: #fdecec;
  color: #96231f;
  border-color: #d94a44;
}
.alert-info {
  background: var(--navy-soft);
  color: var(--navy-dark);
  border-color: var(--navy);
}

.contact-side {
  display: grid;
  gap: 14px;
}
.contact-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
}
.contact-tile:hover {
  border-color: var(--navy);
}
.contact-tile .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  flex: none;
}
.contact-tile:nth-child(even) .icon {
  background: var(--green);
}
.contact-tile strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}
.contact-tile span {
  color: var(--muted);
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
}
.social-row a:hover {
  background: var(--green);
}
.social-row .icon {
  width: 21px;
  height: 21px;
}
/* Sobre fondo azul (panel de contacto y pie) el azul marino desaparecería. */
.about-panel .social-row a,
.site-footer .social-row a {
  background: var(--green);
}
.about-panel .social-row a:hover,
.site-footer .social-row a:hover {
  background: var(--white);
  color: var(--navy);
}

/* -------------------------------------------------------------- llamado CTA */

.cta-band {
  background: var(--green);
  color: var(--white);
  padding: 52px 0;
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-band h2 {
  color: var(--white);
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
}
.cta-band p {
  margin: 6px 0 0;
  color: #eaf6e3;
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-dark);
  color: #c6d5e9;
  padding: 56px 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer a {
  color: #c6d5e9;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-brand img {
  height: 54px;
  background: var(--white);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

/* Botón flotante de WhatsApp. */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.wa-float .icon {
  width: 30px;
  height: 30px;
}

/* ------------------------------------------------------------- adaptativo  */

@media (max-width: 1024px) {
  .cards,
  .quotes,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-header .wrap {
    position: relative;
    min-height: 74px;
  }
  .pillars .wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 10px;
  }
  .pillar:nth-child(2n) {
    border-right: 0;
  }
  .header-actions .btn span {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .section {
    padding: 56px 0;
  }
  .hero .wrap {
    padding: 60px 24px 66px;
  }
  .cards,
  .quotes,
  .gallery-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-panel,
  .form-card {
    padding: 26px 22px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .topbar-items {
    gap: 14px;
    font-size: 0.82rem;
  }
  .brand img {
    height: 44px;
  }
}

@media print {
  .site-header,
  .topbar,
  .wa-float,
  .cta-band,
  .nav-toggle {
    display: none;
  }
}
