/* =================================
   VARIABLES Y ESTILOS GLOBALES
   ================================= */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-light: #ffffff;
    --text-dark: #333333;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow-x: hidden;
}

/* =================================
   BARRA DE NAVEGACIÓN
   ================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(22, 33, 62, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}
.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.dropdown-content a:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-join {
    display: flex;
}

/* =================================
   BOTONES
   ================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}
.btn-primary:hover {
    background-color: #d63447;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

/* =================================
   SECCIÓN HERO (INDEX) Y PAGE-HEADER (OTRAS PÁGINAS)
   ================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    width: 100%;
    background: url('../images/banner.png') no-repeat center center/cover;
    position: relative;
    padding: 0 2rem;
}

.page-header {
    padding: 150px 2rem 80px;
    background: url('../images/banner.png') no-repeat center center/cover;
    position: relative;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before,
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(8px);
    padding: 3rem 4rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.page-header .page-title,
.page-header .page-subtitle {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-light);
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* =================================
   CONTENIDO PRINCIPAL
   ================================= */
.main-content-wrapper {
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    color: var(--text-light);
}

.content-section h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p,
.content-section li {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.content-section ul {
    list-style-type: none;
    padding-left: 0;
}

.content-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* =================================
   FOOTER
   ================================= */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.social-links {
    margin-bottom: 1rem;
}
.social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.75rem;
}
.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}


/* =================================
   RESPONSIVE Y MENÚ HAMBURGUESA
   ================================= */
.hamburger {
    display: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--text-light);
    transition: 0.4s;
}

@media screen and (max-width: 992px) {
    .nav-menu, .nav-join {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    }
    .nav-item {
        width: 100%;
        text-align: center;
    }
    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: none;
    }
    .nav-link:hover, .nav-link.active {
        border-bottom: none;
        background-color: rgba(0,0,0,0.2);
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.2);
        transform: none;
        margin-top: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .hero-title, .page-title {
        font-size: 2.5rem;
    }
    .hero-subtitle, .page-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        padding: 2rem;
    }
    .main-content-wrapper {
        padding-top: 80px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   NUEVO FOOTER MEJORADO (CORREGIDO)
   ================================= */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; /* Aumentamos el espacio entre columnas */
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative; /* Necesario para la línea */
    margin-bottom: 1.5rem; /* Espacio entre el título y la lista de abajo */
    padding-bottom: 10px; /* Clave: Crea un espacio DEBAJO del texto para la línea */
}

/* LA LÍNEA DE ACENTO CORREGIDA */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Clave: Posiciona la línea al fondo del padding, justo debajo del texto */
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-about .footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-about p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--accent-color);
}

.footer .social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center; /* Centra los iconos verticalmente */
}

.footer .social-links a {
    font-size: 1.8rem;
    line-height: 1;
}

.footer .social-links img {
    width: 32px;
    height: auto;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0; /* Más espacio */
}

.footer-bottom p {
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive para el footer */
@media (max-width: 768px) {
    .footer-top {
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centra la línea roja en móvil */
    }
    .footer .social-links {
        justify-content: center;
    }
}