/* Ciudad Conectada — internet de la Mutual Municipal de Carcarañá
   Hoja de estilos del sitio. Sin dependencias externas. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1d3a5c;
  --navy-deep: #122a45;
  --navy-ink: #0f2238;
  --sky: #5ea0e0;
  --sky-soft: #dcebfa;
  --sky-faint: #eef5fc;
  --blue: #2a6eb5;
  --paper: #f3f6fa;
  --white: #ffffff;
  --ink: #172033;
  --ink-soft: #4b5563;
  --rule: #cfdbe8;
  --live: #d7263d;
  --open: #1f8a4c;
  --open-soft: #e3f4ea;
  --closed-soft: #f1f3f6;

  --font: "Archivo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-0: 1rem;      /* 18px */
  --fs-1: 1.25rem;
  --fs-2: 1.5625rem;
  --fs-3: 1.95rem;
  --fs-4: 2.44rem;
  --fs-5: 3.05rem;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 6px;
  --dock-h: 60px;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
@media (max-width: 640px) { html { font-size: 106.25%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: var(--dock-h);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }
h1 { font-size: var(--fs-5); font-weight: 800; font-stretch: 116%; letter-spacing: -.02em; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-2); }
h4 { font-size: var(--fs-1); }
@media (max-width: 640px) { h1 { font-size: 2.3rem; } h2 { font-size: 2rem; } }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: var(--fs-1); color: var(--ink-soft); max-width: 58ch; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.2em; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; line-height: 1.2;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--sky-faint); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 290px; max-width: 58vw; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; padding: .55em .75em; border-radius: var(--radius); }
.nav a:hover { background: var(--sky-faint); }
.nav .btn { margin-left: 8px; padding: .55em 1em; }
.nav .btn-primary { color: #fff; }
.nav .btn-primary:hover { background: var(--navy-deep); }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: var(--radius); padding: .4em .7em; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4em; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 16px; gap: 2px; box-shadow: 0 12px 24px rgba(18,42,69,.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: .8em .6em; border-radius: var(--radius); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Portada */
.hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 48px; align-items: center; padding: 56px 0 48px; }
.hero h1 { margin-bottom: .4em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero .since { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 500; margin-bottom: 18px; }
.hero .since img { width: 40px; height: 40px; }
.hero-media img { border-radius: 12px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; box-shadow: 0 24px 48px -24px rgba(18,42,69,.45); }
.hero-media figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 32px; }
}

/* Planes */
.planes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.planes li { border: 1px solid var(--rule); border-top: 4px solid var(--sky); border-radius: 10px; padding: 24px 24px 22px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plan-vel { margin: 0; font-size: var(--fs-3); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.plan-nombre { margin: 0; font-size: var(--fs-1); }
.plan-detalle { margin: 0 0 8px; color: var(--ink-soft); flex: 1; }
.plan-precio { margin: 0 0 14px; }
.plan-precio strong { font-size: var(--fs-2); color: var(--navy); }
.plan-precio span { color: var(--ink-soft); }
.planes .btn { align-self: flex-start; }
.planes-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .planes { grid-template-columns: 1fr; } }

/* Pasos (instalación) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: paso; }
.steps li { counter-increment: paso; padding-top: 14px; border-top: 2px solid var(--navy); }
.steps li::before { content: counter(paso); display: inline-block; font-weight: 800; font-stretch: 118%; font-size: var(--fs-3); color: var(--sky); line-height: 1; margin-bottom: 8px; }
.steps h3 { font-size: var(--fs-1); margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 18px; } }

/* Segura: lista de servicios */
.segura-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.segura-item { padding: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.05); }
.segura-item h3 { font-size: var(--fs-1); margin-bottom: .3em; }
.segura-item p { margin: 0; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; background: rgba(94,160,224,.2); color: #d6e8fb; margin-bottom: 14px; }
@media (max-width: 900px) { .segura-grid { grid-template-columns: 1fr; } }

/* Secciones */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-1); margin: 0; }
@media (max-width: 640px) { .section { padding: 44px 0; } }

/* Fichas (fibra / satelital) */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 0; }
.service h2 { font-size: var(--fs-3); }
.service.flip .service-media { order: 2; }
.service-media img { border-radius: 10px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.service-media figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
.service .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.service ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-soft); }
.service li { margin-bottom: .3em; }
.meta { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px 10px; align-content: start; font-size: .95rem; }
.meta svg { width: 20px; height: 20px; color: var(--sky); margin-top: 2px; }
.meta dt { grid-column: 1; }
.meta dd { grid-column: 2; margin: 0; }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .service.flip .service-media { order: 0; }
}

