/* ===================== */
/* VARIABLES DE COLOR    */
/* ===================== */
:root {
  --verde-oscuro: #1B5E20;
  --bs-success-text-emphasis: var(--verde-oscuro);
  --verde-medio: #2E7D32;
  --verde-claro: #A5D6A7;
  --blanco: #ffffff;
  --gris-oscuro: #212121;
  --gris-claro: #E8F5E9;
  --amarillo-hover: #fcdf87;
  --gris-border: #495057;
}

/* ===================== */
/* TEMA OSCURO BOOTSTRAP */
/* ===================== */
[data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-color: #dee2e6;
  --bs-body-bg: #212529;
  --bs-emphasis-color: #fff;
  --bs-secondary-color: rgba(222, 226, 230, 0.75);
  --bs-secondary-bg: #343a40;
  --bs-tertiary-bg: #2b3035;
  --bs-primary-text-emphasis: #66BB6A;
  --bs-success-text-emphasis: var(--verde-oscuro);
  --bs-info-text-emphasis: #6edff6;
  --bs-warning-text-emphasis: #fcdf87;
  --bs-danger-text-emphasis: #ea868f;
  --bs-link-color: var(--verde-medio);
  --bs-link-hover-color: #A5D6A7;
  --bs-code-color: #e685b5;
  --bs-highlight-bg: #664d03;
  --bs-border-color: var(--gris-border);
  --bs-form-valid-color: var(--verde-oscuro);
  --bs-form-invalid-color: #ea868f;
}

/* ===================== */
/* RESET SUAVE           */
/* ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.qs-fullbleed {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.qs-section {
  position: relative;
}

.qs-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  padding: 8px;
}

.qs-grid {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.qs-grid img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 40%;
  background: rgba(0, 0, 0, 0.08);
  filter: saturate(0.95) contrast(0.95);
  opacity: 0.35;
}

.qs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
  pointer-events: none;
}

.qs-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .qs-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .qs-bg {
    padding: 6px;
  }

  .qs-grid {
    gap: 6px;
  }
}

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 1.05rem + 0.2vw, 18px);
}

body {
  background-color: var(--gris-claro);
  color: var(--gris-oscuro);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== */
