/* ============================================================
   Cano Elizondo Seguros y Fianzas — hoja de estilos
   Paleta: verde marca #2B7A4B / verde profundo #0E311C
   WhatsApp #25D366 reservado solo para sus botones
   ============================================================ */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #F6F8F4;
  color: #15211A;
  font-family: 'Hanken Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection {
  background: #2B7A4B;
  color: #fff;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.eyebrow {
  color: #2B7A4B;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
}

.eyebrow--light {
  color: #7FCB9B;
}

.watermark {
  position: absolute;
  opacity: 0.07;
  filter: brightness(4) grayscale(1);
  pointer-events: none;
}

.nowrap {
  white-space: nowrap;
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(12, 42, 24, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.55); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Botones WhatsApp ============ */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-wa:hover {
  background: #1DA851;
  transform: translateY(-2px);
}

.btn-wa img {
  display: block;
}

.btn-wa--header {
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 19px;
}

.btn-wa--header:hover {
  transform: translateY(-1px);
}

.btn-wa--header img {
  width: 20px;
  height: 20px;
}

.btn-wa--hero {
  font-size: 17px;
  padding: 17px 30px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.3);
}

.btn-wa--hero img {
  width: 24px;
  height: 24px;
}

.btn-wa--fianzas {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 16px;
  padding: 14px 26px;
}

.btn-wa--fianzas img {
  width: 22px;
  height: 22px;
}

.btn-wa--final {
  position: relative;
  font-size: 18px;
  padding: 18px 38px;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.3);
}

.btn-wa--final img {
  width: 26px;
  height: 26px;
}

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  font-size: 16px;
  padding: 16px 22px;
  animation: floatPulse 3s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.05);
}

.wa-float img {
  width: 26px;
  height: 26px;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #E2EAE3;
}

.header-inner {
  padding-top: 13px;
  padding-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-full {
  height: 50px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #3C463F;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover {
  color: #2B7A4B;
}

/* Botón hamburguesa (solo visible en celular) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #E2EAE3;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #15211A;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* CTA de WhatsApp que solo aparece dentro del menú móvil */
.nav-wa-mobile {
  display: none;
}

/* ============ Hero ============ */

.hero {
  background: linear-gradient(170deg, #0E311C 0%, #0B2616 70%, #0A2114 100%);
  position: relative;
  overflow: hidden;
}

.watermark--hero {
  right: -180px;
  bottom: -220px;
  width: 720px;
}

.hero-inner {
  padding-top: 76px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 590px;
  padding-bottom: 64px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border: 1px solid rgba(143, 203, 163, 0.35);
  color: #9FD4B3;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 8px 16px;
  border-radius: 999px;
}

.hero-badge-dot {
  display: inline-flex;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
}

.hero h1 {
  font-size: clamp(40px, 4.8vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #F4F8F2;
  text-wrap: balance;
}

.hero h1 span {
  color: #7FCB9B;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #B9D2C1;
  margin: 0;
  max-width: 480px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 28px;
  border-right: 1px solid rgba(143, 203, 163, 0.25);
}

.hero-stat--last {
  padding-right: 0;
  border-right: none;
}

.hero-stat strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.hero-stat span {
  font-size: 13.5px;
  color: #9CBBA7;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-photo {
  width: min(100%, 460px);
  height: 520px;
  object-fit: cover;
  border-radius: 260px 260px 0 0;
  display: block;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  border: 6px solid rgba(244, 248, 242, 0.1);
}

.hero-card {
  position: absolute;
  left: 0;
  bottom: 40px;
  background: #fff;
  border-radius: 18px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

.hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EAF3EC;
  color: #2B7A4B;
}

.hero-card-text {
  display: flex;
  flex-direction: column;
}

.hero-card-text strong {
  font-size: 15px;
  color: #15211A;
}

.hero-card-text span {
  font-size: 13px;
  color: #6B756E;
}

/* ============ Marquee ============ */

.marquee-band {
  background: #fff;
  border-bottom: 1px solid #E2EAE3;
  padding: 26px 0;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}

.marquee-label {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #85918A;
  max-width: 150px;
  line-height: 1.5;
}

.marquee-mask {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-track img {
  max-width: 130px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============ Secciones genéricas ============ */

.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.seguros {
  padding-top: 88px;
  padding-bottom: 40px;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head--split h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  color: #15211A;
}

.section-sub {
  margin: 0;
  color: #5A675E;
  font-size: 16px;
  max-width: 360px;
  text-wrap: pretty;
}

.section-head--center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.section-head--center h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  color: #15211A;
}

.section-head--center .section-sub {
  max-width: 480px;
}

/* ============ Tarjetas de seguros ============ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.seguro-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E2EAE3;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.seguro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(12, 42, 24, 0.16);
  border-color: #B7CFBD;
}

.seguro-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.seguro-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 26px 28px;
  flex: 1;
}

.seguro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #0E311C;
  color: #7FCB9B;
  margin-top: -27px;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(12, 42, 24, 0.25);
}

.seguro-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #15211A;
  margin-top: 4px;
}

.seguro-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #5A675E;
}

.seguro-cta {
  margin-top: auto;
  padding-top: 8px;
  color: #2B7A4B;
  font-weight: 700;
  font-size: 15px;
}

/* ============ Fianzas ============ */

.fianzas {
  padding-top: 32px;
  padding-bottom: 88px;
}

.fianzas-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 0;
  background: linear-gradient(160deg, #0E311C, #0A2114);
  border-radius: 28px;
  overflow: hidden;
  align-items: stretch;
  position: relative;
}

.watermark--fianzas {
  left: -100px;
  bottom: -140px;
  width: 420px;
}

.fianzas-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(36px, 5vw, 60px);
  position: relative;
}

.fianzas-copy h3 {
  font-size: clamp(28px, 3vw, 38px);
  color: #F4F8F2;
  text-wrap: balance;
}

.fianzas-copy p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: #B9D2C1;
  max-width: 460px;
  text-wrap: pretty;
}

.fianzas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.fianzas-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #DCEDE2;
  font-size: 16px;
  font-weight: 600;
}

.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(127, 203, 155, 0.18);
  color: #7FCB9B;
  flex-shrink: 0;
}

