/* ═══════════════════════════════════════════════════════
   OFPIC — Home Page v8.0 — Apple-Style Redesign
   Fullscreen hero + Modern search + Bento grid
   ═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════
   1. HERO SECTION
   ══════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.65) 0%,
    rgba(184, 154, 91, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 60px);
  max-width: 860px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-logo {
  width: 100px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.3));
  opacity: 0.9;
}

.hero-title {
  font-family: 'Sora', var(--font-display, sans-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.25rem 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #B89A5B 0%, #D4B87A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'DM Sans', var(--font-body, sans-serif);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin: 0 0 2.5rem 0;
  line-height: 1.7;
  font-weight: 400;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #B89A5B 0%, #D4B87A 100%);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 980px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(184, 154, 91, 0.35);
  letter-spacing: 0.01em;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 44px rgba(184, 154, 91, 0.45);
  color: #fff;
  text-decoration: none;
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 15px 36px;
  border-radius: 980px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator a:hover { opacity: 1; }

.scroll-indicator span {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

.scroll-indicator i {
  font-size: 24px;
  animation: bounce 2.5s infinite;
}

.hero-stats {
  display: flex;
  gap: clamp(30px, 4vw, 56px);
  justify-content: center;
  margin-top: 3.5rem;
}

.hero-stat { text-align: center; }

.hero-stat .number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  display: block;
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
  display: block;
}

/* ══════════════════════════════════════════
   2. SEARCH SECTION
   ══════════════════════════════════════════ */
.search-section {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 154, 91, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.search-container {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.search-header p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.search-form-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.05);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.search-field select,
.search-field input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
  color: #1f2937;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
  outline: none;
  border-color: #B89A5B;
  box-shadow: 0 0 0 4px rgba(184, 154, 91, 0.08);
}

.search-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.search-field.full-width {
  grid-column: 1 / -1;
}

.search-text-input {
  position: relative;
}

.search-text-input input {
  padding-left: 48px;
}

.search-text-input i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
}

.search-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-search {
  background: linear-gradient(135deg, #B89A5B 0%, #D4B87A 100%);
  color: #fff;
  border: none;
  padding: 14px 44px;
  border-radius: 980px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 28px rgba(184, 154, 91, 0.3);
  letter-spacing: 0.01em;
}

.btn-search:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(184, 154, 91, 0.4);
}

.advanced-search-link {
  color: #B89A5B;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.advanced-search-link:hover {
  color: #c62b3a;
  text-decoration: none;
}

.advanced-search-link i { font-size: 15px; }

.quick-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.quick-filter {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 22px;
  border-radius: 980px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-filter:hover {
  background: rgba(184, 154, 91, 0.2);
  border-color: rgba(184, 154, 91, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   3. GALLERY / BENTO GRID SECTION
   ══════════════════════════════════════════ */
.gallery-section {
  padding: clamp(60px, 8vw, 120px) 0;
  background: #0f0f1a;
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 154, 91, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(159, 122, 234, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  position: relative;
  z-index: 10;
}

.gallery-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.gallery-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gallery-header h2 .highlight {
  background: linear-gradient(135deg, #B89A5B 0%, #D4B87A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-header p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 6px;
}

.bento-item:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(2)  { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(3)  { grid-column: span 1; grid-row: span 2; }
.bento-item:nth-child(4)  { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(5)  { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(6)  { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(7)  { grid-column: span 1; grid-row: span 2; }
.bento-item:nth-child(8)  { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(9)  { grid-column: span 1; grid-row: span 1; }
.bento-item:nth-child(10) { grid-column: span 2; grid-row: span 1; }

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    transparent 40%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 2;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover::before {
  background: linear-gradient(180deg,
    rgba(184, 154, 91, 0.15) 0%,
    rgba(0,0,0,0.88) 100%
  );
}

.bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover img {
  transform: scale(1.06);
}

.bento-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}

.badge-type {
  padding: 6px 12px;
  border-radius: 980px;
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-type.deportivo {
  background: rgba(184, 154, 91, 0.85);
  color: #fff;
}

.badge-type.social {
  background: rgba(159, 122, 234, 0.85);
  color: #fff;
}

.badge-fotos {
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 6px 12px;
  border-radius: 980px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-locked {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 9px;
  border-radius: 980px;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 5;
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover .bento-content {
  transform: translateY(0);
  opacity: 1;
}

.bento-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.bento-item:nth-child(1) .bento-content h3 {
  font-size: 24px;
}

.bento-content .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.bento-content .meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bento-content .meta i {
  color: #B89A5B;
  font-size: 11px;
}

.bento-info-basic {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 4;
  transition: opacity 0.3s ease;
}

.bento-item:hover .bento-info-basic {
  opacity: 0;
}

.bento-info-basic h4 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-item:nth-child(1) .bento-info-basic h4 {
  font-size: 20px;
}

.bento-info-basic .location {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bento-info-basic .location i {
  color: #B89A5B;
  font-size: 11px;
}

.gallery-cta {
  text-align: center;
  margin-top: clamp(36px, 4vw, 64px);
}

.btn-ver-todos {
  background: linear-gradient(135deg, #B89A5B 0%, #D4B87A 100%);
  color: #fff;
  border: none;
  padding: 16px 44px;
  border-radius: 980px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(184, 154, 91, 0.3);
  letter-spacing: 0.01em;
}

.btn-ver-todos:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 50px rgba(184, 154, 91, 0.4);
  color: #fff;
  text-decoration: none;
}

.no-eventos-modern {
  text-align: center;
  padding: 80px 20px;
}

.no-eventos-modern .icon-wrapper {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.no-eventos-modern .icon-wrapper i {
  font-size: 40px;
  color: rgba(255,255,255,0.25);
}

.no-eventos-modern h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin: 0 0 8px 0;
}

.no-eventos-modern p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-title   { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .search-header h2 { font-size: clamp(1.5rem, 6vw, 1.75rem); }
  .search-grid { grid-template-columns: 1fr; }
  .search-form-card { padding: 20px; border-radius: 18px; }
  .search-actions { flex-direction: column; }
  .btn-search { width: 100%; justify-content: center; }
  .quick-filters { flex-wrap: wrap; }
}

@media (max-width: 1200px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-item:nth-child(1)  { grid-column: span 2; grid-row: span 2; }
  .bento-item:nth-child(3)  { grid-column: span 1; grid-row: span 1; }
  .bento-item:nth-child(7)  { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 768px) {
  .gallery-header h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 4px;
  }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .bento-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .bento-item:nth-child(6),
  .bento-item:nth-child(10) { grid-column: span 2; }
  .bento-content { padding: 12px; transform: translateY(0); opacity: 1; }
  .bento-content h3 { font-size: 13px; }
  .bento-info-basic { display: none; }
  .bento-item { border-radius: 10px; }
}

@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento-item:nth-child(n) { grid-column: span 1 !important; }
}
