/* Rivera Industries Services · estilos de la página */

:root {
  --navy: #121C33;
  --navy-2: #1C2742;
  --oro: #C9A55C;
  --oro-oscuro: #8F6F2E;
  --metal: #E9ECF0;
  --metal-medio: #5E6676;
  --texto: #1B2333;
  --texto-suave: #4F5868;
  --linea: #C9CFD8;
  --blanco: #FFFFFF;
  --titulos: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --cuerpo: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Letras */
.etiqueta {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro-oscuro);
}
.oscuro .etiqueta { color: var(--oro); }
.titulo {
  margin: 0 0 18px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
}
.oscuro .titulo { color: var(--blanco); }
.intro { margin: 0 0 24px; color: var(--texto-suave); max-width: 640px; }
.oscuro .intro { color: #C3C9D4; }
.seccion { padding: 56px 0; }
.oscuro { background: var(--navy); color: var(--blanco); }
.gris { background: var(--metal); }

/* Botones */
.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  font-family: var(--cuerpo);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.boton-oro { background: var(--oro); color: var(--navy); }
.boton-oro:hover { background: #D8B871; }
.boton-borde { border-color: rgba(255,255,255,0.55); color: var(--blanco); background: transparent; }
.boton-borde:hover { border-color: var(--blanco); background: rgba(255,255,255,0.06); }
.boton-navy { background: var(--navy); color: var(--blanco); }
.boton-navy:hover { background: var(--navy-2); }
.boton svg { flex-shrink: 0; }
.par-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.par-botones .boton { padding: 12px 6px; gap: 8px; font-size: 14px; letter-spacing: 0.05em; white-space: nowrap; }

/* Barra de arriba */
.barra {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--blanco);
  border-bottom: 1px solid rgba(201,165,92,0.35);
}
.barra .contenedor { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { width: 46px; height: 46px; object-fit: contain; }
.marca span { font-family: var(--titulos); font-weight: 700; font-size: 20px; letter-spacing: 0.05em; }
.menu-escritorio { display: none; gap: 26px; align-items: center; }
.menu-escritorio a { text-decoration: none; font-weight: 600; font-size: 15px; color: #E4E8F2; }
.menu-escritorio a:hover { color: var(--oro); }
.menu-escritorio .boton { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.boton-menu {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--blanco); cursor: pointer; padding: 0;
}

/* Menú abierto (celular) */
.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--blanco);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.menu-movil.abierto { display: flex; }
.menu-movil .barra { position: static; }
.menu-movil nav { padding: 10px 20px 0; display: flex; flex-direction: column; }
.menu-movil nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  font-family: var(--titulos); font-weight: 700; font-size: 28px; text-transform: uppercase;
}
.menu-movil nav a span { color: var(--oro); font-size: 20px; }
.menu-movil .pie-menu { margin-top: auto; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 10px; }
.redes { display: flex; gap: 12px; }
.redes a {
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco);
}
.redes a:hover { border-color: var(--oro); color: var(--oro); }
.menu-movil .redes { justify-content: center; margin-top: 6px; }

/* Portada */
.portada { background: var(--navy); color: var(--blanco); }
.portada .contenedor {
  min-height: calc(100svh - 67px);
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  padding-bottom: 24px;
}
.portada .etiqueta { color: var(--oro); font-size: 12px; letter-spacing: 0.24em; margin-bottom: 10px; }
.portada h1 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(50px, 14vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
}
.portada-visual {
  position: relative;
  flex-grow: 1;
  min-height: 200px;
  margin: 18px -20px 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #2A3550 0%, #1A2440 55%, #0F1730 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portada-visual .logo-grande { width: min(46%, 220px); height: auto; opacity: 0.95; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45)); }
.portada-visual img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada-visual .pie-foto {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 13px; font-weight: 600; color: var(--blanco);
  background: rgba(18,28,51,0.75); padding: 5px 10px;
}
.portada-acciones { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.portada .boton-oro { font-size: 16px; }

/* Franja de confianza */
.franja { background: var(--metal); }
.franja .rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea); }
.franja .dato { background: var(--metal); padding: 24px 14px 22px 0; }
.franja .dato:nth-child(even) { padding-left: 16px; }
.franja .dato::before { content: ""; display: block; width: 24px; height: 2px; background: var(--oro); margin-bottom: 12px; }
.franja strong { display: block; font-family: var(--titulos); font-weight: 700; font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--navy); }
.franja span { display: block; font-size: 14px; color: var(--texto-suave); margin-top: 4px; }

