/*Body y Botones*/
body {
    flex-direction: column;
    margin: 0;
    color: #2c2c2c;
    background-color: #fff;
}
/* ========= Botones ========= */
.btn1, .btn-outline {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn1 {
  font-family: 'MediumBold', sans-serif;
  background-color: #FFFFFF;
  color: #CE1225;
}

.btn1:hover {
  background-color: #CE1225;
  color: white;
}

.btn-outline {
  font-family: 'MediumBold', sans-serif;
  text-align: center;
  border: none;
  color: white;
  background: #CE1225;
}

.btn-outline:hover {
  background: white;
  color: black;
}

/* Hero / Presentación AMA */
.hero {
    padding-top: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url('/assets/Intro (video ).png') no-repeat center center;
    background-size: cover;
    color: #F6F6F6;
    padding: 1rem 2rem 4rem;
    flex-wrap: wrap;
    min-height: 70vh;
    position: relative; /* Necesario para posicionar el logo */
}

.hero-text {
  font-family: 'MediumBold', sans-serif;
  padding: 1rem;
  margin-left: 3rem;
  text-align: center;
  color: #F6F6F6;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.hero-text h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'MediumBold', sans-serif;
}

.hero-img {
  flex: 1 1 300px;
  text-align: center;
  padding: 1rem;
  z-index: 2;
}

.hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Logo en esquina superior derecha */
.hero-logo {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  width: 200px;
  height: 125px;
  z-index: 3;
}

/*QUIENESOMOS*/
#seccion-quienes-somos {
    padding: 4rem 2rem;
    background-color: #EFEFEF7E;
    text-align: center;
}

#seccion-quienes-somos h2 {
  font-family: 'MediumBold', sans-serif;
  font-size: 2rem;
  margin-top: -1rem;
  margin-bottom: 0.5rem;
  color: #CE1225;
}

#seccion-quienes-somos p {
  font-family: 'FuturaMedium', sans-serif;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 0rem;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #676767;
}

/* Historia, Organización y Estatutos*/
/* Contenedor flexible */
.info-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 2rem 1rem;
  background-color: #FFFFFF;
}

/* Invertir SOLO en escritorio para organización */
.info-flex.invertida {
  flex-direction: row-reverse;
}

.info-flex:not(.invertida) .info-texto,
.info-flex:not(.invertida) .info-texto p {
  text-align: left;
}

.info-flex.invertida .info-texto,
.info-flex.invertida .info-texto p {
  text-align: left;
}

/* Texto */
.info-texto {
  flex: 1 1 55%;
  min-width: 280px;
}

.info-texto h3 {
  font-family: 'MediumBold', sans-serif;
  font-size: 2.5rem;
  color: #CE1225;
  margin-bottom: 1rem;
}

.info-texto p {
  font-family: 'FuturaMedium', sans-serif;
  font-size: 1.2rem;
  color: #707070;
  line-height: 1.5;
  text-align: center;
}

.info-texto .btn-outline {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid #CE1225;
  border-radius: 18px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.info-texto .btn-outline:hover {
  background-color: white;
  color: #CE1225;
}

.info-imagen {
  flex: 1 1 40%;
  text-align: center;
}

.info-imagen img {
  width: 100%;
  width: 690px;
  height: 591px;
  object-fit: cover;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
}

/* Afiliación */
#seccion-afiliacion {
  background-color: #F7F7F7;
  padding: 2rem;
  text-align: center;
}
#seccion-afiliacion .afiliacion-item {
  display: inline-block;
  vertical-align: top;
  width: 280px;
  margin: 1rem;
  text-align: center;
}
#seccion-afiliacion h2 {
  margin-top: 0.6rem;
  font-family: 'MediumBold', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #CE1225;
}
#seccion-afiliacion h4 {
  font-family: 'MediumBold', sans-serif;
  font-size: 1.5rem;
  color: #000000;
}
#seccion-afiliacion p {
  font-family: 'FuturaMedium', sans-serif;
  font-size: 1rem;
  color: #707070;
}
.contenedor-afiliacion {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 0;
  margin-top: -2rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.afiliacion-item {
  background-color: #F7F7F7;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
}

.afiliacion-item img {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

/* Objetivo */
#seccion-objetivo {
  background-color: white;
  padding: 2.2rem;
}
#seccion-objetivo h2 {
  font-family: 'MediumBold', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #CE1225;
  text-align: center;
}
.objetivo-contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  margin-top: -2rem;
}
.objetivo-texto {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: center;
}
.objetivo-texto p {
  font-size: 1.2rem;
  font-family: 'FuturaMedium', sans-serif;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #707070;
}
.objetivo-texto .btn-outline {
  display: inline-block;
  margin-top: 1rem;
  align-items: center;
}
.objetivo-imagen {
  flex: 1 1 305px;
  max-width: 410px;
  text-align: right;
  align-items: center;
}
.objetivo-imagen img {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

/* Frase */
.seccion.frase {
  font-family: 'FuturaMedium', sans-serif;
  background-color: #CE1225;
  color: #FFFFFF;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1.6;
}
.seccion.frase p{
  font-family: 'MediumBold', sans-serif;
  font-size: 1.3rem;
}

/* Publicaciones */
#seccion-publicaciones {
  background-color: #FFFFFF;
  text-align: center;
  padding-bottom: 4rem;
  padding: 1rem;
}

