:root {
  --navy: #061022;
  --navy-2: #0b1f46;
  --blue: #0f5fa8;
  --cyan: #20b5d8;
  --orange: #f59a13;
  --orange-2: #ff6a00;
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(255, 255, 255, 0.14);
  --soft-line: rgba(15, 31, 70, 0.14);
  --white: #ffffff;
  --bg: #f4f7fb;
  --shadow: 0 26px 80px rgba(6, 16, 34, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(6, 16, 34, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  animation: slideDown 0.7s ease both;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-2);
  font-size: 1rem;
}

.site-header.scrolled .brand-mark {
  color: var(--white);
}

.nav {
  gap: 8px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.site-header.scrolled .nav a:hover {
  background: rgba(6, 16, 34, 0.07);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  padding: 138px clamp(18px, 5vw, 64px) 82px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/cipladf-hero-nuevo.png");
  background-size: cover;
  background-position: center 84px;
  transform-origin: center top;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 16, 34, 0.9), rgba(6, 16, 34, 0.46) 52%, rgba(6, 16, 34, 0.78)),
    linear-gradient(0deg, rgba(6, 16, 34, 0.88), rgba(6, 16, 34, 0.06));
}

.hero-content {
  position: relative;
  max-width: 920px;
  animation: heroRise 0.95s ease both;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.form-button {
  min-width: min(100%, 360px);
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 42%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.55s ease;
}

.button:hover::after {
  left: 125%;
}

.primary {
  color: var(--navy);
  background: var(--orange);
  box-shadow: 0 14px 34px rgba(245, 154, 19, 0.32);
}

.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.dark {
  color: var(--white);
  background: var(--navy-2);
}

.countdown-section {
  padding: 0 clamp(18px, 5vw, 64px);
  transform: translateY(-42px);
  margin-bottom: -42px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  box-shadow: var(--shadow);
  animation: floatSoft 5.5s ease-in-out infinite;
}

.countdown div {
  padding: 28px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.countdown div:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 24px rgba(32, 181, 216, 0.32);
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.logo-section {
  padding: 92px clamp(18px, 5vw, 64px);
  color: var(--white);
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 154, 19, 0.16), transparent 28%),
    linear-gradient(135deg, #030812, var(--navy));
}

.logo-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading.compact h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.logo-grid {
  display: grid;
  align-items: center;
  gap: 14px;
}

.primary-logos {
  grid-template-columns: 1.25fr 0.8fr 1.55fr 0.8fr;
}

.support-logos {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
}

.logo-grid img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.32));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-grid img:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 18px 28px rgba(245, 154, 19, 0.24));
}

.section {
  padding: 96px clamp(18px, 5vw, 64px);
}

.intro,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.benefits-section > div,
.registration-content {
  max-width: 1040px;
}

.section h2,
.registration h2 {
  margin: 0;
  max-width: 830px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy,
.dark-section p,
.registration-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy);
  color: var(--white);
}

.stats-band article {
  min-height: 210px;
  padding: 34px clamp(20px, 3vw, 42px);
  border-right: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
}

.stats-band article:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
}

.stats-band article:last-child {
  border-right: 0;
}

.stats-band span {
  display: block;
  color: var(--orange);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
}

.stats-band p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.visual-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.benefit-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.benefit-list article,
.expert-grid article,
.objective-grid article,
.agenda-day {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--white);
}

.benefit-list article {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-list article:hover,
.objective-grid article:hover,
.agenda-day:hover,
.expert-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 60px rgba(6, 16, 34, 0.16);
  border-color: rgba(245, 154, 19, 0.5);
}