/* Banda azul (TV / Segura) */
.band { background: var(--navy-deep); color: #fff; }
.band + .band { border-top: 1px solid rgba(255,255,255,.14); }
.band.alt { background: var(--navy-ink); }
.band h2, .band h3 { color: #fff; }
.band p { color: #d6e2ee; }
.band .section-head p { color: #b7cde6; }
.band a:not(.btn) { color: #d6e8fb; }
.cc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 8px; }
.cc-item { padding-top: 18px; border-top: 2px solid rgba(255,255,255,.35); }
.cc-item h3 { font-size: var(--fs-1); }
.cc-item p { margin-bottom: .6em; }
.cc-logo { width: 240px; margin-bottom: 20px; border-radius: var(--radius); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.band .meta { color: #d6e2ee; }
.band .meta svg { color: var(--sky); }
@media (max-width: 900px) { .cc-grid { grid-template-columns: 1fr; gap: 20px; } }

/* FM Mutual */
.fm { background: var(--paper); }
.fm-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 32px; }
.fm-dial { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; font-stretch: 122%; line-height: 1; color: var(--navy); letter-spacing: -.03em; margin: 0 0 .15em; }
.fm-dial small { display: block; font-size: var(--fs-1); font-weight: 600; font-stretch: 104%; letter-spacing: 0; color: var(--ink-soft); margin-top: 4px; }
.fm-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.fm-banner img { border-radius: 8px; }
@media (max-width: 900px) { .fm-card { grid-template-columns: 1fr; padding: 24px; } }

/* Noticias */
.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.news li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.news img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.news h3 { font-size: var(--fs-1); margin-bottom: .3em; }
.news p { margin: 0 0 .4em; color: var(--ink-soft); }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news li { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.contact .meta { font-size: var(--fs-0); gap: 12px 12px; }
.contact h3 { margin-top: 1.2em; font-size: var(--fs-1); }
.contact h3:first-child { margin-top: 0; }
.phones { list-style: none; margin: 0; padding: 0; }
.phones li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.phones li:first-child { border-top: 0; }
.phones span { color: var(--ink-soft); }
.form { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; }
.form label { display: block; font-weight: 600; margin: 0 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; padding: .65em .8em; border: 1px solid #b9c7d6; border-radius: var(--radius); background: #fff; color: var(--ink); margin-bottom: 16px; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .9rem; color: var(--ink-soft); margin: 0 0 14px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }

/* Pie */
.site-footer { background: var(--navy-ink); color: #c5d3e2; padding: 40px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer .fbrand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: #fff; font-weight: 600; font-stretch: 104%; line-height: 1.25; max-width: 320px; }
.site-footer .fbrand img { width: 64px; height: 64px; flex: none; }
.site-footer h4 { color: #fff; font-size: var(--fs-0); margin-bottom: .5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #dbe7f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: .88rem; color: #8fa6bf; }
.site-footer .legal p { margin: 0 0 .3em; max-width: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* Barra fija de la radio */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--dock-h);
  background: var(--navy-deep); color: #fff; border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -8px 24px rgba(15,34,56,.25);
}
.dock .wrap { display: flex; align-items: center; gap: 14px; height: 100%; }
.dock-play {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.dock-play svg { width: 20px; height: 20px; }
.dock-play .ico-pause, .dock.is-playing .dock-play .ico-play { display: none; }
.dock.is-playing .dock-play .ico-pause { display: block; }
.dock-play[disabled] { opacity: .6; cursor: wait; }
.dock-title { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dock-title strong { font-weight: 700; font-stretch: 106%; white-space: nowrap; }
.dock-title span { font-size: .85rem; color: #b7cde6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-live { display: inline-flex; align-items: center; gap: 6px; }
.dock-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8aa3bd; }
.dock.is-playing .dock-live::before { background: var(--live); box-shadow: 0 0 0 3px rgba(215,38,61,.25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(215,38,61,.08); } }
.dock-vol { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.dock-vol input { width: 120px; accent-color: var(--sky); }
.dock-vol svg { width: 18px; height: 18px; color: #b7cde6; }
.dock-ext { font-size: .85rem; color: #b7cde6; white-space: nowrap; }
.dock-ext a { color: #d6e8fb; }
@media (max-width: 640px) {
  .dock-vol, .dock-ext { display: none; }
}