/* Lo que hacemos */
.servicios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.servicio {
  position: relative;
  min-height: 150px;
  padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #6B7383 0%, #4A5264 100%);
  color: var(--blanco);
  text-decoration: none;
}
.servicio svg { opacity: 0.9; }
.servicio h3 { margin: 0; font-family: var(--titulos); font-weight: 700; font-size: 23px; line-height: 1.05; text-transform: uppercase; }
.servicio p { margin: 4px 0 0; font-size: 13px; color: #E4E8F2; }
.servicio.destacado { background: var(--navy); }
.servicio.destacado p { color: var(--oro); font-weight: 600; }

/* Nuestro trabajo + Instagram */
.ig-cabeza { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-weight: 700; }
.ig-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-rejilla a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--navy-2); }
.ig-rejilla img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ig-rejilla a:hover img { transform: scale(1.04); }
.ig-vacio {
  border: 1px solid rgba(255,255,255,0.18);
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.ig-vacio p { margin: 0; color: #C3C9D4; max-width: 520px; }
.boton-ig { border-color: var(--oro); color: var(--oro); background: transparent; letter-spacing: 0.06em; font-size: 14px; }
.boton-ig:hover { background: rgba(201,165,92,0.1); }

/* Cómo trabajamos */
.pasos { border-top: 2px solid var(--navy); margin: 0; padding: 0; list-style: none; }
.pasos li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.pasos .num { font-family: var(--titulos); font-weight: 700; font-size: 28px; color: var(--oro-oscuro); width: 36px; flex-shrink: 0; line-height: 1.1; }
.pasos strong { display: block; font-size: 17px; }
.pasos span { display: block; color: var(--texto-suave); font-size: 15px; }

/* Preguntas frecuentes */
.preguntas { border-top: 2px solid var(--navy); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 18px 0;
  font-weight: 700; font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; color: var(--oro-oscuro); font-size: 22px; font-weight: 400; line-height: 1; }
.preguntas details[open] summary::after { content: "−"; }
.preguntas p { margin: 0 0 18px; color: var(--texto-suave); max-width: 680px; }

/* Contacto (pie) */
.pie { background: var(--navy); color: #C3C9D4; padding: 48px 0 28px; }
.pie .logo-pie { width: 60px; height: 60px; object-fit: contain; margin-bottom: 14px; }
.pie h2 { margin: 0; font-family: var(--titulos); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; color: var(--blanco); }
.pie .lema { margin: 4px 0 0; color: var(--oro); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; }
.pie-datos { margin-top: 26px; display: grid; gap: 16px; }
.pie-datos .rotulo { font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: #8B929C; text-transform: uppercase; }
.pie-datos a, .pie-datos span.valor { color: var(--blanco); }
.pie-datos .telefono { font-family: var(--titulos); font-weight: 600; font-size: 28px; text-decoration: none; }
.pie .redes { margin-top: 26px; }
.pie .derechos { margin: 30px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; color: #8B929C; }

/* Páginas interiores (cotizar, nosotros, gracias) */
.cabeza-pagina { background: var(--navy); color: var(--blanco); padding: 28px 0 32px; border-bottom: 3px solid var(--oro); }
.cabeza-pagina h1 { margin: 0; font-family: var(--titulos); font-weight: 700; font-size: clamp(42px, 7vw, 64px); line-height: 0.95; text-transform: uppercase; }
.cabeza-pagina p { margin: 12px 0 0; color: #C3C9D4; max-width: 620px; }
.volver { display: inline-flex; align-items: center; gap: 6px; color: #C3C9D4; text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.volver:hover { color: var(--oro); }

/* Formulario de cotización */
.formulario {
  background: var(--blanco);
  padding: 22px 18px;
  display: grid;
  gap: 18px;
  max-width: 720px;
  border-top: 3px solid var(--oro);
}
.formulario .dos { display: grid; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .campo > .rotulo, .campo legend { font-weight: 700; font-size: 15px; }
.campo .ayuda { font-size: 13px; color: var(--texto-suave); margin-top: -2px; }
.campo input[type="text"], .campo input[type="tel"], .campo textarea {
  font: inherit; font-size: 16px;
  padding: 12px;
  border: 1px solid var(--linea);
  background: #F7F8FA;
  color: var(--texto);
  border-radius: 0;
  width: 100%;
}
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--oro); outline-offset: 0; border-color: var(--oro); }
.campo textarea { resize: vertical; min-height: 110px; }
fieldset.campo { border: 0; margin: 0; padding: 0; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opciones span {
  display: inline-block;
  border: 1px solid var(--linea);
  padding: 10px 15px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  background: var(--blanco);
}
.opciones input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--blanco); }
.opciones input:focus-visible + span { outline: 2px solid var(--oro); }
.subir-fotos {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 14px;
  border: 2px dashed #8B929C;
  background: #F7F8FA;
  color: var(--navy);
  text-align: center;
  cursor: pointer;
}
.subir-fotos:hover { border-color: var(--navy); }
.subir-fotos input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.subir-fotos strong { font-size: 15px; }
.miniaturas { display: flex; flex-wrap: wrap; gap: 6px; }
.miniaturas img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--linea); }
.oculto { display: none !important; }
.estado-envio { margin: 0; font-weight: 600; color: var(--oro-oscuro); }
.error-envio { margin: 0; font-weight: 600; color: #B42318; }
.nota-whatsapp { margin: 18px 0 0; text-align: center; color: var(--texto-suave); font-size: 15px; max-width: 720px; }
.nota-whatsapp a { font-weight: 700; color: var(--navy); }

/* Nosotros */
.texto-largo { max-width: 720px; }
.texto-largo p { color: var(--texto-suave); font-size: 17px; }

/* ===== Computadora ===== */
@media (min-width: 900px) {
  .contenedor { padding: 0 40px; }
  .seccion { padding: 88px 0; }
  .boton-menu { display: none; }
  .menu-escritorio { display: flex; }

  .portada .contenedor {
    min-height: calc(100vh - 67px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
    padding-top: 64px;
    padding-bottom: 64px;
    align-content: center;
  }
  .portada .etiqueta { grid-column: 1; grid-row: 1; align-self: end; font-size: 13px; }
  .portada h1 { grid-column: 1; grid-row: 2; }
  .portada-acciones { grid-column: 1; grid-row: 3; align-self: start; margin-top: 32px; max-width: 460px; }
  .portada-visual { grid-column: 2; grid-row: 1 / 4; margin: 0; min-height: 460px; }

  .franja .rejilla { grid-template-columns: repeat(4, 1fr); }
  .franja .dato, .franja .dato:nth-child(even) { padding: 34px 24px 32px; }
  .franja .dato:first-child { padding-left: 0; }

  .servicios { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .servicio { min-height: 220px; padding: 22px; }
  .servicio h3 { font-size: 30px; }

  .ig-rejilla { grid-template-columns: repeat(6, 1fr); gap: 6px; }

  .dos-columnas { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .dos-columnas .titulo { position: sticky; top: 100px; }

  .pie-datos { grid-template-columns: repeat(3, 1fr); gap: 24px 40px; }
  .formulario { padding: 32px; }
  .formulario .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
