/* === RESET BÁSICO PARA EVITAR SCROLL LATERAL === */
html, .page-body {
  overflow-x: hidden;
  width: 100%;
}

/* IMPORTANTE: no recortes el contenido principal */
.page-main {
  overflow-x: visible;
}

.page-hero {
  width: 100%;
  height: auto;
  padding: 0rem 0;           /* altura de la franja (ajusta aquí) */
  display: flex;
  justify-content: center;
  background: #ffffff; /* o blanco, o color corporativo */
}

.page-hero__logo {
  max-width: 100%;
  width: 1000px;
  height: auto;
  display: block;
}

.page-content {
  padding-top: 0rem;
}

.event-title-section {
  position: relative;
}

.event-title-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* ajusta opacidad */
  z-index: 0;
}

.event-title-section > * {
  position: relative;
  z-index: 1;
}


/* === CONTENEDOR PRINCIPAL === */


/* === IMÁGENES === */
img {
    display: block;
    margin: 0.75rem auto;
    max-width: 95%;      /* evita imágenes gigantes */
    height: auto;        /* mantiene proporciones */
    border-radius: 4px;  /* mejora estética */
}

/* === TITULOS === */

main h1 {
    text-align: center;
    font-weight: 800;
    font-size: 3rem; 
    color: var(--color-primary-darker);
    letter-spacing: 0.5px;
    padding-bottom: 1.5rem;
    padding-top: 1.5rem;
}

h2 {
    text-align: center;
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--color-primary);
    margin-top: 0 !important;
    padding-top: 1.55rem;
    margin-bottom: 1rem;
}

h3, h4, h5 {
    color: var(--color-primary-darker);
    padding-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

main * + h2,
main * + h3,
main * + h4,
main * + h5,
main * + h6 {
  margin-top: 1.5rem !important;
}

main h2, main h3, main h4, main h5, main h6 {
  margin-bottom: 1.5rem !important;
}

/* === PÁRRAFOS === */
p {
    color: var(--color-secondary-darker);
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 0.4em;
}

/* === LISTAS === */
ul {
    color: var(--color-secondary-darker);
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.5;
    padding-left: 1.8rem;
}

ul li {
    margin-bottom: 1.2em;
}

/* === LINKS === */
a {
    text-decoration: underline;
    color: var(--color-primary);
    font-weight: 400;
}

a:hover {
    color: var(--color-primary-darker);
}

/* === TABLAS === */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 3rem auto;
    font-size: 1.1rem;
}

/* Evita que la tabla cause SCROLL LATERAL */
table, th, td {
    word-wrap: break-word;
}

table th, table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

/* === HR BONITO === */
hr {
    border: none;
    height: 2px;
    background-color: #bfbfbf;
    border-radius: 2px;
    margin: 2rem 0;
}

.contact-form {
  max-width: 720px;
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font: inherit;
}

.contact-form button {
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: #006effbe;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 2.5rem;
  font-family: Arial;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
  width: 100%;
  margin-bottom: 5rem
}

.column-left{
  min-width: max-content; /* evita que el botón se “aplast(e)” */
}

.column-right{
  min-width: 0; /* evita overflow raro de la tabla */
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
}

.info-table th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.05);
}

.table-footnotes {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
}

.table-footnotes p {
  margin: 0.2rem 0;
}

.map-embed {
  width: 100%;
  max-width: 100%;
}

.map-embed iframe {
  width: 475px;
  height: 360px;
  border: 0;
  display: block;
}

.column-image {
  width: 100%;
  height: 360px;
  display: block;
  border-radius: 8px; /* opcional */
  object-fit: cover;
}

/* === RESPONSIVE GENERAL === */
@media (max-width: 900px) {
    .page {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    img {
        max-width: 90%;
    }
}

/* Responsive: una debajo de otra */
@media (max-width: 768px) {
  .two-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .map-embed iframe {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 160px;
  }

  .page-hero__logo {
    max-height: 90px;
  }
}

