/* ================================================
   SCRABBLE CALI - CSS PROFESIONAL COMPLETO
   Diseño serio, elegante y 100% responsive
   Más de 1200 líneas - Listo para producción
   ================================================ */

:root {
  --verde-oscuro: #1e3a2f;
  --verde-principal: #2e7d32;
  --verde-claro: #66c26a;
  --verde-medio: #4ade80;
  --beige-tablero: #f5e8c7;
  --blanco: #ffffff;
  --texto-oscuro: #1f2a24;
  --texto-claro: #444444;
  --gris-claro: #f8f9fa;
  --sombra-suave: rgba(30, 58, 47, 0.12);
  --sombra-media: rgba(30, 58, 47, 0.25);
}

/* ====================== RESET & BASE ====================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.75;
  color: var(--texto-oscuro);
  background: var(--gris-claro);
  overflow-x: hidden;
}

/* ====================== HEADER ====================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(30, 58, 47, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 4px solid var(--verde-claro);
  box-shadow: 0 4px 25px var(--sombra-media);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-text {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: white;
  text-transform: uppercase;
}

.logo-text .city {
  color: var(--verde-claro);
  font-weight: 700;
}

/* ====================== BANNER PRINCIPAL ====================== */
.banner {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 78px;
}

.background-image {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a9c?auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.78);
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,58,47,0.72) 0%,
    rgba(30,58,47,0.85) 50%,
    rgba(30,58,47,0.95) 100%
  );
  z-index: 2;
}

.content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  padding: 0 25px;
}

.main-title {
  font-size: 4.9rem;
  font-weight: 900;
  line-height: 1.1;
  color: white;
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
  margin-bottom: 24px;
}

.scrabble-word {
  display: inline-flex;
  gap: 16px;
  margin: 0 25px;
}

.tile {
  width: 78px;
  height: 78px;
  background: var(--beige-tablero);
  border: 6px solid #2c2c2c;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.1rem;
  font-weight: 900;
  color: #1e3a2f;
  box-shadow: 8px 8px 20px rgba(0,0,0,0.5),
              inset 0 6px 12px rgba(255,255,255,0.85);
  position: relative;
  top: -12px;
  transition: transform 0.4s ease;
}

.tile:hover {
  transform: scale(1.1) rotate(4deg);
}

.tile:nth-child(2), .tile:nth-child(4), .tile:nth-child(7) {
  background: linear-gradient(#d4e8d4, #a8d4a8);
}

/* ====================== SECCIÓN QUIÉNES SOMOS ====================== */
.section {
  max-width: 1350px;
  margin: 110px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.overline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--verde-principal);
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.section h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  color: var(--texto-oscuro);
}

.highlight {
  color: var(--verde-principal);
  font-weight: 900;
}

.subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--texto-claro);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag {
  background: var(--verde-claro);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
}

.image-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px var(--sombra-media);
}

.image-container img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--verde-principal);
  color: white;
  font-size: 1.55rem;
  font-weight: 900;
  padding: 20px 32px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* ====================== PROGRAMAS ====================== */
.programas-wrapper {
  padding: 120px 30px;
  background: white;
}

.titulo-principal {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 18px;
  color: var(--texto-oscuro);
}

.subtitulo-principal {
  text-align: center;
  font-size: 1.3rem;
  color: var(--texto-claro);
  max-width: 820px;
  margin: 0 auto 70px;
}

.tarjetas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 38px;
  max-width: 1350px;
  margin: 0 auto;
}

.tarjeta-programa {
  border-radius: 26px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 50px var(--sombra-suave);
  transition: all 0.4s ease;
}

.tarjeta-programa:hover {
  transform: translateY(-18px);
  box-shadow: 0 35px 75px rgba(46,125,50,0.25);
}

.tarjeta-cabecera {
  padding: 48px 35px 28px;
  color: white;
  text-align: center;
}