.fianzas-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* ============ Crea Futuro (Skandia) ============ */

.crea-futuro {
  padding-top: 40px;
  padding-bottom: 88px;
}

.crea-alianza {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #5A675E;
}

.crea-alianza img {
  height: 26px;
  width: auto;
  display: block;
}

.crea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.crea-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid #E2EAE3;
  border-radius: 24px;
  padding: 28px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.crea-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(12, 42, 24, 0.16);
  border-color: #B7CFBD;
}

.crea-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #0E311C;
  color: #7FCB9B;
  box-shadow: 0 8px 20px rgba(12, 42, 24, 0.25);
}

.crea-card strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #15211A;
  margin-top: 4px;
}

.crea-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #5A675E;
  text-wrap: pretty;
}

.crea-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  background: #fff;
  border: 1px solid #E2EAE3;
  border-radius: 24px;
  padding: 30px 36px;
}

.crea-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
  padding-right: 24px;
  border-right: 1px solid #E2EAE3;
}

.crea-spec:last-child {
  border-right: none;
  padding-right: 0;
}

.crea-spec strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #2B7A4B;
}

.crea-spec span {
  font-size: 14px;
  color: #5A675E;
}

.crea-fiscal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0E311C, #0A2114);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 60px);
}

.crea-fiscal-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.crea-fiscal-copy h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
  color: #F4F8F2;
  text-wrap: balance;
}

.crea-fiscal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.crea-fiscal-note {
  margin: 6px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #B9D2C1;
  text-wrap: pretty;
}

/* ============ Por qué nosotros ============ */

.porque-band {
  background: #fff;
  border-top: 1px solid #E2EAE3;
  border-bottom: 1px solid #E2EAE3;
}

.porque-inner {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.porque-title {
  max-width: 560px;
}

.porque-title h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  color: #15211A;
  text-wrap: balance;
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.porque-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 36px;
}

.porque-item--first {
  padding-left: 0;
  border-right: 1px solid #E2EAE3;
}

.porque-item--mid {
  border-right: 1px solid #E2EAE3;
}

.porque-item--last {
  padding-right: 0;
}

.porque-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #D8E6DC;
  line-height: 1;
}

.porque-item strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #15211A;
}

.porque-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: #5A675E;
  text-wrap: pretty;
}

/* En una sola columna las divisiones verticales ya no aplican */
@media (max-width: 700px) {
  .porque-item--first,
  .porque-item--mid {
    border-right: none;
  }
  .porque-item {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ============ Experiencia / Nosotros ============ */

.experiencia {
  background: linear-gradient(160deg, #0E311C, #0A2114);
  position: relative;
  overflow: hidden;
}

.watermark--experiencia {
  right: -140px;
  top: -100px;
  width: 560px;
  opacity: 0.08;
}

.experiencia-inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
  position: relative;
}

.experiencia-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experiencia-copy h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  color: #F4F8F2;
  text-wrap: balance;
}

.experiencia-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #B9D2C1;
  max-width: 480px;
  text-wrap: pretty;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.counter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.counter-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(84px, 9vw, 132px);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #7FCB9B;
}

.counter-dot {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 56px;
  color: #2E5C3F;
}

.counter-caption {
  flex-basis: 100%;
  text-align: center;
  color: #B9D2C1;
  font-size: 16px;
}

