/* ==========================================================================
   Adán Ruiz Seguros — Landing Page
   Paleta oficial: Azul Confianza #1F3A5F · Terracota Cálida #C1622D
                    Ámbar Suave #E8A33D · Crema #F7F3EC · Tinta #1C1C1C
   ========================================================================== */

:root {
  --azul: #1f3a5f;
  --azul-oscuro: #16293f;
  --terracota: #c1622d;
  --terracota-oscuro: #a34f22;
  --ambar: #e8a33d;
  --crema: #f7f3ec;
  --crema-suave: #efe8db;
  --tinta: #1c1c1c;
  --blanco: #ffffff;

  --font-titulos: "Fraunces", Georgia, serif;
  --font-texto: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radio: 18px;
  --radio-chico: 10px;
  --sombra: 0 20px 45px -20px rgba(28, 20, 10, 0.25);
  --contenedor: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-titulos);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.contenedor {
  width: 100%;
  max-width: var(--contenedor);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font: 700 12px/1 var(--font-texto);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 14px;
}

.eyebrow--claro {
  color: var(--ambar);
}

section {
  padding: 88px 0;
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font: 600 15px/1 var(--font-texto);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primario {
  background: var(--terracota);
  color: var(--blanco);
  box-shadow: 0 14px 30px -10px rgba(193, 98, 45, 0.55);
}

.btn-primario:hover {
  background: var(--terracota-oscuro);
}

.btn-secundario {
  background: transparent;
  color: var(--azul);
  border: 1.5px solid rgba(31, 58, 95, 0.3);
}

.btn-secundario:hover {
  border-color: var(--azul);
  background: rgba(31, 58, 95, 0.06);
}

.btn-sobre-azul {
  background: var(--ambar);
  color: var(--azul-oscuro);
}

.btn-sobre-azul:hover {
  background: #f0b258;
}

.btn-ghost-azul {
  background: transparent;
  color: var(--crema);
  border: 1.5px solid rgba(247, 243, 236, 0.4);
}

.btn-ghost-azul:hover {
  border-color: var(--crema);
  background: rgba(247, 243, 236, 0.08);
}

.grupo-botones {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__logo-texto {
  font: 700 15px/1.1 var(--font-titulos);
  color: var(--azul);
}

.header__logo-texto span {
  display: block;
  font: 600 10px/1 var(--font-texto);
  letter-spacing: 0.08em;
  color: var(--terracota);
  text-transform: uppercase;
  margin-top: 3px;
}

.header .btn {
  padding: 12px 22px;
  font-size: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 100px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  color: var(--azul);
}

.hero__subtitulo {
  font-size: 18px;
  color: #3d3d3d;
  max-width: 540px;
}

.hero__confianza {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  font-size: 13px;
  color: #5c5c5c;
}

.hero__confianza .puntos {
  display: flex;
  gap: 6px;
}

.hero__confianza .puntos span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ambar);
  display: inline-block;
}

.hero__foto-wrap {
  position: relative;
}

.hero__foto-marco {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  box-shadow: var(--sombra);
}

.hero__foto-marco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__foto-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--crema);
  text-align: center;
  padding: 24px;
}

.hero__foto-placeholder .monograma {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 243, 236, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 26px var(--font-titulos);
}

.hero__foto-placeholder small {
  font-size: 12px;
  opacity: 0.75;
  max-width: 220px;
}

.hero__badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--blanco);
  border-radius: var(--radio-chico);
  padding: 14px 18px;
  box-shadow: var(--sombra);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
}

@media (max-width: 900px) {
  .hero__badge {
    left: 0;
  }
}

.hero__badge .icono {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ambar);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-oscuro);
  font-weight: 700;
}

.hero__badge .texto {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--tinta);
}

.hero__badge strong {
  display: block;
  font-size: 13.5px;
}

/* ---------- Dolores / sensibilización ---------- */

.dolores {
  background: var(--azul);
  color: var(--crema);
}

.dolores h2 {
  color: var(--blanco);
  font-size: clamp(26px, 3.2vw, 36px);
  max-width: 640px;
}

.dolores__intro {
  color: rgba(247, 243, 236, 0.75);
  max-width: 560px;
  font-size: 16px;
}

.dolores__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

@media (max-width: 900px) {
  .dolores__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .dolores__grid {
    grid-template-columns: 1fr;
  }
}

.dolor-card {
  background: rgba(247, 243, 236, 0.06);
  border: 1px solid rgba(247, 243, 236, 0.14);
  border-radius: var(--radio);
  padding: 26px 22px;
}

.dolor-card .marca {
  color: var(--ambar);
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
}

.dolor-card p {
  font-size: 15px;
  color: rgba(247, 243, 236, 0.88);
  margin: 0;
}

