/* ============ Reset / Base ============ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
  background: #ffffff;
}

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

a { color: #1f4e79; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Paleta ============ */
:root {
  --azul-oscuro: #1f4e79;
  --azul-oscuro-2: #173f63;   /* cuadrito del número */
  --azul-medio: #2e75b6;      /* banner sección */
  --azul-claro: #e8f1f8;      /* zebra filas */
  --azul-bullet: #2e75b6;
  --gris-texto: #333;
  --gris-borde: #d6d6d6;
}

/* ============ Header superior ============ */
.topbar {
  background: var(--azul-oscuro);
  color: #fff;
  padding: 18px 0;
}
.topbar__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar__text h1 {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: bold;
  letter-spacing: 0.2px;
}
.topbar__text p {
  margin: 4px 0 0;
  font-size: clamp(12px, 1.8vw, 14px);
  opacity: 0.9;
}
.topbar__logo-link {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
  transition: transform 0.15s ease;
}
.topbar__logo-link:hover { transform: scale(1.05); }
.topbar__logo {
  width: 70px;
  height: auto;
}
.cover__link {
  display: block;
  line-height: 0;
  transition: transform 0.15s ease;
  width: fit-content;
  margin: 0 auto;
}
.cover__link:hover { transform: scale(1.03); }

/* ============ Contenedor principal ============ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}

/* ============ Intro ============ */
.intro p {
  margin: 0 0 14px;
  text-align: justify;
}
.intro__founders {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 14px;
}
.intro__founders-text p {
  margin: 0 0 12px;
  text-align: justify;
}
.intro__founders-text p:last-child {
  margin-bottom: 0;
}
.intro__founders-lead {
  margin: 0;
  text-align: justify;
}
.intro__founders-photo {
  margin: 0;
  text-align: center;
  align-self: center;
  width: 95%;
}
.intro__founders-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.intro__founders-photo figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
  color: var(--azul-oscuro);
  line-height: 1.3;
}
.intro__founders-photo figcaption span {
  display: inline-block;
  margin-top: 2px;
  font-weight: normal;
  font-style: italic;
  color: #666;
  font-size: 12px;
}

.intro__divider {
  border: none;
  border-top: 1px solid var(--azul-medio);
  margin: 20px 0 24px;
}

/* ============ Servicio (sección) ============ */
.service { margin-bottom: 22px; }

.service__header {
  display: flex;
  align-items: stretch;
  background: var(--azul-medio);
  color: #fff;
  border-radius: 2px;
  overflow: hidden;
}
.service__num {
  background: var(--azul-oscuro-2);
  font-weight: bold;
  font-size: 18px;
  padding: 12px 16px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service__title {
  margin: 0;
  padding: 12px 16px;
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: bold;
  line-height: 1.35;
  flex: 1;
  display: flex;
  align-items: center;
}

.service__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service__list li {
  position: relative;
  padding: 10px 14px 10px 34px;
  font-size: 14px;
  border-bottom: 1px solid #eef3f8;
}
.service__list li:nth-child(odd) {
  background: var(--azul-claro);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--azul-bullet);
}

/* Dos columnas en sección 6 */
.service__list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
}
.service__list--two-col li {
  background: #ffffff !important;
  border-bottom: 1px solid #eef3f8;
}
/* zebra por fila completa (cada par de items en la misma fila comparte color) */
.service__list--two-col li:nth-child(4n+1),
.service__list--two-col li:nth-child(4n+2) {
  background: var(--azul-claro) !important;
}

/* ============ Cover (logo grande al final) ============ */
.cover {
  background: var(--azul-oscuro);
  padding: 20px 24px;
  margin-top: 30px;
  width: 100%;
  text-align: center;
}
.cover img {
  display: block;
  max-width: 320px;
  width: 70%;
  height: auto;
  margin: 0 auto;
}

/* ============ Slogan ============ */
.slogan {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  font-size: clamp(27px, 3.6vw, 33px);
  color: var(--azul-oscuro);
  margin: 28px 0 10px;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--gris-borde);
  margin-top: 24px;
  padding: 18px 24px 28px;
  text-align: center;
  font-size: 13px;
  color: #555;
}
.footer__contact {
  margin: 0 0 6px;
  line-height: 1.8;
  word-wrap: break-word;
}
.footer__contact a { color: #555; }
.footer__contact a:hover { color: var(--azul-oscuro); }
.footer__sep {
  margin: 0 8px;
  color: #aaa;
}
.footer__location {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* ============ Botones flotantes (redes + WhatsApp) ============ */
.floats {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  text-decoration: none;
}
.float-btn svg {
  width: 26px;
  height: 26px;
}

/* WhatsApp un poco más grande (acción principal) */
.float-btn--wa {
  width: 58px;
  height: 58px;
  background: #25D366;
}
.float-btn--wa svg { width: 32px; height: 32px; }

/* Colores marca redes */
.float-btn--web { background: var(--azul-oscuro); }
.float-btn--fb { background: #1877F2; }
.float-btn--in { background: #0A66C2; }
.float-btn--yt { background: #FF0000; }
.float-btn--ig {
  background: radial-gradient(circle at 30% 110%,
    #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%,
    #285AEB 90%);
}

/* ============ Responsive ============ */
@media (max-width: 640px) {
  .topbar__inner {
    padding: 0 16px;
    gap: 12px;
  }
  .topbar__logo { width: 54px; }

  .container { padding: 24px 16px 8px; }

  .intro p { text-align: left; }

  .intro__founders {
    flex-direction: column;
    gap: 14px;
  }
  .intro__founders-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .service__num {
    min-width: 38px;
    padding: 10px 12px;
    font-size: 16px;
  }
  .service__title { padding: 10px 12px; }
  .service__list li { padding: 10px 12px 10px 30px; font-size: 13.5px; }
  .service__list li::before { left: 12px; }

  /* Sección 6 colapsa a 1 columna y se comporta como las demás */
  .service__list--two-col {
    grid-template-columns: 1fr;
  }
  .service__list--two-col li,
  .service__list--two-col li:nth-child(4n+1),
  .service__list--two-col li:nth-child(4n+2) {
    background: #ffffff !important;
  }
  .service__list--two-col li:nth-child(odd) {
    background: var(--azul-claro) !important;
  }

  .cover { padding: 20px 20px; }
  .cover img { width: 80%; max-width: 240px; }

  .footer { padding: 16px 16px 24px; font-size: 12.5px; }
  .footer__sep { margin: 0 6px; }

  /* Dock estilo iOS abajo en móvil */
  .floats {
    right: 12px;
    left: 12px;
    bottom: 12px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  .float-btn {
    width: 46px;
    height: 46px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  }
  .float-btn svg { width: 22px; height: 22px; }
  .float-btn--wa {
    width: 46px;
    height: 46px;
  }
  .float-btn--wa svg { width: 24px; height: 24px; }
  .float-btn:hover { transform: scale(1.05); }

  /* Padding extra al final del body para que el dock no tape contenido */
  body { padding-bottom: 80px; }
}

@media (max-width: 380px) {
  .topbar__text h1 { font-size: 16px; }
  .topbar__logo { width: 46px; }
  .footer__sep { display: block; visibility: hidden; height: 0; margin: 0; }
}
