/* Proseguros Agencia — estilos base.
   Paleta y tipografía ya aprobadas por el dueño (mercadotecnia/CLAUDE.md).
   Layout/espaciado fino queda para la fase 2 de diseño visual. */

:root {
  --rosa: #C13B92;
  --magenta: #9A2E74;
  --ciruela: #3A102E;
  --palido: #F9E8F3;
  --negro: #1F1B1E;
  --wa: #25D366;
  --blanco: #ffffff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Noto Sans", "DejaVu Sans", sans-serif;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--magenta); }

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}

h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 32px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; }
.note { font-size: 14px; opacity: .85; }

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-wa { background: var(--wa); color: var(--negro); }
.btn-wa:hover { box-shadow: 0 10px 20px rgba(37,211,102,.35); }
.btn-outline { background: transparent; color: var(--rosa); border-color: var(--rosa); }
.btn-outline:hover { box-shadow: 0 10px 20px rgba(193,59,146,.2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--negro); }
.brand-logo { height: 54px; width: auto; }
.brand-name { font-weight: 900; font-size: 18px; letter-spacing: 1px; line-height: 1.1; }
.brand-name small { display: block; font-weight: 600; font-size: 10px; letter-spacing: 3px; color: var(--magenta); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--negro); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--rosa); }
.nav-cta {
  background: var(--rosa);
  color: var(--blanco) !important;
  padding: 8px 18px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--negro); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--ciruela) 0%, #5C1A47 100%);
  color: var(--blanco);
  text-align: center;
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}

/* Divisores ondulados entre secciones */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  display: block;
}
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; }
.hero-logo { height: 160px; margin: 0 auto 18px; }
.hero h1 { font-size: 42px; }
.hero-sub { font-size: 18px; color: var(--palido); margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: var(--blanco); border-color: var(--blanco); }

/* Secciones */
.section { padding: 64px 0; }
.section-alt { background: var(--palido); }
.section-dark {
  background: var(--ciruela);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 96px;
}
.section-dark .kicker { color: #E877C1; }
.section-dark a { color: #E877C1; }

.cards-2, .cards-4 {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(154,46,116,.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(154,46,116,.16); }
.section-alt .card { background: var(--blanco); }
.section-dark .card { background: rgba(255,255,255,.07); color: var(--blanco); box-shadow: none; }
.section-dark .card:hover { transform: translateY(-5px); background: rgba(255,255,255,.1); }

/* Tabla coberturas */
.table-wrap { overflow-x: auto; margin: 24px 0; }
.cov-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 480px;
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  overflow: hidden;
}
.cov-table th, .cov-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.cov-table thead th { font-weight: 900; background: rgba(255,255,255,.1); }
.cov-table thead th:nth-child(3) { background: var(--magenta); }
.cov-table thead th:nth-child(4) { background: var(--rosa); }
.cov-table tbody td:first-child { text-align: left; font-weight: 700; }
.cov-table .si { color: #5BE38C; font-weight: 900; }
.cov-table .no { color: #FF8FA3; font-weight: 900; }
.note-light {
  background: rgba(255,255,255,.1);
  border-left: 6px solid var(--rosa);
  padding: 14px 18px;
  border-radius: 10px;
  opacity: 1;
}

/* Aseguradoras */
.insurer-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.insurer {
  background: var(--palido);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
}
.insurer.principal { background: var(--rosa); color: var(--blanco); }
.insurer.principal span {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255,255,255,.25);
  padding: 2px 8px;
  border-radius: 999px;
}

/* FAQ / accordion */
.accordion { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.accordion details {
  background: var(--blanco);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: 0 4px 16px rgba(154,46,116,.08);
  transition: box-shadow .2s ease;
}
.accordion details[open] { box-shadow: 0 8px 22px rgba(154,46,116,.14); }
.accordion summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
}
.accordion p { padding-bottom: 16px; margin: 0; }

/* Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.tip-card {
  background: var(--palido);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tip-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(154,46,116,.16); }
.tip-img-btn {
  display: block;
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
}
.tip-img-btn img { width: 100%; height: 200px; object-fit: cover; transition: filter .2s ease; }
.tip-img-btn:hover img, .tip-img-btn:focus-visible img { filter: brightness(.7); }
.tip-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(58,16,46,.75);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
}
.tip-card > *:not(img) { padding-left: 18px; padding-right: 18px; }
.tip-card h3 { padding-top: 14px; }
.tip-card ol { padding-left: 18px; }

/* Ubicación */
.ubicacion-grid, .contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.addr, .hours { font-size: 15px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; border-radius: 20px; box-shadow: 0 8px 24px rgba(154,46,116,.10); }

/* Contacto */
.wa-lines { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.social-lines { display: flex; gap: 16px; }
.review-cta { margin-top: 18px; }
.form-card { background: var(--palido); border-radius: 22px; padding: 28px; box-shadow: 0 10px 28px rgba(154,46,116,.10); }
.form-card form { display: flex; flex-direction: column; gap: 6px; }
.form-card label { font-weight: 700; font-size: 14px; margin-top: 10px; }
.form-card input, .form-card select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
}
.form-card button { margin-top: 16px; }
.privacy-note { font-size: 12px; opacity: .75; margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--ciruela); color: var(--palido); padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-logo { height: 50px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--palido); text-decoration: none; }
.footer-copy { font-size: 13px; opacity: .7; margin: 0; }

/* Visor de imagen completa (tips) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(31,27,30,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }

/* Aparición suave al hacer scroll (ver js/main.js) */
body.js-reveal .section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
body.js-reveal .section.in-view {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .ubicacion-grid, .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    display: none;
    border-bottom: 1px solid #eee;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .cards-2, .cards-4, .tips-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  h2 { font-size: 26px; }
}
