@import "tailwindcss";
@import "tw-animate-css";

/* ===========================
   Variables y Temas Globales
=========================== */
:root {
  /* Updated color palette for a more natural, elegant look */
  --verde-vida: #59bf00;
  --verde-raiz: #1a3c1e; /* Darker, more elegant green */
  --luz-tierra: #fff3d3; /* Cleaner off-white */
  --texto-suave: #4a5d4b;

  /* Fonts */
  --poppins: 'Poppins', sans-serif;
  --sigmar: 'Sigmar', sans-serif;
  --shadow: 'Shadows Into Light Two', cursive;
  --covered: 'Covered By Your Grace', cursive;
  --roboto-mono: 'Roboto Mono', monospace;

  /* Tailwind variables */
  --background: oklch(0.99 0.01 95);
  --foreground: oklch(0.2 0.05 140);

  /* Otros colores y valores para utilidad y temas */
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);

  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);

  /* Chart variables y otros */
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

/* Tema oscuro */
.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

/* fonts */

.sigmar-regular {
  font-family: "Sigmar", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.shadows-into-light-two-regular {
  font-family: "Shadows Into Light Two", cursive;
  font-weight: 400;
  font-style: normal;
}


/* Theme tokens inline */
@theme inline {
  --font-sans: "Geist", "Geist Fallback";
  --font-mono: "Geist Mono", "Geist Mono Fallback";
}

/* ===========================
      Reset y Base Global
=========================== */
@layer base {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: var(--covered);
    font-weight: 300;
    background: var(--luz-tierra);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--verde-raiz);
    line-height: 1.6;
  }
}

/* ===========================
      Layout y Componentes
=========================== */
.container {
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  width: 180px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  /* Added drop shadow for depth */
  filter: drop-shadow(0 10px 20px rgba(89, 191, 0, 0.15));
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--verde-vida);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  font-family: var(--sigmar);
  letter-spacing: -0.02em;
}

.subtitle {
  font-family: var(--covered);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--texto-suave);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

/* Redesigned countdown: Minimalist, no boxes, elegant typography */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-value {
  font-size: 3rem;
  font-weight: 300; /* Light weight for elegance */
  font-family: var(--covered);
  color: var(--verde-raiz);
  line-height: 1;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: var(--covered);
  font-size: 0.75rem;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.launch-message {
  font-size: 2rem;
  font-weight: 600;
  color: var(--verde-vida);
  display: none;
  animation: fadeInUp 1s ease-out;
}

.launch-message.show {
  display: block;
}

/* ===========================
   Botón de Registro
=========================== */
.btn-registro-evento {
  display: inline-block;
  background: transparent;
  color: var(--verde-raiz);
  font-size: 1rem;
  font-family: var(--poppins);
  font-weight: 600;
  padding: 16px 32px;
  border: 2px solid var(--verde-vida);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  margin: 1rem auto 1rem auto;
  text-transform: uppercase;
}

.btn-registro-evento:hover {
  background: var(--verde-vida);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(89, 191, 0, 0.2);
}

/* ===========================
   Sección de Logos
=========================== */
.logos-section {
  margin-top: 2rem;
  padding-top: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  width: 100%;
}

.logos-title {
  font-family: var(--covered);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logos-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  width: 100%;
}

.logo-item {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  /* Grayscale by default for elegance, color on hover */
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

.logo-link:hover .logo-item {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* ===========================
       Responsividad
=========================== */

/* Tablet */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  
  .subtitle {
    font-size: 1.25rem;
  }

  .countdown {
    gap: 3rem;
  }

  .countdown-value {
    font-size: 4.5rem;
  }

  .countdown-label {
    font-size: 0.875rem;
  }

  .logos-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .logo-item {
    height: 50px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 4rem 2rem;
  }

  h1 {
    font-size: 4.5rem;
  }

  .countdown {
    gap: 4rem;
    margin-bottom: 1rem;
  }

  .countdown-value {
    font-size: 6rem;
  }

  .logos-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
  }

  /* Reset width to auto so logos sit side-by-side in flex container */
  .logo-link {
    width: auto;
  }

  .logo-item {
    height: 60px;
  }
}

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


/* Lo ideal: aumentar el tamaño mínimo de logo en mobile */
.logo-item {
  height: 60px; /* antes 40px */
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s ease;
}

/* Si quieres mayor control, puedes ajustar por debajo de 480px */
@media (max-width: 480px) {
  .logo-item {
    height: 70px;
  }
  .logos-gallery {
    gap: 1.2rem;
  }
}

.datetime-display {
  font-family: var(--covered);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--verde-vida);
  margin-bottom: 1rem;
}