.benefit-list h3 {
  margin: 0 0 8px;
  color: var(--navy-2);
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.objectives {
  background: var(--white);
}

.section-heading {
  margin-bottom: 42px;
}

.objective-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.objective-grid article {
  min-height: 170px;
  padding: 22px;
  color: var(--navy-2);
  font-weight: 800;
  line-height: 1.55;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agenda-section {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(32, 181, 216, 0.18), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(245, 154, 19, 0.18), transparent 24%),
    linear-gradient(135deg, var(--navy), var(--navy-2) 48%, #0c3e78);
}

.agenda-heading h2 {
  color: var(--white);
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 64px) 96px;
}

.agenda-day {
  padding: 30px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(6, 16, 34, 0.78);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agenda-day .date {
  margin: 0 0 10px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.agenda-day h3 {
  margin: 0 0 24px;
  font-size: 1.45rem;
}

.schedule {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
}

.schedule time {
  color: var(--cyan);
  font-weight: 900;
}

.schedule span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.experts {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 1));
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.expert-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  min-height: 240px;
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(6, 16, 34, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.expert-card img {
  width: 132px;
  height: 184px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 2px solid rgba(245, 154, 19, 0.6);
  transition: transform 0.3s ease;
}

.expert-card:hover img {
  transform: scale(1.04);
}

.expert-card h3,
.expert-card span {
  display: block;
}

.expert-card h3 {
  margin: 2px 0 8px;
  color: var(--navy-2);
  font-size: 1.18rem;
}

.expert-card .role {
  margin: 0 0 10px;
  color: var(--navy-2);
  font-weight: 700;
  line-height: 1.45;
}

.expert-card span {
  margin-bottom: 10px;
  color: var(--orange-2);
  font-weight: 900;
}

.expert-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dark-section {
  color: var(--white);
  background: var(--navy);
}

.committee-section {
  display: block;
}

.committee-section > div {
  max-width: 980px;
}

.dark-section h2 {
  color: var(--white);
}

.dark-section p {
  color: rgba(255, 255, 255, 0.76);
}

.organizer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.organizer-list span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
}

.registration {
  padding: 96px clamp(18px, 5vw, 64px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 20%, rgba(245, 154, 19, 0.22), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.registration h2 {
  color: var(--white);
}

.registration-content p,
.included-list {
  color: rgba(255, 255, 255, 0.78);
}

.price-box {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}

.price-box p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.price-box p:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.1);
}

.whatsapp-widget {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 18px 12px 12px;
  color: var(--white);
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 18px 44px rgba(37, 211, 102, 0.34);
  font-weight: 900;
  animation: whatsappPulse 2.6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-widget:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 24px 58px rgba(37, 211, 102, 0.46);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #25d366;
  border-radius: 50%;
  background: var(--white);
  font-size: 0.78rem;
}

.price-box strong {
  color: var(--orange);
  font-size: 1.25rem;
}

.included-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: #030812;
}

.footer p {
  margin: 0;
}

.footer p a {
  color: var(--orange);
  font-weight: 900;
}

.footer-separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.34);
}

.footer div {
  align-items: center;
  display: flex;
  gap: 16px;
}

.social-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 110%, #feda75 0 18%, #fa7e1e 32%, #d62976 54%, #962fbf 76%, #4f5bd5 100%);
  box-shadow: 0 12px 28px rgba(214, 41, 118, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 18px 36px rgba(214, 41, 118, 0.38);
}

.social-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-radius: 6px;
}

.social-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 11px;
  right: 11px;
  border-radius: 50%;
  background: var(--white);
}

.social-icon span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 18px 44px rgba(37, 211, 102, 0.34);
  }
  50% {
    box-shadow: 0 18px 44px rgba(37, 211, 102, 0.34), 0 0 0 12px rgba(37, 211, 102, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .stats-band,
  .objective-grid,
  .primary-logos,
  .support-logos,
  .expert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agenda-grid,
  .intro,
  .split-section,
  .registration {
    grid-template-columns: 1fr;
  }

  .visual-card {
    max-height: 640px;
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    color: var(--navy);
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media {
    background-position: center top;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    padding: 118px 18px 70px;
  }

  .hero-actions,
  .contact-actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .whatsapp-widget {
    right: 16px;
    bottom: 92px;
    padding-right: 14px;
  }

  .countdown,
  .stats-band,
  .objective-grid,
  .primary-logos,
  .support-logos,
  .expert-grid {
    grid-template-columns: 1fr;
  }

  .countdown div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .countdown div:last-child {
    border-bottom: 0;
  }

  .section,
  .registration {
    padding: 72px 18px;
  }

  .agenda-grid {
    padding: 0 18px 72px;
  }

  .agenda-day {
    padding: 22px;
  }

  .expert-card {
    grid-template-columns: 1fr;
  }

  .expert-card img {
    width: min(190px, 100%);
    height: auto;
    justify-self: start;
  }

  .schedule {
    gap: 18px;
  }

  .schedule li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .price-box p {
    display: grid;
  }
}
