/* --- ESTILOS GENERALES Y VARIABLES --- */
:root {
    --primary-color: #d81b60;
    --dark-color: #333333;
    --light-gray-color: #f4f4f4;
    --white-color: #ffffff;
	--footer-color: #a9a5a5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-gray-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.5rem; color: var(--primary-color); text-align: center; }
h3 { font-size: 1.5rem; }


section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #a01449;
}


/* --- HEADER Y NAVEGACIÓN --- */
.main-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 120px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- SECCIÓN HERO (PRINCIPAL) --- */
.hero {
	background-color: var(--white-color);
	min-height: 85vh;
	display: flex;
	align-items: center;
	padding-top: 40px;
	padding-bottom: 40px;
}

.hero .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.hero-text {
	max-width: 50%;
}

.hero-text .title {
	font-size: 2.8rem;
	line-height: 1.2;
	font-weight: 900;
}

/* Replicando el estilo de colores del logo */
.hero-text .title .highlight {
	color: var(--primary-color);
}

.hero-text .subtitle {
	font-size: 1.2rem;
	margin-bottom: 30px;
}

.hero-image {
	max-width: 45%;
}

.hero-image img {
	width: 100%;
	max-width: 400px;
	animation: float 4s ease-in-out infinite;
	border-radius:10px;
}

/* Animación para el logo */
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

.btn {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 15px 30px;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
	transform: scale(1.05);
	background-color: #a01449;
}
/* --- OTRAS SECCIONES --- */
#que-es, #quienes-somos {
	background-color: var(--light-gray-color);
}

.section-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.1rem;
}

/* --- SECCIÓN INSCRÍBETE / CONTACTO --- */
#inscribete {
	background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?q=80&w=2070&auto=format&fit=crop);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: var(--white-color);
}

#inscribete h2 {
	color: var(--white-color);
}

.contact-form {
	max-width: 600px;
	margin: 30px auto 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form input, .contact-form textarea {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 5px;
	font-family: 'Montserrat', sans-serif;
}

.contact-form .btn {
	border: none;
	cursor: pointer;
	align-self: center;
}

/* --- ESTILOS PARA LA PÁGINA DE LISTADO DE NOTICIAS --- */
.page-header {
    background-color: var(--white-color);
    padding: 40px 0;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-top: 0;
}

.card-content p {
    margin-bottom: 20px;
    color: #666;
}


/* --- ESTILOS PARA LA PÁGINA DE DETALLE DE NOTICIA --- */
#news-detail {
    background-color: var(--white-color);
    padding: 60px 0;
}

.news-detail-container {
    max-width: 800px; /* Ancho ideal para la lectura */
    margin: 0 auto;
    padding: 0 20px;
}

.news-detail-container .featured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.news-meta {
    color: #888;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}


/* --- FOOTER --- */
.main-footer {
	background-color: var(--footer-color);
	color: var(--white-color);
	text-align: center;
	padding: 40px 20px;
}
.main-footer img {
	width: 150px;
	margin-bottom: 20px;
	margin-left:15px;
	/*filter: brightness(0) invert(1); /* Pone el logo en blanco */
}

/* --- TARJETA DEL LÍDER DEL PROYECTO --- */
.leader-section {
    margin-bottom: 4rem;
}

.leader-card {
    max-width: 56rem;
    margin: auto;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.leader-card-image {
    width: 100%;
}

.leader-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leader-card-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a202c;
}

.leader-card-content .position {
    color: #d63384;
    font-weight: 600;
    margin-top: 0.25rem;
}

.leader-card-content .description {
    color: #4a5568;
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.625;
}

/* --- GRID Y TARJETAS DEL EQUIPO --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
	margin-bottom:20px;
}

.team-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.team-card:hover {
    transform: translateY(-6px);
}

.team-card img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
}

.team-card-content {
    padding: 1.5rem;
}

.team-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.team-card p {
    color: #4a5568;
    font-weight: 500;
}

.team-grid-section { 
	max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1rem;
}