/* =========================================================================
   Landing page INCASE LTDA — hero, about, features, footer
   Misma estructura que Elite Ltda, en la paleta verde de INCASE.
   Paleta corporativa: #1B8A5A (brand) + #5ECB91 (accent)
   ========================================================================= */

:root {
  --c-brand:        #1B8A5A;
  --c-brand-strong: #146443;
  --c-brand-deep:   #0E3A28;
  --c-accent:       #5ECB91;
  --c-accent-soft:  #DFF3E7;
  --c-ink:          #5C5A59;
  --c-paper:        #DDDEEA;
  --c-paper-raised: #FFFFFF;
}

* { font-family: 'Roboto', sans-serif; box-sizing: border-box; }

body.index-page {
  margin: 0; padding: 0; display: block;
  background: var(--c-paper);
  min-height: 100svh;
  overflow-x: hidden;
}

/* ---------- Hero con video de fondo ---------- */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 72px 20px 88px;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(1.1);
}
/* Se ve mientras carga el video, y es el fondo definitivo en movil. */
.hero-bg-poster {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--c-brand-deep);
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.32) saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg,
    rgba(14,58,40,0.90) 0%,
    rgba(27,138,90,0.62) 45%,
    rgba(94,203,145,0.22) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 820px;
  width: 100%;
}

/* Logo cuadrado (552x552) sobre placa blanca: sirve igual si luego
   lo cambias por un PNG con fondo transparente. */
.hero-logo {
  width: 132px; height: 132px;
  max-width: 40vw; max-height: 40vw;
  margin: 0 auto 26px;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
}
.hero-section .hero-tagline {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--c-accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-section h1 {
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  overflow-wrap: break-word;
}
.hero-section h1 b { color: var(--c-accent); }
.hero-section p {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  margin: 0 auto 8px;
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  max-width: 620px;
}

/* Lista de features dentro del hero */
.hero-features {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: center;
  margin: 30px 0 0;
  list-style: none; padding: 0;
}
.hero-features li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .92rem; color: rgba(255,255,255,.85);
}
.hero-features li i { color: var(--c-accent); font-size: 1rem; }

.hero-section .btn-group {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center;
  margin-top: 36px;
}
.btn-hero-primary {
  background: var(--c-accent);
  color: var(--c-brand-strong);
  border: 2px solid var(--c-accent);
  padding: 14px 32px;
  font-size: 1.05rem; font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 8px 24px rgba(94,203,145,.35);
}
.btn-hero-primary:hover {
  background: #8FE0B4;
  border-color: #8FE0B4;
  color: var(--c-brand-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(94,203,145,.45);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  padding: 14px 32px;
  font-size: 1.05rem; font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s ease;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Indicador scroll */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 8px); }
}

/* ---------- Contenedor comun ---------- */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Seccion Nosotros ---------- */
.about-section {
  background: #fff;
  padding: clamp(48px, 8vw, 80px) 20px;
}
.about-section h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--c-brand);
  margin-bottom: 20px;
  text-align: center;
}
.about-section h2::after,
.features-section h2::after {
  content: ''; display: block;
  width: 60px; height: 4px;
  background: var(--c-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.about-section p {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: #555; max-width: 800px;
  margin: 0 auto; text-align: center;
}

/* Mision, compromiso, alcance */
.about-mission {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: clamp(32px, 5vw, 48px) auto;
}
.mission-card {
  background: #fff;
  border-radius: 14px;
  padding: clamp(24px, 4vw, 32px) 24px;
  text-align: center;
  border: 1px solid rgba(27,138,90,.10);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(27,138,90,.12);
  border-color: var(--c-accent);
}
.mission-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
  color: #fff; font-size: 1.4rem;
}
.mission-card h4 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--c-brand);
  margin-bottom: 10px;
}
.mission-card p {
  font-size: .92rem; line-height: 1.6;
  color: #666; margin: 0;
}

/* Datos de la empresa */
.about-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: clamp(28px, 5vw, 40px) auto 0;
}
.info-card {
  background: var(--c-paper);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(27,138,90,.10);
  text-align: center;
}
.info-card .info-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-brand-strong);
  color: var(--c-accent);
  font-size: 1.3rem;
}
.info-card h4 {
  font-size: .85rem; font-weight: 700;
  color: var(--c-brand);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.info-card p {
  font-size: .92rem; color: #666;
  margin: 0; line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ---------- Features ---------- */
.features-section {
  background: var(--c-paper);
  padding: clamp(48px, 8vw, 80px) 20px;
}
.features-section h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--c-brand);
  margin-bottom: clamp(28px, 5vw, 50px);
  text-align: center;
}
/* auto-fit: 3 columnas en escritorio, 2 en tablet, 1 en movil. Sin Bootstrap. */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: clamp(28px, 5vw, 40px) 24px;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(27,138,90,.10);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27,138,90,.12);
  border-color: var(--c-accent);
}
.feature-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-accent) 100%);
  color: #fff; font-size: 1.8rem;
}
.feature-card h5 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: .95rem; line-height: 1.6;
  color: #666; margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-brand-strong);
  color: rgba(255,255,255,.8);
  padding: 40px 20px 20px;
  text-align: center;
}
.site-footer .footer-logo {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
}
.site-footer p { font-size: .85rem; margin: 4px 0; }
.site-footer .footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin: 16px 0; flex-wrap: wrap;
}
.site-footer .footer-links a {
  color: var(--c-accent);
  text-decoration: none;
  font-size: .85rem; font-weight: 500;
}
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .footer-bottom {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .78rem; color: rgba(255,255,255,.5);
}
.site-footer .watermark {
  margin-top: 12px;
  font-size: .76rem;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}
.site-footer .watermark strong {
  color: var(--c-accent);
  font-weight: 700;
  letter-spacing: .03em;
}
.site-footer .watermark a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer .watermark a:hover {
  color: var(--c-accent);
  text-decoration: underline;
}
.site-footer .watermark a[href*="wa.me"] { color: #25D366; }
.site-footer .watermark a[href*="wa.me"]:hover { color: #1ebe5a; }
.site-footer .watermark .fab.fa-whatsapp { margin-right: 2px; }

/* ---------- Responsivo ---------- */
@media (max-width: 767px) {
  /* El video no se descarga en movil (ver el media del <source> en index.php);
     esto solo evita que ocupe espacio si el navegador lo pinta igual. */
  .hero-bg-video { display: none; }
}

@media (max-width: 576px) {
  .hero-section { min-height: 88svh; padding: 56px 18px 72px; }
  .hero-logo { width: 108px; height: 108px; margin-bottom: 20px; }
  .hero-features { flex-direction: column; align-items: center; gap: 10px; }
  .hero-features li { font-size: .88rem; }
  .hero-section .btn-group { flex-direction: column; margin-top: 28px; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; padding: 13px 20px; }
  .about-mission, .about-info, .features-grid { gap: 16px; }
  .site-footer .footer-links { gap: 14px; }
}
