/* Humanos con amor — hoja de estilos */
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --verde: #23BD40;
  --texto: #3a3a3a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
  color: var(--texto);
  font-size: 17px;
  line-height: 1.65;
  background: #fff;
}

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

/* ---------- Cabecera / menú ---------- */
.cabecera {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 40px;
}
.cabecera nav > ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}
.cabecera nav a {
  text-decoration: none;
  color: #000;
  font-size: 17.5px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: .2px;
}
.cabecera nav li.actual > a { color: var(--verde); }
.cabecera nav a:hover { color: var(--verde); }

/* Desplegable Servicios */
.con-submenu { position: relative; }
.con-submenu > a .flecha {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  transition: transform .2s;
}
.submenu {
  list-style: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #fff;
  border-top: 2px solid var(--verde);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
  padding: 6px 0;
}
.con-submenu:hover .submenu,
.con-submenu:focus-within .submenu { opacity: 1; visibility: visible; }
.con-submenu:hover > a .flecha { transform: rotate(180deg); }
.submenu li a {
  display: block;
  padding: 10px 18px;
  color: #000;
  font-size: 16px;
}
.submenu li a:hover { background: #f3f7f4; color: var(--verde); }

/* Cabecera sólida en páginas interiores */
.cabecera.solida {
  position: static;
  background: #fff;
  border-bottom: 1px solid #eee;
}

/* ---------- Portada (hero) ---------- */
.portada {
  position: relative;
  min-height: 95vh;
  background-image: url('fondo-del-mar.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 60px;
}
.portada::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .3;
}
.portada > * { position: relative; }

#mariposa {
  width: 190px;
  height: 190px;
  margin: 0 auto 10px;
}

.portada h1 {
  font-size: 72px;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: 1px;
  word-spacing: 10px;
  color: var(--verde);
  text-shadow: 0 0 30px rgba(0,0,0,.6);
}
.portada .telefono {
  margin-top: 18px;
  font-size: 25px;
  font-weight: 600;
  color: var(--verde);
}
.portada .telefono a { color: inherit; text-decoration: none; }

/* Hero pequeño en páginas interiores */
.portada.chica { min-height: 46vh; padding-top: 80px; }
.portada.chica h1 { font-size: 52px; line-height: 60px; }

/* ---------- Contenido ---------- */
.seccion { padding: 70px 20px; }
.contenedor { max-width: 1140px; margin: 0 auto; }

.seccion h2 {
  font-size: 38px;
  font-weight: 500;
  color: var(--verde);
  margin-bottom: 24px;
  text-align: center;
}
.seccion h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.seccion h4 { font-size: 21px; font-weight: 600; margin-top: 14px; text-align: center; }
.seccion p { margin-bottom: 16px; }
.seccion ul { margin: 0 0 16px 24px; }
.seccion li { margin-bottom: 10px; }

.tres-columnas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}
.dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.tres-columnas img, .dos-columnas img, .galeria img {
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  width: 100%;
  object-fit: cover;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.galeria.dos { grid-template-columns: repeat(2, 1fr); }

.centrado { text-align: center; }
.centrado img { margin: 0 auto; }

.fondo-suave { background: #f4f9f5; }

.boton {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 34px;
  background: var(--verde);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: background .2s;
}
.boton:hover { background: #1a9832; }

/* Tarjetas de contacto */
.tarjetas-contacto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.tarjeta {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 38px 26px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.tarjeta .icono { font-size: 40px; margin-bottom: 14px; }
.tarjeta h3 { font-size: 20px; margin-bottom: 8px; }
.tarjeta a { color: var(--texto); text-decoration: none; word-break: break-word; }
.tarjeta a:hover { color: var(--verde); }

/* ---------- Pie ---------- */
.pie {
  background: #0b2d4d;
  color: #dfe9f2;
  padding: 50px 20px 30px;
}
.pie .columnas {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.pie img { margin: 0 auto; }
.pie .cita { font-style: italic; line-height: 1.6; }
.pie .cita .autor { display: block; margin-top: 8px; font-style: normal; font-size: 15px; color: #a9c2d8; }
.pie .derechos {
  text-align: center;
  margin-top: 34px;
  font-size: 14.5px;
  color: #a9c2d8;
}

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  .cabecera { padding: 14px 18px; }
  .cabecera nav > ul { justify-content: center; gap: 20px; }
  .portada h1 { font-size: 40px; line-height: 48px; word-spacing: 4px; }
  .portada.chica h1 { font-size: 34px; line-height: 42px; }
  #mariposa { width: 140px; height: 140px; }
  .tres-columnas, .dos-columnas, .galeria, .galeria.dos,
  .tarjetas-contacto, .pie .columnas { grid-template-columns: 1fr; }
  .seccion { padding: 50px 16px; }
  .seccion h2 { font-size: 30px; }
}
