/*
  ANFAC Landing Page Styles
  Customized for event branding
*/

:root {
  --bg: #010b19;
  --azul-1: #3973b6;
  --azul-2: #1f3e74;
  --azul-3: #13284d;
  --bg-extended: #030303;

  --primary-color: #306ad2; /* Vibrant blue for countdown/buttons */
  --secondary-color: #00aaff; /* Glowing blue for accents */
  --bg-dark: #06121e; /* Deep navy from hero/footer */
  --bg-agenda: #0a1b2f; /* Slightly lighter navy for agenda/speakers */
  --bg-black: #02060c; /* Near black for deepest areas */
  --text-white: #ffffff;
  --container-max-width: 1440px;
}

@font-face {
  font-family: "Eurostile";
  src:
    url("../fonts/EurostileBold.woff2") format("woff2"),
    url("../fonts/EurostileBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Eurostile";
  src:
    url("../fonts/EurostileRegular.woff2") format("woff2"),
    url("../fonts/EurostileRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Eurostile", sans-serif;
  background-color: var(--bg);
  color: var(--text-white);
  margin: 0;
  padding: 0;
}

.container-custom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Navbar */
.navbar-custom {
  /*
  background-color: rgba(6, 12, 22, 0.9);
  backdrop-filter: blur(10px);
  */
  background-color: transparent;
  padding: 1rem 0;
  transition: all 0.3s ease;
}
/*
.navbar-brand img {
  height: 40px;
}
*/
#navbarNav a.nav-link {
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#navbarNav ul.navbar-nav {
  gap: 10px;
}

.logo-anfac {
  width: 100px;
  height: auto;
}

/* Navbar Toggler Custom Color (White) */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


@media (min-width: 1024px) {
  .logo-anfac {
    width: 185px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--bg-extended);
  /*
  height: 70%;
  height: calc(100vh - 200px);
  min-height: 600px;
  */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 480px;
}

#hero-video {
  width: 100%;
  height: 100%; /* O cualquier medida */
  object-fit: cover; /* El truco mágico */
  object-position: center; /* Para centrar el recorte */
}

@media (min-width: 1024px) {
  #hero-video {
    max-width: 1440px;
    object-position: center; /* Para centrar el recorte */
  }
}

/* Countdown */
.countdown-section {
  background-color: var(--azul-1);
  padding: 6rem 0;
}

#row-container {
  max-width: 622px;
  margin: 0 auto;
}

.countdown-box {
  background: white;
  border: 0;
  color: var(--azul-3);
  padding: 1.5rem 0;
  border-radius: 5px;
  text-align: center;
}

.countdown-number {
  font-size: 4.375rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
}

.countdown-label {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* --- main info ---- */

.main-info-section {
  padding: 0 0 5rem;
  background-color: var(--azul-1);
}

.main-info-section h2 {
  font-size: 3rem;
  font-weight: 700;
}

.main-info-section h3 {
  font-size: 1.8rem;
  font-weight: 400;
}

.main-info-section p {
  max-width: 960px;
  margin: 30px auto;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 100;
}

.main-info-section p strong {
  font-weight: 700;
}

/* Agenda / Schedule Redesign */
.agenda-section {
  background-color: var(--azul-3);
  padding: 5rem 0;
}

.agenda-title {
  font-size: 3.125rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-white);
}

.agenda-container {
  max-width: 1000px;
  margin: 0 auto;
}

.agenda-card {
  background-color: #ffffff;
  overflow: hidden;
  margin-bottom: 0.625rem;
  color: var(--azul-2);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .agenda-card {
    flex-direction: row;
  }
}

.agenda-left {
  padding: 1.7rem 1rem;
  flex: 0 0 35%;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .agenda-left {
    border-bottom: none;
    border-right: 3px solid var(--azul-3);
  }
}

.agenda-time {
  color: var(--azul-2);
  font-weight: 700;
  font-size: 0.9961rem;
  margin-bottom: 0.75rem;
}

.agenda-session-title {
  font-weight: 800;
  font-size: 1.3281rem;
  color: var(--azul-2);
  margin-bottom: 0.75rem;
  line-height: 1;
  padding-right: 10px;
}

.agenda-session-title span {
  font-weight: 400;
}

