/* =================== THEME =================== */
:root {
  --bg: #ffffff;
  --ink: #313a46;
  --muted: #627083;
  --brand: #37a6c7;
  --accent: #f59e0b;
  --card: #f7f9fb;
  --line: #e5eef4;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(8, 33, 44, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Inter, Roboto, Ubuntu,
    Arial;
}
a {
  color: var(--brand);
  text-decoration: none;
}

/* Nav */
.navbar {
  background: #313a46;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar .nav-link {
  color: #ffffff;
  transition: 0.2s;
}
.navbar.scrolled .nav-link {
  color: var(--muted);
}
.navbar .nav-link:hover {
  color: var(--brand);
}
.navbar.scrolled .nav-link:hover {
  color: var(--ink);
}
.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}
.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M1 1h22M1 8h22M1 15h22'/%3E%3C/svg%3E");
}
.navbar.scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3);
}
.navbar.scrolled .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(34, 48, 64, 0.2);
}
.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath stroke='rgba(49,58,70,0.95)' stroke-width='2' stroke-linecap='round' d='M1 1h22M1 8h22M1 15h22'/%3E%3C/svg%3E");
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: 0.25s;
  box-shadow: 0 6px 18px rgba(55, 166, 199, 0.3);
}
.btn-brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(55, 166, 199, 0.4);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  transition: 0.25s;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(55, 166, 199, 0.1);
}

.btn-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: 0.2s;
}
.btn-theme:hover {
  background: var(--card);
}

/* ========= HERO con VIDEO ========= */
header.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
header.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
}
header.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65));
}
header.hero .inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #0a0c11;
  font-weight: 800;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}
.sticker small {
  background: #000;
  color: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(-1deg) scale(1.02);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(230, 246, 251, 0.95);
  border: 2px solid #cfeff7;
  color: #0a5161;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 1rem 0 0.8rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeInUp 0.9s ease-out 0.15s forwards;
}

.lede-hero {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e6e8ec;
  max-width: 60ch;
  opacity: 0;
  animation: fadeInUp 1.1s ease-out 0.3s forwards;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Slider */
.slider {
  position: relative;
  overflow: hidden;
  /* border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow); */
}
.slides {

  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  min-width: 100%;
  display: grid;
  place-items: center;
  /* aspect-ratio: 16/9;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.08),
    rgba(55, 166, 199, 0.12)
  ); */
}

.slide .card-soft {
  box-shadow: none;
  background-color: transparent;
}

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

.ph-slide {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.12),
    rgba(55, 166, 199, 0.18)
  );
  border: 2px dashed rgba(14, 165, 233, 0.4);
  color: #0e7490;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  opacity: 0.7;
  transition: 0.3s;
  cursor: pointer;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
  opacity: 1;
}

.arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 10;
}
.arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 0.25s;
  font-size: 1.2rem;
  color: #313a46;
}
.arrow:hover {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Meta section especial */
.meta-section {
  background: linear-gradient(
    135deg,
    rgba(55, 166, 199, 0.08) 0%,
    rgba(14, 165, 233, 0.12) 100%
  );
  border-top: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  position: relative;
  overflow: hidden;
}
.meta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s infinite;
}
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.meta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meta-lead {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.badge-meta {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(55, 166, 199, 0.15);
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Cards mejoradas */
.card-soft {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card-soft::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand);
  transform: scaleY(0);
  transition: transform 0.3s;
}
.card-soft:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--brand);
}
.card-soft:hover::before {
  transform: scaleY(1);
}
.card-soft h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
}

.card-soft__logos {
  height: 100px;
  display: grid;
  place-items: center;
  background-color: #313a46;
}

.card-soft__logos img {
  width: auto;
  height: 50px;
}

.card-soft__events {
  height: 200px;
  display: grid;
  place-items: center;
  padding: 0;
}

.card-soft__events img {
  width: 100%;
}

/* Feature cards */
.feature-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
  border-color: var(--brand);
}

.feature-figure {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e6f6fb, #fff);
  overflow: hidden;
}
.feature-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.feature-card:hover .feature-figure img {
  transform: scale(1.08);
}

.ph-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1),
    rgba(55, 166, 199, 0.2)
  );
  border: 3px dashed rgba(14, 165, 233, 0.4);
  color: #0e7490;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feature-body {
  padding: 1.3rem;
}
.feature-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-weight: 700;
}
.feature-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Galería */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.gallery .tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.gallery .tile:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--brand);
}
.gallery .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.gallery .tile:hover img {
  transform: scale(1.1) rotate(2deg);
}
.gallery .t-6 {
  grid-column: span 6;
}
.gallery .t-4 {
  grid-column: span 4;
}
.gallery .t-8 {
  grid-column: span 8;
}
.gallery .t-12 {
  grid-column: span 12;
}

