/* Custom CSS for FAF Congreso 2027 Priego de Córdoba */

:root {
  --faf-blue: #1d698e;
  --faf-blue-hover: #15516f;
  --faf-green: #297a4d;
  --faf-green-hover: #1e5c39;
  --faf-header-border: #e5e7eb;
}

/* Header Styling */
.faf-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--faf-header-border);
}

/* Control de altura de logos del header (Responsivo) */
.faf-header-logo {
  height: 36px; /* Tamaño en dispositivos móviles */
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .faf-header-logo {
    height: 44px;
  }
}

@media (min-width: 768px) {
  .faf-header-logo {
    height: 52px; /* Tamaño en escritorio */
  }
}

/* Separación del menú de navegación (Únicamente en escritorio para no romper la vista móvil) */
@media (min-width: 768px) {
  .faf-nav-container {
    display: flex;
    align-items: center;
    gap: 1.75rem; /* Distancia entre los enlaces del menú */
  }
}

.faf-nav-link {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.faf-nav-link:hover {
  color: var(--faf-blue);
}

.faf-nav-link.active {
  color: var(--faf-blue);
}

.faf-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--faf-blue);
  border-radius: 2px;
}

/* Hero Main Logo */
.faf-hero-logo {
  max-height: 120px; /* Móvil */
  width: auto;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

@media (min-width: 768px) {
  .faf-hero-logo {
    max-height: 180px; /* Escritorio */
  }
}

/* Buttons */
.btn-pill-blue {
  background-color: var(--faf-blue);
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(29, 105, 142, 0.25);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-pill-blue:hover {
  background-color: var(--faf-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 105, 142, 0.35);
}

.btn-pill-green {
  background-color: var(--faf-green);
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(41, 122, 77, 0.25);
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.btn-pill-green:hover {
  background-color: var(--faf-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(41, 122, 77, 0.35);
}

/* Cards */
.faf-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.faf-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 20px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.faf-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1f2937;
  text-align: center;
  padding: 1.25rem 1rem;
  margin: 0;
}

/* Hero Title */
.faf-hero-title {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Gallery layout */
.faf-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

.faf-gallery-img:hover {
  transform: scale(1.02);
}