#seccion-publicaciones h2 {
  padding-top: 5rem;
  font-family: 'MediumBold', sans-serif;
  color: #CE1225;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}
#seccion-publicaciones p {
  font-family: 'MediumBold', sans-serif;
  font-size: 0.8rem;
  text-align: right;
  color: #ACACAC;
  padding-top: 0.rem;
}
.cards.publicaciones {
  display: flex;
  justify-content: center;
  flex-wrap:nowrap;
  gap: 0.2rem;
  margin: 0 auto;
}
.cards.cards.publicaciones img {
  width: 15rem;
  height: 15rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  text-align: center;
}
.btnInf {
  font-family: 'MediumBold', sans-serif;
  background-color: #FFFFFF;
  color: #CE1225;
  border: 2px solid #CE1225;
  padding: 0.5rem 1rem;
  text-decoration: none;
  width: 170px;  
  height: 40px;
  text-align: center;
}
.btnInf:hover {
  background-color: #FFFFFF;
  color: #CE1224;
}
.cards.publicaciones .card {
  width: 350px;
  height: 370px;
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin: 1rem 3rem;
  display: flex;
}

/* Próximos eventos */
#seccion-eventos {
  background-color: #F7F7F7;
  padding: 4rem 2rem;
  text-align: center;
}
#seccion-eventos h2 {
  font-family: 'MediumBold',sans-serif;
  font-size: 2rem;
  color: #CE1224;
  margin-top: -3rem;
  margin-bottom: 3rem;
  padding-top: 1rem;
}
.cards-eventos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 280px;
  flex: 1 1 240px;
  text-align: left;
}
.card h3 {
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 1rem;
  color: #333;
}**/

/* Sitios de interés */
#seccion-sitios {
  background-color: #FFFFFF;
  padding: 3rem 1rem;
  text-align: center;
}

#seccion-sitios h2 {
  font-family: 'MediumBold', sans-serif;
  margin-top: 2rem;
  font-size: 2rem;
  color: #CE1225;
  margin-bottom: 2rem;
  text-align: center;
}

.grid-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas en la primera fila */
  gap: 1rem;
  justify-items: center;
  padding: 4rem;
  margin-top: -5rem;
  margin-bottom: -3rem;
}

.grid-logos img {
  max-width: 10rem;
  height: auto;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.grid-logos img:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Estilo para segunda fila con solo 3 elementos */
.grid-logos img:nth-child(n+6) {
  grid-column: span 1;
}

/* Ajuste para centrar la fila de 3 elementos */
.grid-logos:has(img:nth-child(8)) {
  grid-template-rows: auto auto;
  grid-template-columns: repeat(5, 1fr);
}

/*BarraNavegacion*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /**background-color: #FFFFFF;**/
    padding: 0.8rem 2rem;
    z-index: 1000;
}

.navbar-container {
    min-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar-logo {
  height: 50px;
  gap: 2rem;
}

.navbar-texto {
  font-family: 'MediumBold', sans-serif;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: bold;
  color: #222222;
  gap: 1rem;
}

.navbar-menu {
  font-family: 'MediumBold', sans-serif;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 1.5rem;
}

.navbar-menu a {
  text-decoration: none;
  color: #222222;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: #CE1225;
}

/*Fuentes*/
@font-face {
  font-family: 'FuturaMedium';
  src: url('/fonts/futura\ light\ bt.ttf') format('woff2');
}
@font-face{
    font-family: 'MediumBold';
    src: url('/fonts/Futura\ Heavy\ font.ttf') format('woff2');
}