:root {
	/* Paleta basada en el logo de Anisora */
	--primary-color: #FF4500; /* Naranja rojizo intenso */
	--primary-hover: #D63900;
	--dark-bg: #121212;
	--card-bg: #1E1E1E;
	--text-white: #FFFFFF;
	--text-gray: #B0B0B0;
	--transition: all 0.3s ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Roboto', sans-serif;
	background-color: var(--dark-bg);
	color: var(--text-white);
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
}

a {
	text-decoration: none;
	color: inherit;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* --- BOTONES --- */
.btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 50px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: var(--transition);
	cursor: pointer;
	border: 2px solid transparent;
	font-size: 0.9rem;
	text-align: center;
}

.btn-primary {
	background-color: var(--primary-color);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.btn-primary:hover {
	background-color: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
}

.btn-outline {
	background-color: transparent;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: white;
}

.btn-block {
	width: 100%;
	text-align: center;
}

/* --- HEADER & NAV --- */
header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(18, 18, 18, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding: 15px 0;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

.nav-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: 50px; 
}

/* Menú Escritorio */
.nav-links {
	display: flex;
	gap: 30px;
	align-items: center;
}

.nav-links a {
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	position: relative;
}

/* Estilo del underline solo para enlaces normales, NO para botones */
.nav-links a:not(.btn)::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	bottom: -5px;
	left: 0;
	transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
	width: 100%;
}

.hamburger {
	display: none;
	cursor: pointer;
	font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
}