.ph-gallery {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1),
    rgba(55, 166, 199, 0.15)
  );
  border: 3px dashed rgba(14, 165, 233, 0.4);
  color: #0e7490;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 12px;
}

/* CTA band */
.band {
  background: linear-gradient(
    135deg,
    rgba(55, 166, 199, 0.15),
    rgba(245, 158, 11, 0.15)
  );
  border: 3px solid var(--brand);
  padding: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(55, 166, 199, 0.2);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 8s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Separadores */
.hr-cyan {
  border: 0;
  border-top: 3px solid var(--brand);
  opacity: 0.7;
  margin: 1rem 0 1.5rem;
  border-radius: 999px;
}

/* Footer */
footer {
  padding: 2.5rem 0;
  border-top: 2px solid var(--line);
  color: var(--muted);
}
.logoima {
  transition: 0.25s;
  opacity: 0.7;
}
.logoima:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991.98px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }
  .gallery .t-8,
  .gallery .t-6,
  .gallery .t-4 {
    grid-column: span 6;
  }
  .meta-lead {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .title {
    font-size: 2.2rem;
  }
  .lede-hero {
    font-size: 1.1rem;
  }
  .btn-brand,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .band {
    flex-direction: column;
    text-align: center;
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery .t-8,
  .gallery .t-6,
  .gallery .t-4 {
    grid-column: span 4;
  }
  header.hero {
    min-height: 70vh;
  }
}

/* ===== META OSADA DARK ===== */
.meta-section-dark {
  background: radial-gradient(
      circle at top left,
      rgba(55, 166, 199, 0.15),
      transparent 60%
    ),
    linear-gradient(160deg, #0b1118 0%, #131b23 100%);
  color: #fff;
  position: relative;
  border-top: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
}

.meta-curve {
  position: absolute;
  right: -20%;
  top: 0;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle at left center, #111820 0%, #0d0f12 60%);
  border-top-left-radius: 25% 70%;
  border-bottom-left-radius: 25% 70%;
  z-index: 0;
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5) inset;
}

.meta-section-dark .container {
  position: relative;
  z-index: 2;
}

.meta-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #fff;
  position: relative;
}
.meta-title::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.3em;
  width: 6px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}

.meta-lead {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e7edf3;
  line-height: 1.4;
}
.meta-lead .hi {
  color: var(--brand);
}

.meta-text {
  color: #adb9c7;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 46ch;
}

.meta-badge-float {
  position: absolute;
  transform: rotate(6deg);
  background: linear-gradient(135deg, var(--brand), #0ea5e9);
  color: #fff;
  font-weight: 800;
  font-size: 2.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 0 40px rgba(55, 166, 199, 0.6);
  animation: floaty 4s ease-in-out infinite;
  top: -30px;
}
@keyframes floaty {
  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .meta-badge-float {
    position: static;
    transform: none;
    margin-top: 2rem;
    text-align: center;
    display: inline-block;
  }
  .meta-curve {
    display: none;
  }
  .meta-text {
    max-width: 100%;
  }
}

/* ===== Redes sociales navbar ===== */
.nav-social {
  color: #fff;
  font-size: 1.3rem;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navbar.scrolled .nav-social {
  color: var(--muted);
}
.nav-social:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

#mc-embedded-subscribe-form .response {
  font-size: 0.95rem;
}
#mce-error-response {
  color: #d03333;
}
#mce-success-response {
  color: #2e7d32;
}

/* ===== GRID DE EVENTOS (WALL) ===== */
.slider-events {
  position: relative;
  overflow: hidden;
}

.slider-events .slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-events .slide {
  min-width: 100%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card-soft__events img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

.contact-form .email {
  border-radius: 999px;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.contact-form .response.bad {
  display: none;
  color: #d03333;
}

.contact-form .response.success {
  display: none;
  color: #2e7d32;
}

/* Tablet: 2 columnas */
@media (max-width: 991.98px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery .t-8,
  .gallery .t-6,
  .gallery .t-4,
  .gallery .t-12 {
    grid-column: span 2; /* todas ocupan el ancho de las 2 columnas */
  }

  .meta-lead {
    font-size: 1.2rem;
  }
}

/* Mobile: 1 columna */
@media (max-width: 575.98px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .tile {
    grid-column: 1 / -1; /* full width */
  }

  .ph-gallery {
    aspect-ratio: 4 / 3; /* un poquito más cuadrado para mobile */
  }

  header.hero {
    min-height: 70vh;
  }

  .events-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .events-grid .card-soft__events {
    width: 100%;
  }
}