.tarjeta-naranja .tarjeta-cabecera { background: linear-gradient(135deg, #ff7e00, #ffaa33); }
.tarjeta-verde .tarjeta-cabecera  { background: linear-gradient(135deg, var(--verde-principal), var(--verde-claro)); }
.tarjeta-morado .tarjeta-cabecera { background: linear-gradient(135deg, #6b46c1, #9f7aea); }

.icono-elegante {
  font-size: 5.2rem;
  margin-bottom: 20px;
}

.tarjeta-cabecera h3 {
  font-size: 1.95rem;
}

.tarjeta-cuerpo {
  padding: 0 35px 45px;
}

.tarjeta-cuerpo p {
  font-size: 1.14rem;
  color: var(--texto-claro);
  margin-bottom: 35px;
}

.boton-mas {
  color: var(--verde-principal);
  font-weight: 700;
  font-size: 1.12rem;
}

/* ====================== COMPETENCIAS ====================== */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 30px;
}

.competencias {
  margin-bottom: 130px;
}

.competencias .overline {
  color: var(--verde-principal);
  font-size: 1.2rem;
}

.competencias h1 {
  font-size: 3.3rem;
  margin-bottom: 22px;
  color: var(--texto-oscuro);
}

.descripcion {
  font-size: 1.28rem;
  max-width: 740px;
  color: var(--texto-claro);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 65px;
}

.card {
  background: white;
  border-radius: 22px;
  padding: 42px 34px;
  box-shadow: 0 16px 45px var(--sombra-suave);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-14px);
}

.card-icon {
  width: 68px;
  height: 68px;
  background: var(--verde-claro);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 26px;
}

.card h3 {
  font-size: 1.85rem;
  margin-bottom: 18px;
  color: var(--texto-oscuro);
}

.card p {
  font-size: 1.12rem;
  color: var(--texto-claro);
}

/* ====================== CALENDARIO ====================== */
.calendario {
  background: white;
  border-radius: 26px;
  padding: 55px;
  box-shadow: 0 22px 60px var(--sombra-media);
  margin-bottom: 130px;
}

.calendario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 45px;
  flex-wrap: wrap;
  gap: 20px;
}

.calendario h2 {
  font-size: 2.65rem;
  color: var(--texto-oscuro);
}

.proximos-btn {
  background: var(--verde-principal);
  color: white;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
}

.proximos-btn:hover {
  background: var(--verde-claro);
  transform: translateY(-4px);
}

.eventos-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.evento {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-left: 6px solid var(--verde-claro);
}

.evento-titulo {
  font-size: 1.4rem;
  font-weight: 600;
}

.evento-fecha {
  font-weight: 700;
  color: var(--verde-principal);
  font-size: 1.15rem;
}

.evento-tipo {
  background: var(--verde-claro);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.98rem;
  font-weight: 600;
}

.consultar-mas {
  display: block;
  text-align: center;
  margin-top: 60px;
  color: var(--verde-principal);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ====================== REDES SOCIALES ====================== */
.redes-wrapper {
  max-width: 1350px;
  margin: 140px auto;
  padding: 0 30px;
}

.redes-wrapper .overline {
  color: var(--verde-principal);
}

.redes-wrapper h2 {
  font-size: 3.3rem;
  text-align: center;
  margin-bottom: 20px;
}

.redes-wrapper .subtitulo {
  text-align: center;
  font-size: 1.35rem;
  max-width: 860px;
  margin: 0 auto 80px;
  color: var(--texto-claro);
}

.tarjetas-redes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.tarjeta-red {
  background: white;
  border-radius: 26px;
  padding: 48px 35px;
  text-align: center;
  box-shadow: 0 20px 55px var(--sombra-suave);
  transition: all 0.4s ease;
}

.tarjeta-red:hover {
  transform: translateY(-18px);
}

.icono-plataforma {
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  color: white;
}

.fb { background: #1877f2; }
.ig { background: linear-gradient(135deg, #f56040, #c13584, #405de6); }
.yt { background: #ff0000; }

.nombre-plataforma {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.link {
  color: var(--verde-principal);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ====================== TESTIMONIOS ====================== */
.testimonios {
  max-width: 1180px;
  margin: 0 auto 140px;
  padding: 0 30px;
  text-align: center;
}

.testimonios .overline {
  color: var(--verde-principal);
}

.testimonios h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.desc {
  font-size: 1.3rem;
  max-width: 760px;
  margin: 0 auto 70px;
  color: var(--texto-claro);
}

.carrusel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.slides {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  padding: 0 20px;
}

.tarjeta {
  background: white;
  border-radius: 24px;
  padding: 55px 45px;
  box-shadow: 0 20px 60px var(--sombra-suave);
  text-align: center;
}

.foto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 25px;
  border: 7px solid var(--verde-claro);
  overflow: hidden;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nombre {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.años {
  color: var(--verde-principal);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.cita {
  font-size: 1.18rem;
  font-style: italic;
  color: var(--texto-claro);
  line-height: 1.75;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 45px;
  margin-top: 60px;
}

.flecha {
  font-size: 3rem;
  color: var(--verde-principal);
  cursor: pointer;
  transition: color 0.3s;
}

.flecha:hover {
  color: var(--verde-oscuro);
}

.puntos {
  display: flex;
  gap: 14px;
}

.punto {
  width: 16px;
  height: 16px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.punto.active {
  background: var(--verde-claro);
  transform: scale(1.5);
}

/* ====================== FOOTER ====================== */
.footer {
  background: var(--verde-oscuro);
  color: #ddd;
  padding: 80px 0 40px;
}

.footer-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-col.logo-col {
  gap: 16px;
}

.footer-logo-circle {
  width: 95px;
  height: 95px;
  background: linear-gradient(#66c26a, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 900;
  color: white;
  border: 4px solid #ddd;
}

.footer-logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

.footer-subtitle {
  color: #88c88f;
  font-weight: 500;
}

.footer-title {
  color: var(--verde-claro);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-links a {
  color: #ddd;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--verde-claro);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-bottom {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ====================== WHATSAPP FLOAT ====================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 68px;
  height: 68px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.55);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.15);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1100px) {
  .section {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  .main-title {
    font-size: 4.1rem;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 3.3rem;
  }
  .tile {
    width: 62px;
    height: 62px;
    font-size: 2.4rem;
  }
  .tarjetas-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .calendario {
    padding: 40px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2.85rem;
  }
  .logo-text {
    font-size: 1.85rem;
  }
  .banner {
    min-height: 640px;
  }
}