/* doctorfugas.cl — hoja de estilos única.
   Los colores y las tipografías NO son una interpretación: se midieron sobre el sitio
   anterior leyendo los estilos computados del navegador, no el CSS. */

/* ------------------------------------------------------------------ fichas */
:root {
  --marino: #02152b;          /* fondo de las bandas oscuras */
  --marino-hondo: #091335;    /* pie */
  --marino-titulo: #0b1e38;   /* títulos sobre blanco */
  --verde: #02ab83;           /* color de marca */
  --verde-oscuro: #019271;
  --dorado: #b2860d;          /* banda del descuento */
  --celeste: #6ec1e4;
  --texto: #333;
  --texto-claro: #fff;
  --whatsapp: #25d366;

  --titulo: "Cairo", "Segoe UI", system-ui, sans-serif;
  --cuerpo: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --tarjeta: "Open Sans", "Segoe UI", system-ui, sans-serif;

  --ancho: 1140px;
  --radio: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: #fff;
  /* El sitio anterior desbordaba a lo ancho en móvil (414 px de contenido en una
     pantalla de 390). Aquí no puede pasar. */
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--titulo);
  margin: 0 0 .5em;
  line-height: 1.2;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 20px;
}

.oculto-visual {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ botones */
.boton {
  display: inline-block;
  font-family: var(--tarjeta);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 4px;
  transition: background-color .18s ease, transform .18s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton--oscuro { background: #000; color: #fff; }
.boton--oscuro:hover { background: #1b1b1b; }
.boton--verde { background: var(--verde); color: #fff; }
.boton--verde:hover { background: var(--verde-oscuro); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  /* El panel verde arranca más a la izquierda que en el sitio anterior (340 px):
     el mensaje es lo que vende y así entra antes en el ojo. */
  grid-template-columns: 1fr 440px;
  min-height: 650px;
  background: #0e2233;
}
/* La foto va como <img> y no como fondo: así puede pedirse con prioridad alta (es lo
   primero que se ve) y lleva sus medidas, que es lo que evita el salto al cargar.
   Se usa el recorte SIN el panel verde: la imagen original lo traía pintado dentro y en
   el móvil aparecía como una franja verde suelta. */
.hero__imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero__panel {
  background: var(--verde);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 32px;
  text-align: center;
  font-family: var(--titulo);
}
.hero__grito { font-size: 1.6rem; font-weight: 700; margin: 0; }
.hero__texto { font-size: 1.15rem; margin: 0; }
.hero__remate { font-size: 1.2rem; font-weight: 700; margin: 0; }

/* --------------------------------------------------------------- expertos */
.expertos {
  background: var(--marino) url("../img/Textura-gotas-servicio-doctor-fugas.png") center/auto repeat;
  color: #fff;
  padding: 54px 0 48px;
  text-align: center;
}
.expertos__titulo {
  font-size: clamp(1.9rem, 4.5vw, 2.95rem);
  font-weight: 400;
  margin-bottom: 36px;
}
.ventajas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.ventaja img { margin: 0 auto 14px; width: 100px; height: 100px; }
.ventaja h3 {
  font-family: var(--tarjeta);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.sec { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sec__nota {
  font-family: "Roboto", var(--cuerpo);
  font-size: .75rem;
  color: var(--verde);
  max-width: 640px;
  margin: 0;
}

/* -------------------------------------------------------------- descuento */
.descuento {
  background: var(--dorado);
  padding: 24px 0;
}
.descuento .contenedor {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr auto;
  align-items: center;
  gap: 28px;
}
.descuento__titulo {
  font-size: 1.45rem;
  font-weight: 800;
  color: #000;
  margin: 0 0 6px;
}
.descuento__nota { font-size: .8rem; color: #fff; margin: 0; }

/* ------------------------------------------------------------- destacados */
.destacados { padding: 46px 0 0; text-align: center; }
.destacados__titulo {
  font-size: clamp(1.9rem, 4.5vw, 2.95rem);
  font-weight: 600;
  color: var(--marino);
  margin-bottom: 28px;
}
.destacados__caja {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 430px;
}
.destacados__foto {
  background: #d7d7d7 center/cover no-repeat;
  min-height: 300px;
}
.destacados__texto {
  background: var(--verde);
  color: #fff;
  text-align: left;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.destacados__texto h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #000;
  margin: 0;
}
.destacados__texto p { font-size: .95rem; margin: 0; }
.destacados__texto img { width: 116px; height: 33px; }

/* ---------------------------------------------------------------- clientes */
.clientes { padding: 0 0 40px; }
.clientes__banda {
  background: var(--marino);
  color: #fff;
  text-align: center;
  padding: 34px 0;
  margin-bottom: 34px;
}
.clientes__titulo {
  font-size: clamp(1.9rem, 4.5vw, 2.95rem);
  font-weight: 500;
  margin: 0;
}
.clientes__tira {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  padding-inline: 20px;
}
.clientes__tira img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

/* ---------------------------------------------------------------- contacto */
.contacto { padding: 20px 0 56px; text-align: center; }
.contacto__titulo {
  font-size: clamp(1.9rem, 4.5vw, 2.95rem);
  font-weight: 600;
  color: var(--marino-titulo);
  margin-bottom: 4px;
}
.contacto__sub {
  font-family: var(--tarjeta);
  font-size: 1.35rem;
  color: var(--verde);
  margin: 0 0 28px;
}
.contacto__formulario { max-width: 760px; margin-inline: auto; text-align: left; }

/* --------------------------------------------------------------------- pie */
.pie {
  background: var(--marino-hondo);
  color: #fff;
  padding: 44px 0 0;
  font-size: .9rem;
}
.pie .contenedor {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.pie h3 {
  font-family: var(--tarjeta);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.pie a { text-decoration: none; }
.pie a:hover { text-decoration: underline; }
.pie__logo { width: 150px; }
.pie__dato { margin: 0 0 8px; }
.pie__copyright {
  margin-top: 36px;
  padding: 14px 0;
  font-size: .78rem;
  color: #b9c0cc;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ------------------------------------------------------------- flotante wa */
.wasap {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.wasap svg { width: 34px; height: 34px; fill: #fff; }

/* ------------------------------------------------------------------ móvil */
@media (max-width: 1024px) {
  .ventajas { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .hero { grid-template-columns: 1fr 380px; }
  .pie .contenedor { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* En vertical la foto se queda a 4:3: en 16:10 la cámara salía cortada por abajo. */
  .hero__imagen { aspect-ratio: 4 / 3; height: auto; }
  .descuento .contenedor { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .destacados__caja { grid-template-columns: 1fr; }
  .destacados__texto { padding: 32px 24px; }
  .ventajas { grid-template-columns: repeat(2, 1fr); }
  .clientes__tira { gap: 26px; }
  .clientes__tira img { width: 110px; }
  .pie .contenedor { grid-template-columns: 1fr; }
}

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