/* Pauta — estilos del sitio. Al cambiar este archivo, subir ?v= en las 4 páginas. */
:root {
  --petroleo-oscuro: #0D3B3A;
  --petroleo: #1B6B6B;
  --naranja: #E8732A;
  --naranja-hover: #CF6220;
  --fondo: #F8F6F2;
  --blanco: #FFFFFF;
  --texto: #1E2A2A;
  --texto-suave: #4A5A5A;
  --borde: #E2DED6;
  --radio: 14px;
  --ancho: 1120px;
  --titulos: "Plus Jakarta Sans", system-ui, sans-serif;
  --cuerpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--petroleo); }
h1, h2, h3 { font-family: var(--titulos); font-weight: 800; line-height: 1.15; color: var(--petroleo-oscuro); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.seccion { padding: 72px 0; }
.seccion--blanca { background: var(--blanco); }
.seccion--oscura { background: var(--petroleo-oscuro); color: #E6F0EF; }
.seccion--oscura h2, .seccion--oscura h3 { color: var(--blanco); }
.bajada { font-size: 1.15rem; color: var(--texto-suave); max-width: 720px; }
.seccion--oscura .bajada { color: #C9DCDA; }
.centrado { text-align: center; }
.centrado .bajada { margin-left: auto; margin-right: auto; }
.etiqueta { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--petroleo); margin-bottom: .6em; }
.seccion--oscura .etiqueta, .hero .etiqueta { color: #8FD3CD; }

/* Marcadores de datos pendientes: visibles a propósito */
.marcador {
  display: inline-block;
  background: #FFF3E8;
  color: #9A4310;
  border: 2px dashed var(--naranja);
  border-radius: 6px;
  padding: 1px 8px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .85em;
  font-weight: 600;
}
.bloque-marcador { display: block; padding: 18px; text-align: center; margin: 0; }

/* Saltar al contenido */
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 12px; top: 12px; z-index: 100; background: var(--blanco); padding: 8px 12px; }

/* Encabezado */
.encabezado { background: var(--fondo); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 50; }
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--titulos); font-weight: 800; font-size: 1.6rem; color: var(--petroleo-oscuro); text-decoration: none; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo img { height: 35px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--texto); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--petroleo); text-decoration: underline; text-underline-offset: 4px; }
.menu-boton { display: none; background: none; border: 0; font: inherit; font-weight: 600; color: var(--petroleo-oscuro); padding: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .menu-boton { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--fondo); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--borde); gap: 4px; }
  .nav.abierto { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .boton { margin-top: 8px; }
}

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--naranja); color: var(--blanco); border: 2px solid var(--naranja);
  font-family: var(--cuerpo); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.boton:hover { background: var(--naranja-hover); border-color: var(--naranja-hover); }