/* --- HERO SECTION --- */
.hero {
	height: 100vh;
	background: linear-gradient(rgba(0,0,0,0.6), rgba(18,18,18,1)), url('images/hero.webp'); 
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	text-align: center;
	position: relative;
	padding-top: 80px;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero h1 span {
	color: var(--primary-color);
}

.hero p {
	font-size: 1.2rem;
	color: #ddd;
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero-btns {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* --- SECCIONES GENERALES --- */
section {
	padding: 80px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 60px;
}

.section-title h2 {
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.section-title .line {
	width: 80px;
	height: 4px;
	background-color: var(--primary-color);
	margin: 0 auto;
	border-radius: 2px;
}

/* --- NOSOTROS --- */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.about-img {
	position: relative;
}

.about-img img {
	width: 100%;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	background-color: #333; 
}

.about-img::before {
	content: '';
	position: absolute;
	top: -20px;
	left: -20px;
	width: 100%;
	height: 100%;
	border: 3px solid var(--primary-color);
	border-radius: 10px;
	z-index: -1;
}

/* --- PRÓXIMOS EVENTOS --- */
.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.event-card {
	background-color: var(--card-bg);
	border-radius: 15px;
	overflow: hidden;
	transition: var(--transition);
	position: relative;
	border: 1px solid rgba(255,255,255,0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.event-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(255, 69, 0, 0.15);
	border-color: var(--primary-color);
}

.event-date {
	position: absolute;
	top: 15px;
	right: 15px;
	background-color: var(--primary-color);
	padding: 8px 15px;
	border-radius: 5px;
	font-weight: 700;
	font-size: 0.9rem;
	text-align: center;
}

.event-image {
	height: 200px;
	background-color: #333;
	position: relative;
	overflow: hidden;
}

.event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.event-details {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.event-details .btn {
	margin-top: auto;
}

.event-details h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--primary-color);
}

.event-details p {
	color: var(--text-gray);
	margin-bottom: 20px;
	font-size: 0.95rem;
}

/* --- SERVICIOS --- */
.services-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.service-item {
	background: var(--card-bg);
	padding: 40px 20px;
	text-align: center;
	border-radius: 10px;
	flex: 1 1 300px;
	max-width: 350px;
	transition: var(--transition);
}

.service-item:hover {
	background: #252525;
}

.service-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 20px;
}

/* --- PARTNERS (Renombrado para evitar AdBlockers) --- */
.partners-section {
	background-color: var(--primary-color);
	color: white;
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

/* Patrón de fondo sutil */
.partners-section::before {
	content: '';
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
	background-size: 20px 20px;
	opacity: 0.3;
	pointer-events: none;
}

.partners-section h2 {
	color: white;
	text-align: center;
	margin-bottom: 40px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Contenedor de las Pestañas */
.partners-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Franja de Pestañas (Gris oscuro estilo Anisora) */
.partners-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background-color: var(--card-bg); /* Gris Oscuro #1E1E1E */
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1); /* Borde sutil */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Botones de Pestaña */
.tab-btn {
    padding: 12px 25px;
    border: none;
    background-color: transparent;
    color: var(--text-gray); /* Texto gris claro */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: white;
    background-color: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background-color: var(--primary-color); /* Naranja Corporativo */
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Paneles de Contenido */
.partners-content {
    position: relative;
    z-index: 2;
    min-height: 200px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grilla de Logos */
.partners-grid {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 30px;
    margin-top: 30px;
}

.partner-logo {
	height: 90px;
	background-color: var(--card-bg);
	border-radius: 12px;
	padding: 15px 25px;
	width: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	color: white;
	font-size: 1.1rem;
	transition: var(--transition);
	border: 2px solid rgba(255,255,255,0.3);
    text-align: center;
}

.partner-logo:hover {
	background-color: white;
	color: var(--primary-color);
	transform: scale(1.05);
	box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: white;
}


/* --- CONTACTO FORMULARIO --- */
.contact-section {
	background-color: #151515;
	padding: 80px 0;
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: flex-start;
}

.contact-form {
	background-color: var(--card-bg);
	padding: 40px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
	margin-bottom: 20px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	color: var(--text-gray);
	font-size: 0.9rem;
	font-weight: 500;
}

.form-input, .form-select, .form-textarea {
	width: 100%;
	padding: 12px 15px;
	background-color: #2a2a2a;
	border: 1px solid #444;
	border-radius: 5px;
	color: white;
	font-family: inherit;
	font-size: 1rem;
	transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	background-color: #333;
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
}

/* --- FOOTER --- */
footer {
	background-color: #000;
	padding: 60px 0 20px;
	border-top: 3px solid var(--primary-color);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-logo img {
	width: 150px;
	margin-bottom: 20px;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.social-btn {
	width: 40px;
	height: 40px;
	background-color: #333;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
}

.social-btn:hover {
	background-color: var(--primary-color);
}

.contact-info li {
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-gray);
}

.contact-info i {
	color: var(--primary-color);
	width: 30px;
	text-align: center;
	flex-shrink: 0;
}

.contact-info a {
	color: inherit;
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #333;
	color: #666;
	font-size: 0.8rem;
}
div.isotipo-container{
	margin-top: 40px;
	width:100px;
}
div.isotipo-container img{
	width: 200px;
	max-width: 200px;
    margin-top: 30px;
    border-radius: 50%;
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.2rem;
	}

	.hero-btns {
		flex-direction: column;
		gap: 15px; /* Espaciado entre botones en móvil */
	}
	
	.hero-btns .btn {
		width: 100%; /* Botones ancho completo en móvil */
	}

	.nav-links {
		position: fixed;
		top: 70px;
		right: -100%;
		width: 70%;
		height: calc(100vh - 70px);
		background-color: #1a1a1a;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start; /* Cambio a start para mejor control */
		padding-top: 60px; /* Espacio superior interno */
		transition: 0.4s ease;
		box-shadow: -5px 0 15px rgba(0,0,0,0.5);
	}

	.nav-links.active {
		right: 0;
	}

	.nav-links li {
		margin-bottom: 25px;
		width: 100%;
		text-align: center;
	}

	/* Corrección Botón Contacto en Móvil */
	.nav-links .btn-primary {
		margin: 0 auto; /* Centrado */
		display: inline-block;
		width: 80%; /* Ancho controlado */
	}

	.hamburger {
		display: block;
	}
	
	.about-grid, .contact-container {
		grid-template-columns: 1fr;
	}
	
	.about-img {
		order: -1;
		margin-bottom: 20px;
	}
	
	.form-row {
		grid-template-columns: 1fr; /* Inputs uno debajo del otro en móvil */
	}

    /* --- RESPONSIVE PARTNERS TABS --- */
    .partners-tabs-container {
        width: 100%;
        margin: 0 auto;
        padding-bottom: 0; /* Sin espacio extra inferior */
        overflow-x: hidden; /* Evitar scroll horizontal */
    }

    .partners-tabs {
        flex-wrap: wrap; /* Permitir que los botones bajen a la siguiente línea */
        width: 100%;
        padding: 10px;
        margin: 0;
        background-color: var(--card-bg); /* Mantiene el fondo gris oscuro en móvil */
        border-radius: 20px; /* Bordes menos redondeados para apilar mejor */
        gap: 8px; /* Espacio entre botones */
    }

    .tab-btn {
        flex: 1 1 auto; /* Crecimiento flexible, base automática */
        font-size: 0.8rem;
        padding: 10px 15px;
        text-align: center;
        width: auto; /* Ancho automático según contenido */
        /* En pantallas muy pequeñas, pueden ocupar el 100% si se desea: flex: 1 1 100%; */
    }
    
    .partners-grid {
        gap: 20px;
    }
    
    .partner-logo {
        width: 140px;
        height: 70px;
        font-size: 0.9rem;
        padding: 10px;
    }
}