* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f7f4ef;
  color: #222;
  line-height: 1.6;
}

:root {
  --primary: #8b2e16;
  --secondary: #d97706;
  --light: #fffaf4;
  --dark: #1f1f1f;
  --white: #ffffff;
  --text-soft: #666;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.event-container {
  width: 90%;
  max-width: 1150px;
  margin: 0 auto;
}

.event-hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.6)),
    url("images/galeria3.jpg") center/cover no-repeat;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.event-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 0 0 18px 18px;
}

.event-logo {
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffd089;
}

.event-nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.event-nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: 0.3s;
}

.event-nav-links a:hover {
  color: #ffd089;
}

.event-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 90%;
  max-width: 850px;
  margin: auto;
  text-align: center;
  padding-top: 90px;
}

.event-tag {
  color: #ffd089;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.event-hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.event-hero-content p {
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: #f4f4f4;
}

.event-btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s ease;
  align-self: center;
}

.event-btn:hover {
  background: #b85f00;
  transform: translateY(-2px);
}

.event-btn.secondary {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  margin-top: 18px;
}

.event-btn.secondary:hover {
  background: var(--secondary);
  color: var(--white);
}

.event-section {
  padding: 80px 0;
}

.event-section.light {
  background: var(--light);
}

.event-label {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: 14px;
}

.center {
  text-align: center;
}

.event-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.event-text h2,
.event-section h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.event-text p {
  margin-bottom: 16px;
  color: #444;
}

.event-info-card,
.event-contact-card {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.event-info-card h3 {
  color: var(--primary);
  margin-bottom: 14px;
}

.event-info-card p {
  margin-bottom: 10px;
  color: #444;
}

.event-gallery {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 220px 220px 220px;
  gap: 18px;
}

.event-gallery-item {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.event-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Distribución sin huecos */
.event-gallery-item.large {
  grid-column: 1;
  grid-row: 1 / 4;
  min-height: 100%;
}

.event-gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.event-gallery-item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.event-gallery-item:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.event-gallery-item:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.event-gallery-item:nth-child(6) {
  grid-column: 2 / 4;
  grid-row: 3;
}

.contact-event-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.event-contact-box {
  margin-top: 20px;
}

.event-contact-box p {
  margin-bottom: 12px;
  color: #444;
}

.event-map-box {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.event-footer {
  background: var(--dark);
  color: #ddd;
  text-align: center;
  padding: 22px 15px;
}

section,
header {
  scroll-margin-top: 100px;
}

@media (max-width: 992px) {
  .event-grid,
  .contact-event-grid {
    grid-template-columns: 1fr;
  }

  .event-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px 220px;
  }

  .event-gallery-item.large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .event-gallery-item:nth-child(2) {
    grid-column: 1;
    grid-row: 3;
  }

  .event-gallery-item:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
  }

  .event-gallery-item:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }

  .event-gallery-item:nth-child(5) {
    grid-column: 2;
    grid-row: 4;
  }

  .event-gallery-item:nth-child(6) {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .event-navbar {
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px;
  }

  .event-hero-content h1 {
    font-size: 2.5rem;
  }

  .event-hero-content p {
    font-size: 1rem;
  }

  .event-section {
    padding: 65px 0;
  }

  .event-text h2,
  .event-section h2 {
    font-size: 1.8rem;
  }

  .event-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 240px);
  }

  .event-gallery-item,
  .event-gallery-item.large,
  .event-gallery-item:nth-child(2),
  .event-gallery-item:nth-child(3),
  .event-gallery-item:nth-child(4),
  .event-gallery-item:nth-child(5),
  .event-gallery-item:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }
}