.boton--secundario { background: transparent; color: var(--petroleo-oscuro); border-color: var(--petroleo-oscuro); }
.boton--secundario:hover { background: var(--petroleo-oscuro); color: var(--blanco); border-color: var(--petroleo-oscuro); }
.hero .boton--secundario, .seccion--oscura .boton--secundario { color: var(--blanco); border-color: #8FD3CD; }
.hero .boton--secundario:hover, .seccion--oscura .boton--secundario:hover { background: var(--blanco); color: var(--petroleo-oscuro); }
.nav .boton { padding: 9px 18px; color: var(--blanco); }
.nav .boton:hover { text-decoration: none; color: var(--blanco); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.centrado .botones { justify-content: center; }

/* Hero */
.hero { background: var(--petroleo-oscuro); color: #E6F0EF; padding: 72px 0 80px; }
.hero h1 { color: var(--blanco); max-width: 900px; }
.hero .bajada { color: #C9DCDA; }
.hero-hechos { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; font-size: .95rem; color: #C9DCDA; }
.hero-hechos li::before { content: "✓ "; color: var(--naranja); font-weight: 700; }

/* Grillas y tarjetas */
.grilla { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.grilla--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tarjeta { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; }
.seccion--blanca .tarjeta { background: var(--fondo); }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta .precio { font-family: var(--titulos); font-weight: 800; font-size: 2rem; color: var(--petroleo-oscuro); margin: .2em 0 .4em; }
.tarjeta .precio small { font-family: var(--cuerpo); font-size: .9rem; font-weight: 500; color: var(--texto-suave); }
.tarjeta--destacada { border: 2px solid var(--petroleo); position: relative; }
.tarjeta--destacada::before { content: attr(data-sello); position: absolute; top: -13px; left: 24px; background: var(--petroleo); color: var(--blanco); font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tarjeta .boton { margin-top: 18px; width: 100%; }
.lista-check { list-style: none; padding: 0; margin: 0 0 1em; }
.lista-check li { padding-left: 28px; position: relative; margin-bottom: .5em; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--petroleo); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.lista-check li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* Pasos */
.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pasos li { counter-increment: paso; background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.pasos li::before { content: counter(paso); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--naranja); color: var(--blanco); font-weight: 800; font-family: var(--titulos); margin-bottom: 12px; }
.pasos h3 { margin-bottom: .3em; }
.pasos p { margin: 0; color: var(--texto-suave); }

/* Tablas de precios */
.tabla-envoltorio { overflow-x: auto; margin-top: 28px; border-radius: var(--radio); border: 1px solid var(--borde); background: var(--blanco); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { background: var(--petroleo-oscuro); color: var(--blanco); font-weight: 600; font-size: .95rem; }
tr:last-child td { border-bottom: 0; }
td.monto { font-family: var(--titulos); font-weight: 800; color: var(--petroleo-oscuro); white-space: nowrap; font-size: 1.1rem; }
.nota { font-size: .92rem; color: var(--texto-suave); margin-top: 14px; }

/* Destacado (la pauta va directo a Google) */
.destacado { background: #E7F1F0; border-left: 5px solid var(--petroleo); border-radius: 0 var(--radio) var(--radio) 0; padding: 22px 26px; margin-top: 28px; }
.destacado p:last-child { margin-bottom: 0; }

/* Maqueta ilustrativa (sitio + anuncio) */
.ilustracion { display: grid; gap: 16px; }
.navegador { background: var(--blanco); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.navegador-barra { display: flex; gap: 6px; padding: 10px 12px; background: #E9E6E0; }
.navegador-barra i { width: 10px; height: 10px; border-radius: 50%; background: #C8C3BA; }
.navegador-cuerpo { padding: 18px; }
.raya { height: 10px; border-radius: 6px; background: #E2DED6; margin-bottom: 10px; }
.raya--titulo { height: 18px; width: 70%; background: var(--petroleo-oscuro); }
.raya--corta { width: 45%; }
.raya--boton { height: 28px; width: 38%; background: var(--naranja); border-radius: 999px; margin-top: 14px; }
.anuncio { background: var(--blanco); border-radius: 12px; padding: 16px 18px; color: var(--texto); box-shadow: 0 18px 40px rgba(0,0,0,.25); font-size: .9rem; }
.anuncio b { font-size: .75rem; color: var(--texto); }
.anuncio .anuncio-titulo { color: #1A0DAB; font-size: 1.05rem; margin: 2px 0; }
.anuncio p { margin: 0; color: var(--texto-suave); }
.hero-grilla { display: grid; gap: 48px; grid-template-columns: 1.3fr 1fr; align-items: center; }
@media (max-width: 860px) { .hero-grilla { grid-template-columns: 1fr; } .ilustracion { max-width: 440px; } }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 32px auto 0; }
.faq details { background: var(--blanco); border: 1px solid var(--borde); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; position: relative; padding-right: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--naranja); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--texto-suave); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Contacto y formulario */
.contacto-grilla { display: grid; gap: 40px; grid-template-columns: 1fr 1.1fr; align-items: start; }
@media (max-width: 860px) { .contacto-grilla { grid-template-columns: 1fr; } }
.formulario { background: var(--blanco); color: var(--texto); border-radius: var(--radio); padding: 28px; }
.formulario label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--petroleo-oscuro); }
.formulario .campo { margin-bottom: 18px; }
.formulario input, .formulario select, .formulario textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #CFCAC0; border-radius: 10px; background: var(--blanco); color: var(--texto);
}
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: 3px solid rgba(27,107,107,.25); border-color: var(--petroleo); }
.formulario textarea { min-height: 96px; resize: vertical; }
.formulario .boton { width: 100%; }
.formulario .legal { font-size: .82rem; color: var(--texto-suave); margin: 14px 0 0; }
.formulario .opcional { font-weight: 400; color: var(--texto-suave); }
.form-estado { margin-top: 14px; font-weight: 600; }
.form-estado:empty { display: none; }

/* Pie */
.pie { background: #082928; color: #A9C2C0; padding: 48px 0 32px; font-size: .95rem; }
.pie a { color: #DCEBEA; }
.pie .logo { color: var(--blanco); margin-bottom: 10px; }
.pie-grilla { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { .pie-grilla { grid-template-columns: 1fr; } }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: 6px; }
.pie-legal { border-top: 1px solid #1D4A48; margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Botón flotante de WhatsApp (móvil) */
.wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-flotante svg { width: 30px; height: 30px; fill: #fff; }

.migas { font-size: .9rem; margin-bottom: 14px; color: #A9C9C6; }
.migas a { color: #DCEBEA; }

/* Grilla de 4 tarjetas: 4 en escritorio, 2 en tablet, 1 en celular */
.grilla--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grilla--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grilla--4 { grid-template-columns: 1fr; } }

/* Anuncio de ejemplo grande (hero de la home) */
.anuncio--grande { padding: 26px 28px; font-size: 1rem; }
.anuncio--grande .anuncio-url { display: block; font-size: .85rem; color: var(--texto-suave); margin-top: 2px; }
.anuncio--grande .anuncio-titulo { font-size: 1.5rem; line-height: 1.25; margin: 8px 0 10px; }
.anuncio--grande .anuncio-enlaces { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--borde); color: #1A0DAB; font-size: .95rem; }

/* Tablas de precios en celular: cada fila es una tarjeta */
@media (max-width: 640px) {
  .tabla-envoltorio { overflow: visible; border: 0; background: none; border-radius: 0; }
  .tabla-envoltorio table { min-width: 0; }
  .tabla-envoltorio thead { display: none; }
  .tabla-envoltorio tbody, .tabla-envoltorio tr, .tabla-envoltorio td { display: block; }
  .tabla-envoltorio tr { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px 18px; margin-bottom: 12px; }
  .seccion--blanca .tabla-envoltorio tr { background: var(--fondo); }
  .tabla-envoltorio td, .tabla-envoltorio tr:last-child td { padding: 0; border: 0; }
  .tabla-envoltorio td:first-child { font-weight: 700; color: var(--petroleo-oscuro); font-size: 1.05rem; }
  .tabla-envoltorio td + td { margin-top: 4px; color: var(--texto-suave); }
  .tabla-envoltorio td.monto { margin-top: 10px; font-size: 1.35rem; color: var(--petroleo-oscuro); white-space: normal; }
  .tabla-envoltorio td[data-etiqueta]::before { content: attr(data-etiqueta); display: block; font-family: var(--cuerpo); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--petroleo); margin-bottom: 2px; }
}

/* Campo trampa contra spam: fuera de pantalla e inalcanzable por teclado/lector de pantalla */
.campo-trampa { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "+ IVA" junto al precio: más chico que el monto principal */
h1 small, td.monto small { font-size: .5em; font-weight: 600; opacity: .8; }
td.monto small { display: block; margin-top: 2px; }