/* TIPOGRAFÍA */
/* ========== */
h1,
h2 {
  color: var(--verde-oscuro);
  font-family: "Kanit", sans-serif;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

p,
li,
.card-text,
.navbar,
.nav-link,
.dropdown-item,
.btn,
.form-control,
.form-select,
label,
.form-check-label {
  font-size: 1rem;
}

small,
.small,
footer .footer-text {
  font-size: 0.95rem;
}

.deip {
  color: black !important;
}

/* ========== */
/* NAVBAR     */
/* ========== */
.navbar {
  background-color: var(--verde-medio) !important;
}

.navbar-brand,
.nav-link {
  color: var(--blanco) !important;
}

.navbar-brand img {
  max-height: 40px;
  width: 40px;
  height: auto;
  object-fit: contain;
  margin-right: 10px;
}

.navbar-brand span {
  white-space: nowrap;
  font-weight: 600;
}

.nav-link {
  margin-left: 5%;
}

.nav-link:hover,
.dropdown-item:hover {
  color: var(--amarillo-hover) !important;
}

/* ============== */
/* BOTÓN WHATSAPP */
/* ============== */
.btn-wsp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 100px;
  background-color: #25d366;
  color: var(--blanco);
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-wsp:hover {
  transform: translateY(-3px);
  color: #0df053;
  background-color: var(--blanco);
}

.whatsapp-icon {
  background-image: url("/static/images/WhatsApp-Icon.png");
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========== */
/* TARJETAS   */
/* ========== */
.card-custom {
  background-color: var(--verde-claro);
  color: var(--gris-oscuro);
  border: 4px solid var(--verde-oscuro);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--verde-oscuro);
}

/* ============== */
/* BOTONES        */
/* ============== */
.btn-primary-custom {
  position: relative;
  overflow: hidden;
  background-color: var(--verde-medio);
  border: none;
  color: var(--blanco);
  transition: background-color 0.2s;
}

.btn-primary-custom:hover {
  background-color: #388E3C;
}

.btn-primary-custom::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.btn-primary-custom:active::after {
  transform: scale(4);
  opacity: 1;
  transition: 0s;
}

.btn-outline-success-custom {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  border: none;
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-outline-success-custom:hover {
  background-color: var(--verde-medio);
}

.btn-success-custom {
  background-color: var(--blanco);
  color: var(--verde-medio);
  border: 2px solid var(--verde-medio);
  padding: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-success-custom:hover {
  background-color: var(--verde-medio);
  color: var(--blanco);
}

/* ============ */
/* FORMULARIOS  */
/* ============ */
.form-control,
.form-select {
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--amarillo-hover);
  outline-offset: 2px;
}

/* ============ */
/* CARRUSEL     */
/* ============ */
.carousel-item {
  height: 500px;
  text-align: center;
}

.carousel-item>img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Carrusel de la home en full-width */
.home-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-hero .carousel,
.home-hero .carousel-inner,
.home-hero .carousel-item {
  width: 100%;
}

@media (max-width: 576px) {

  .home-hero .carousel-item,
  .home-hero .carousel-item img {
    height: 300px;
  }
}

/* ============== */
/* FONDO SECCIÓN  */
/* ============== */

.section_planes {
  position: relative;
  overflow: hidden;
}

.fondo_planes {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover !important;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 100px;
  height: 435px;
  position: absolute;
  z-index: 0;
  opacity: 0.25;
}

.fondo_planes {
  background-image: url("../images/planespersonas.png");
  background-position: left center;
}

.section-planes .container,
.section-planes h1,
.section-planes p {
  position: relative;
  z-index: 1;
}

.fondo {
  background-image: none;
  padding: 4rem 1rem;
  position: relative;
}

/* ============== */
/* FOOTER         */
/* ============== */
footer {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  padding: 2rem 0;
}

footer img {
  max-height: 90px;
  height: auto;
  object-fit: contain;
}

footer .footer-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

footer h5 {
  font-size: 1.2rem;
  font-weight: 700;
}

footer p {
  margin-bottom: 0.3rem;
}

footer .footer-link {
  color: var(--blanco);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

footer .footer-link:hover {
  color: var(--amarillo-hover);
}

@media (max-width: 768px) {

  footer .col-md-8,
  footer .col-md-4 {
    text-align: center !important;
    justify-content: center;
  }

  footer .col-md-8 {
    margin-bottom: 1rem;
  }

  footer img {
    margin-bottom: 0.5rem;
  }
}

/* Fila DAES: logo + texto */
footer .daes-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  /* si no cabe, baja a dos líneas */
}

footer .daes-row .daes-logo {
  height: 56px;
  /* ajusta 48–64px según gusto */
  max-height: none;
  /* evita el tope global del footer */
  width: auto;
  object-fit: contain;
  background: #fff;
  /* opcional: mejora legibilidad del escudo */
  padding: .25rem .35rem;
  /* opcional: pequeño margen blanco */
  border-radius: .25rem;
  /* opcional */
}

footer .daes-note {
  font-size: .95rem;
  /* texto discreto */
  line-height: 1.4;
  opacity: .9;
}

@media (max-width:768px) {
  footer .daes-row {
    justify-content: center;
    text-align: center;
  }

  footer .daes-note {
    max-width: 36ch;
  }
}

/* Texto del carrusel: fondo suave y legible */
.caption-box {
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  left: 5%;
  right: auto;
  bottom: 8%;
  max-width: 60ch;
}

.caption-box h5,
.caption-box p {
  color: #fff;
}

/* Mostrar texto también en móvil (opcional) */
@media (max-width: 576px) {
  .carousel-caption.caption-box {
    display: block !important;
    /* quita d-none en móvil si lo quieres visible */
    padding: 0.75rem 1rem;
    bottom: 6%;
    left: 4%;
    right: 4%;
  }

  .caption-box h5 {
    font-size: 1.1rem;
  }

  .caption-box p {
    font-size: 0.95rem;
  }

  .caption-box .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
  }
}

/* Tarjetas de la sección "Quiénes pueden..." */
.plan-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

/* Burbuja de icono */
.icon-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

/* Footer moderno */
.site-footer {
  background-color: var(--verde-oscuro);
}

.site-footer .footer-cta {
  background: linear-gradient(90deg, #2E7D32, #388E3C);
}

.site-footer .footer-link {
  color: #ffffff;
  text-decoration: none;
  opacity: .9;
}

.site-footer .footer-link:hover {
  color: var(--amarillo-hover);
  opacity: 1;
}

.site-footer .footer-social {
  font-size: 1.25rem;
  color: #fff;
  opacity: .9;
}

.site-footer .footer-social:hover {
  color: var(--amarillo-hover);
  opacity: 1;
}

.site-footer .footer-text {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer compacto */
.footer-compact {
  background-color: var(--verde-oscuro);
  padding: 1rem 0;
}

.footer-compact .small {
  line-height: 1.45;
}

/* Iconos de contacto: un poco más grandes */
.footer-compact .contact-line i {
  font-size: 1.25rem;
  /* antes ~1rem */
  vertical-align: -2px;
  /* alinea mejor con el texto */
  margin-right: .5rem;
}

/* Botón/Badge de Instagram con gradiente oficial */
.insta-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  /* Gradiente oficial de Instagram */
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%,
      #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.insta-badge i {
  color: #fff;
  font-size: 1.1rem;
}

.insta-badge:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

@media (max-width: 768px) {
  .footer-compact .col-md-6 {
    text-align: center !important;
  }
}

.icon-person {
  max-width: 90%;
  height: auto;
}

/* Igualar altura de las tarjetas de beneficios */
.benefit-card {
  display: flex;
  align-items: center;
  /* centra verticalmente el texto */
  height: 100%;
  min-height: 160px;
  /* ajusta este valor a tu gusto */
}

/* Opcional: valores por breakpoint */
@media (min-width: 992px) {
  .benefit-card {
    min-height: 180px;
  }
}

.hero-banner-sucursal {
  position: relative;
  isolation: isolate;
  color: var(--blanco);
  min-height: 220px;
  height: clamp(220px, 28vw, 360px);
  background: linear-gradient(120deg, rgba(27, 94, 32, .95), rgba(46, 125, 50, .92));
}

.hero-banner-sucursal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: .28;
  mix-blend-mode: multiply;
  z-index: -1;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
}

@media (max-width:576px) {
  .hero-banner-sucursal .display-5 {
    font-size: 1.9rem;
  }

  .hero-wave {
    height: 48px;
  }
}