.dolores__cierre {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 243, 236, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dolores__cierre p {
  margin: 0;
  font-size: 17px;
  max-width: 520px;
  color: var(--crema);
}

.dolores__cierre strong {
  color: var(--ambar);
}

/* ---------- Pilares ---------- */

.pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .pilares__grid {
    grid-template-columns: 1fr;
  }
}

.pilar-card {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 34px 28px;
  box-shadow: 0 16px 40px -24px rgba(28, 28, 28, 0.18);
}

.pilar-card .num {
  font-family: var(--font-titulos);
  font-size: 15px;
  color: var(--terracota);
  font-weight: 700;
  margin-bottom: 16px;
}

.pilar-card h3 {
  font-size: 20px;
  color: var(--azul);
}

.pilar-card p {
  font-size: 15px;
  color: #4a4a4a;
  margin: 0;
}

.seccion__encabezado {
  max-width: 620px;
}

.seccion__encabezado h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--azul);
}

.seccion__encabezado p {
  font-size: 16px;
  color: #4a4a4a;
}

/* ---------- Quién soy ---------- */

.sobre-mi {
  background: var(--crema-suave);
}

.sobre-mi__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .sobre-mi__inner {
    grid-template-columns: 1fr;
  }
}

.sobre-mi__foto {
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--sombra);
  background: linear-gradient(160deg, var(--terracota) 0%, var(--ambar) 100%);
  position: relative;
}

.sobre-mi__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-mi__foto .hero__foto-placeholder .monograma {
  border-color: rgba(255, 255, 255, 0.5);
}

.sobre-mi__texto h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--azul);
}

.sobre-mi__texto p {
  font-size: 16px;
  color: #3d3d3d;
}

.sobre-mi__firma {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sobre-mi__firma .linea {
  width: 46px;
  height: 2px;
  background: var(--terracota);
}

.sobre-mi__firma span {
  font: 600 13px var(--font-texto);
  color: var(--azul);
  letter-spacing: 0.02em;
}

/* ---------- Servicios ---------- */

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

@media (max-width: 900px) {
  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .servicios__grid {
    grid-template-columns: 1fr;
  }
}

.servicio-card {
  background: var(--blanco);
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: var(--radio);
  padding: 28px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.servicio-card:hover {
  border-color: var(--terracota);
  transform: translateY(-3px);
}

.servicio-card .icono {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(31, 58, 95, 0.08);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}

.servicio-card h3 {
  font-size: 17px;
  color: var(--azul);
  margin-bottom: 8px;
}

.servicio-card p {
  font-size: 14.5px;
  color: #545454;
  margin: 0;
}

/* ---------- Cómo funciona ---------- */

.proceso {
  background: var(--crema);
}

.proceso__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  counter-reset: paso;
}

@media (max-width: 900px) {
  .proceso__grid {
    grid-template-columns: 1fr;
  }
}

.paso {
  position: relative;
  padding-left: 4px;
}

.paso .circulo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--crema);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 18px var(--font-titulos);
  margin-bottom: 18px;
}

.paso h3 {
  font-size: 18px;
  color: var(--azul);
  margin-bottom: 8px;
}

.paso p {
  font-size: 14.5px;
  color: #4a4a4a;
  margin: 0;
}

/* ---------- Confianza / testimonios ---------- */

.confianza__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

@media (max-width: 900px) {
  .confianza__grid {
    grid-template-columns: 1fr;
  }
}

.testimonio-card {
  background: var(--blanco);
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: 0 16px 40px -24px rgba(28, 28, 28, 0.18);
}

.testimonio-card .comillas {
  font-family: var(--font-titulos);
  font-size: 34px;
  color: var(--ambar);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.testimonio-card p {
  font-size: 15px;
  color: #4a4a4a;
  font-style: italic;
}

.testimonio-card .autor {
  font: 600 13px var(--font-texto);
  color: var(--azul);
  font-style: normal;
  margin-top: 14px;
}

.testimonio-card .autor small {
  display: block;
  font-weight: 400;
  color: #7a7a7a;
  margin-top: 2px;
}

/* ---------- CTA final ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  color: var(--crema);
  text-align: center;
}

.cta-final__inner {
  max-width: 620px;
  margin: 0 auto;
}

.cta-final h2 {
  color: var(--blanco);
  font-size: clamp(28px, 4vw, 42px);
}

.cta-final p {
  color: rgba(247, 243, 236, 0.8);
  font-size: 17px;
}

.cta-final .grupo-botones {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--tinta);
  color: rgba(247, 243, 236, 0.7);
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo img {
  height: 30px;
}

.footer__logo span {
  font: 700 14px var(--font-titulos);
  color: var(--crema);
}

.footer nav {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

.footer__copy {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  font-size: 12.5px;
  color: rgba(247, 243, 236, 0.45);
  text-align: center;
}