.agenda-format {
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: #f1f5f9;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.agenda-right {
  padding: 2.2rem 2rem 1rem;
  flex: 1;
  background-color: #ffffff;
}

.agenda-label {
  display: block;
  font-size: 1.1289rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.agenda-moderador {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2rem;
}

.agenda-moderador span {
  font-weight: 400;
}

.speaker-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.speaker-row {
  display: flex;
  align-items: start;
  gap: 2rem;
}
/*
.speaker-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
*/
.speaker-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  background-color: #cbd5e1;
  flex-shrink: 0;
}

.speaker-info {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-grow: 1;
}

.speaker-name {
  font-weight: 800;
  font-size: 1.1289rem;
  margin-bottom: 0.25rem;
  line-height: 1.1;
  width: 35%;
}

.speaker-role {
  font-size: 1.0625rem;
  line-height: 1.1;
  width: 60%;
}

/* Agenda Break Row (Dark theme) */
.agenda-break {
  background-color: var(--azul-2); /* Darker blue for contrast */
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  margin-bottom: 0.625rem;
  height: 94px;
  align-items: center;
  justify-content: center;
}

.agenda-break .agenda-time {
  color: var(--secondary-color);
  margin-bottom: 0;
  min-width: 35%;
}

.agenda-break .agenda-session-title {
  color: #ffffff;
  margin-bottom: 0;
  text-transform: none;
  font-weight: 700;
  text-align: center;
}

/* Speakers (Flex Module) */
.speakers-section {
  padding: 5rem 0;
}

.speakers-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.speaker-card {
  flex: 0 1 calc(25% - 3rem);
  min-width: 200px;
  text-align: center;
}

.speaker-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  aspect-ratio: 1/1;
  object-fit: cover;
  background-color: #2d3748; /* Placeholder color */
}

/* --- descarga --- */
.descarga-section {
  background-color: white;
  color: var(--azul-2);
  padding: 75px 0px;
}

.descarga-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 3.125rem;
}

a.btn-download {
  color: white;
  background-color: var(--azul-1);
  border: 0;
  border-radius: 150px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  padding: 22px 75px;
  font-size: 2.8125rem;
}

a.btn-download:hover {
  background-color: var(--azul-2);
}

/* ---- ponentes ---- */

.speakers-section {
  background-color: var(--azul-2);
  padding: 170px 0px;
}

.speakers-section h2 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 3.125rem;
}

#ponentes {
  color: white;
}

#ponentes .speaker-avatar {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#ponentes .speaker-img {
  background-color: transparent;
}

#ponentes h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

#ponentes p {
  font-size: 1rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

/* Videos Section */

.videos-section {
  background-color: var(--azul-3);
  padding: 0;
}

.videos-section h2 {
  font-size: 3.125rem;
  padding: 120px 0 100px;
  margin: 0 !important;
}

.video-placeholder {
  aspect-ratio: 560 / 315;
  width: 100%;
}

.video-placeholder > iframe {
  max-width: 100%;
}

.video-placeholder + p {
  font-size: 1.5625rem;
  margin-top: 7px;
}

/* Map Section */
.map-section {
  min-height: 450px;
  width: 100%;
  background-color: var(--azul-3);
}

#google-map {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.map-info {
  background-color: var(--azul-3);
  width: 90%;
  max-width: 860px;
  padding: 34px 0px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .map-info-address,
  .map-info-title {
    width: 50%;
  }
  .map-info {
    text-align: left;
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 34px;
  }
  #google-map {
    aspect-ratio: 1350/405;
  }
}

.map-container {
  margin-bottom: 4rem !important;
}

.map-info-address p,
.map-info-title h3 {
  line-height: 1.1 !important;
  margin-bottom: 0px;
}

.map-info-address p {
  font-size: 1.215rem;
}

.map-info-address p strong {
  font-size: 1.38rem;
}

/* Footer / Sponsors */
.footer-section {
  background-color: var(--bg-extended);
  position: relative;
  overflow: hidden;
}

.img-footer > img {
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .speaker-card {
    flex: 0 1 calc(33.333% - 2rem);
  }
}

@media (max-width: 767px) {
  .speaker-card {
    flex: 0 1 calc(50% - 2rem);
  }
  .countdown-box {
    min-width: 80px;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .speaker-card {
    flex: 0 1 100%;
  }
}