/* ============ Aseguradoras aliadas ============ */

.aliadas {
  padding-top: 88px;
  padding-bottom: 88px;
}

.aliadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.aliada-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  background: #fff;
  border: 1px solid #E2EAE3;
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.aliada-card:hover {
  border-color: #B7CFBD;
  box-shadow: 0 12px 32px rgba(12, 42, 24, 0.1);
  transform: translateY(-3px);
}

.aliada-card img {
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ============ CTA final ============ */

.cta-final {
  padding-bottom: 96px;
}

.cta-panel {
  background: linear-gradient(160deg, #0E311C, #0A2114);
  border-radius: 32px;
  padding: clamp(44px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-panel h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  color: #F4F8F2;
  max-width: 680px;
  text-wrap: balance;
  position: relative;
}

.cta-panel p {
  margin: 0;
  font-size: 17px;
  color: #B9D2C1;
  max-width: 460px;
  text-wrap: pretty;
  position: relative;
}

.cta-phone {
  font-size: 14.5px;
  color: #9CBBA7;
  position: relative;
}

.cta-phone a {
  color: #7FCB9B;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ============ Footer ============ */

.site-footer {
  background: #081C10;
  color: #B9D2C1;
}

.footer-grid {
  padding-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  gap: 18px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-full {
  height: 64px;
  width: auto;
  display: block;
}

.footer-brand p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 300px;
  color: #9DB8A6;
  text-wrap: pretty;
}

.footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.footer-facebook:hover {
  color: #7FCB9B;
}

.footer-facebook img {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 50%;
}

.footer-head {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.footer-col a {
  color: #B9D2C1;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
}

.footer-col a:hover {
  color: #fff;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-wa img {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-address {
  font-size: 15px;
  line-height: 1.6;
  color: #9DB8A6;
}

.footer-bottom {
  padding-top: 28px;
  padding-bottom: 28px;
  margin-top: 48px;
  border-top: 1px solid #143222;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #7E9C8A;
}

/* ============================================================
   RESPONSIVE — adaptación para tablet y celular
   ============================================================ */

/* --- Tablet y menús: hasta 900px aparece el menú hamburguesa --- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
    order: 3;
  }

  /* El botón "Cotizar" del escritorio se oculta;
     el de WhatsApp vive ahora dentro del menú desplegable
     (además del botón flotante que siempre está visible). */
  .btn-wa--header {
    display: none;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #E2EAE3;
    box-shadow: 0 18px 40px rgba(12, 42, 24, 0.12);
    padding: 8px 0;
    /* Oculto por defecto, se muestra con .open */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 28px;
    font-size: 16px;
    border-bottom: 1px solid #F0F4F0;
  }

  .nav-wa-mobile {
    display: inline-flex;
    justify-content: center;
    margin: 12px 24px 8px;
    padding: 14px 22px;
    font-size: 16px;
    border-bottom: none !important;
  }

  .nav-wa-mobile img {
    width: 22px;
    height: 22px;
  }
}

/* --- Celular: hasta 600px ajustamos espacios y tamaños --- */
@media (max-width: 600px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand-logo-full {
    height: 42px;
  }

  /* Hero más compacto */
  .hero-inner {
    padding-top: 48px;
    gap: 40px;
  }

  .hero-copy {
    gap: 20px;
    padding-bottom: 48px;
  }

  .hero-photo {
    height: 380px;
    border-radius: 180px 180px 0 0;
  }

  .hero-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: max-content;
    max-width: 92%;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stat {
    padding-right: 18px;
  }

  /* Secciones con menos espacio vertical */
  .seguros {
    padding-top: 56px;
  }

  .porque-inner,
  .experiencia-inner,
  .aliadas {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  /* La cinta de aseguradoras: la etiqueta encima de los logos */
  .marquee-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .marquee-label {
    max-width: none;
  }

  .marquee-mask {
    width: 100%;
  }

  /* Tarjetas de seguros a una sola columna cómoda */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Crea Futuro: specs apiladas sin líneas divisorias verticales */
  .crea-specs {
    flex-direction: column;
    padding: 24px 26px;
  }

  .crea-spec {
    flex: none;
    border-right: none;
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2EAE3;
  }

  .crea-spec:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Aseguradoras: 2 por fila en celular */
  .aliadas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contador de experiencia más equilibrado */
  .counter {
    gap: 18px;
  }

  /* Footer apilado y centrado abajo */
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Botón flotante de WhatsApp algo más compacto */
  .wa-float {
    right: 16px;
    bottom: 16px;
    font-size: 15px;
    padding: 14px 18px;
  }
}

/* --- Pantallas muy pequeñas (≤380px): logos de aliadas a 1 columna --- */
@media (max-width: 380px) {
  .aliadas-grid {
    grid-template-columns: 1fr;
  }
}
