/* Informática Dalla Fontana: colores del logo y de la vidriera (verde y negro) */
:root {
  --verde: #35c935;
  --verde-oscuro: #1f9a1f;
  --negro: #0d110d;
  --negro-2: #161b16;
  --texto: #1b1f1b;
  --texto-suave: #5b635b;
  --gris: #f2f4f1;
  --borde: #e2e6e1;
  --radio: 14px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--texto); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-oscuro); }
h1, h2, h3 { font-family: Saira, Inter, sans-serif; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
.ancho { width: min(1160px, 100% - 32px); margin-inline: auto; }
.antetitulo { font-family: Saira, sans-serif; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 14px; color: var(--verde-oscuro); margin: 0 0 8px; }

/* botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; font-size: 16px; }
.boton:hover { transform: translateY(-2px); }
.boton svg { width: 20px; height: 20px; fill: currentColor; }
.boton-verde { background: var(--verde); color: #04140a; }
.boton-verde:hover { background: #45dc45; }
.boton-claro { border-color: rgba(255, 255, 255, .7); color: #fff; }
.boton-claro:hover { background: rgba(255, 255, 255, .12); }
.boton-oscuro { background: var(--negro); color: #fff; }
.boton-chico { padding: 9px 18px; font-size: 15px; }

/* cabecera */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.boton) { color: var(--texto); text-decoration: none; font-weight: 500; font-size: 16px; }
.menu a:not(.boton):hover { color: var(--verde-oscuro); }
.menu-boton { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-boton span { display: block; width: 24px; height: 2px; background: var(--texto); margin: 5px 0; transition: .2s; }

/* portada */
.portada { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--negro); }
.portada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.portada-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(5,10,5,.92) 100%); }
.portada-texto { position: relative; padding: 120px 0 64px; }
.portada .antetitulo { color: var(--verde); }
.portada h1 { font-size: clamp(38px, 6.5vw, 72px); font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.bajada { font-size: clamp(17px, 2vw, 21px); max-width: 620px; margin: 0 0 28px; color: #e6ebe6; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }

/* secciones */
.seccion { padding: 88px 0; }
.seccion-oscura { background: var(--negro); color: #eef2ee; }
.seccion-oscura .antetitulo { color: var(--verde); }
.seccion-gris { background: var(--gris); }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; box-shadow: var(--sombra); }
.tarjeta svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: #e6f8e6; stroke: var(--verde-oscuro); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.tarjeta p { margin: 0; color: var(--texto-suave); }

/* carrusel */
.carrusel { position: relative; margin-top: 28px; }
.carrusel-pista { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.carrusel figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radio); overflow: hidden; background: var(--negro-2); }
.carrusel img { height: 420px; width: auto; object-fit: cover; }
.carrusel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; font-size: 15px; font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.carrusel-flecha { position: absolute; top: calc(50% - 26px); width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--negro); font-size: 34px; line-height: 1; display: grid; place-items: center; box-shadow: var(--sombra); }
.carrusel-flecha.anterior { left: -10px; }
.carrusel-flecha.siguiente { right: -10px; }

.antes-despues { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.antes-despues figure { margin: 0; }
.antes-despues img { border-radius: var(--radio); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.antes-despues figcaption { margin-top: 10px; color: #c9d1c9; font-size: 15px; }
.marca { display: inline-block; background: var(--verde); color: #04140a; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 999px; margin-right: 6px; text-transform: uppercase; letter-spacing: .05em; }
.marca-roja { background: #e5533d; color: #fff; }

/* nosotros */
.dos-columnas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.foto-redonda { border-radius: 24px; box-shadow: var(--sombra); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-width: 440px; }
.puntos { padding: 0; list-style: none; margin: 20px 0 0; }
.puntos li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.puntos li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--verde); box-shadow: inset 0 0 0 4px #e6f8e6; }

/* local */
.galeria-local { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin-top: 28px; }
.galeria-local img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radio); }
.galeria-local img:first-child { grid-row: span 2; }
.datos-local { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.dato-local { background: #fff; border-radius: var(--radio); padding: 24px; border: 1px solid var(--borde); }
.dato-local p { margin: 0 0 10px; color: var(--texto-suave); }
.abierto { font-weight: 600; color: var(--verde-oscuro) !important; }
.abierto.cerrado { color: #b3452f !important; }
.mapa { margin-top: 20px; border-radius: var(--radio); overflow: hidden; height: 320px; background: #dde3dc; display: grid; place-items: center; }
.mapa iframe { width: 100%; height: 100%; border: 0; }

/* contacto y pie */
.contacto { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.contacto p { color: #c9d1c9; margin: 0; }
.contacto-botones { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
.pie { background: #080a08; color: #9aa39a; padding: 32px 0 96px; font-size: 14px; }
.pie-fila { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pie img { width: 110px; height: auto; background: #fff; padding: 10px; border-radius: 10px; }
.pie p { margin: 0; }
.pie a { color: var(--verde); }

.whatsapp-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.whatsapp-flotante svg { width: 32px; height: 32px; fill: #fff; }

/* celular */
@media (max-width: 860px) {
  .menu-boton { display: block; }
  .menu { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--borde); padding: 8px 16px 16px; display: none; }
  .menu.abierto { display: flex; }
  .menu a:not(.boton) { padding: 12px 0; border-bottom: 1px solid var(--borde); }
  .menu .boton { margin-top: 12px; }
  .seccion { padding: 64px 0; }
  .dos-columnas { grid-template-columns: 1fr; gap: 28px; }
  .foto-redonda { max-width: 100%; aspect-ratio: 4 / 3; object-position: center 25%; }
  .datos-local { grid-template-columns: 1fr; }
  .galeria-local { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .galeria-local img:first-child { grid-column: span 2; grid-row: auto; }
  .carrusel img { height: 340px; }
  .carrusel-flecha { display: none; }
  .antes-despues { grid-template-columns: 1fr; }
  .contacto-botones { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html, .carrusel-pista { scroll-behavior: auto; }
  .boton:hover { transform: none; }
}
