/* Estilos generales */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 1.5em;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Sombra ligera */
    overflow-x: hidden; /* Evitar desplazamiento lateral */
}

body::before {
    content: "";
    background: url('https://cdn.glitch.global/1dd737f3-b60b-4cb1-ac60-92951be954e2/movil_version.webp?v=1742520854957') no-repeat center center fixed;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Coloca el fondo detrás del contenido */
}

@media (max-width: 768px) {
    body::before {
        background-size: cover; /* Mantener proporción original y cubrir toda la pantalla */
        background-position: center; /* Centrar el fondo */
    }
}

/* Cintilla superior de contacto */
.top-cintilla {
    background-color: #333;
    padding: 5px;
    text-align: center;
    font-size: .85em; /* Tamaño de fuente más pequeño */
    width: 100%;
    box-sizing: border-box;
}

.top-cintilla p {
    margin: 0; /* Eliminar márgenes */
    display: inline-block; /* Para centrar verticalmente */
    line-height: 1em; /* Ajustar altura de línea */
}

.top-cintilla a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
}

.top-cintilla a:hover {
    color: #63b3ff;
}

/* Cintilla de contacto */
.cintilla {
    background-color: #333;
    padding: 2px;
    text-align: center;
    font-size: 0.6em;
    width: 100%;
    box-sizing: border-box;
}

.cintilla a {
    color: #1e90ff;
    text-decoration: none;
    font-weight: bold;
}

.cintilla a:hover {
    color: #63b3ff;
}

/* Espacio después de la cintilla */
.space {
    height: 4cm; /* Espacio de 4 cm */
}

/* Sección de encabezado */
#header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 2cm; /* Bajar contenido 2 cm */
    flex-wrap: wrap; /* Permitir que el contenido se ajuste en dispositivos móviles */
}

#header-content .left {
    flex: 1;
    padding-right: 20px;
}

#header-content .right {
    flex: 1;
}

#header-content .button-container {
    display: flex;
    justify-content: flex-start;
}

.subheader {
    font-weight: normal; /* Menos grueso */
    font-size: 1em; /* Tamaño más pequeño */
}

h1 {
    font-size: 2em;
    margin: 0 0 10px;
}

h2 {
    font-size: 1.5em;
    margin: 0;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

/* Estilo para el botón */
button.join-us {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    margin-top: 20px;
    display: block; /* Para centrar el botón */
    margin-left: auto;
    margin-right: auto;
}

button.join-us:hover {
    transform: scale(1.1);
    background-color: #555;
}

/* Estilo para el pie de página */
footer {
    margin-top: 20px;
}

footer p {
    font-size: 0.8em;
    text-align: center;
    color: #fff;
}

/* Justificar texto a la izquierda */
.justify-left {
    text-align: justify;
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

/* Justificar listas a la izquierda */
.justify-left ul {
    text-align: justify;
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

/* Justificar texto centrado */
.justify-center {
    width: 80%; /* No abarcar todo el ancho */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    margin-top: 0.5cm; /* Subir contenido 1.5 cm */
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

/* Justificar listas centradas */
.justify-center ul {
    width: 80%; /* No abarcar todo el ancho */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    margin-top: 0.5cm; /* Subir contenido 1.5 cm */
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

/* Centrando título */
.center {
    text-align: center;
    margin-top: 1.5cm; /* Bajar contenido 1 cm */
}

/* Estilo de la tarjeta */
.card {
    background-color: rgba(30, 30, 30, 0.9); /* Gris mucho más oscuro */
    color: #ffffff;
    padding: 20px; /* Reducir padding */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px; /* Reducir margen */
    flex: 1;
    max-width: 100%; /* Asegurar que no se desborde */
    box-sizing: border-box; /* Incluir padding y border en el tamaño total */
}

.card h3 {
    font-size: 1.2em; /* Reducir tamaño de fuente */
    margin-top: 0; /* Quitar margen superior */
    margin-bottom: 10px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.card p {
    margin: 0;
    font-size: 0.9em; /* Reducir tamaño de fuente */
    line-height: 1.4; /* Reducir altura de línea */
    text-align: left;
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card ul li {
    margin-bottom: 10px;
    font-size: 0.9em; /* Reducir tamaño de fuente */
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

.card a {
    font-weight: bold;
    color: #1e90ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #63b3ff;
}

/* Contenedor de tarjetas */
.cards-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cards-container .card {
    flex: 1 1 calc(50% - 20px); /* Ajustar tamaño para dispositivos móviles */
    max-width: calc(50% - 20px); /* Asegurar que no se desborde */
}

@media (max-width: 768px) {
    .cards-container .card {
        flex: 1 1 100%; /* Ajustar tamaño a 100% en dispositivos móviles */
        max-width: 100%; /* Asegurar que no se desborde */
    }
}

/* Consideraciones adicionales */
.additional-considerations {
    width: 80%; /* No abarcar todo el ancho */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    margin-top: 20px;
    font-size: 0.9em;
    hyphens: auto; /* Permitir corte de palabras con guiones */
}

/* Estilos responsivos */
@media (max-width: 768px) {
    #header-content {
        flex-direction: column;
        text-align: center;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 600px;
    }
}

a {
  text-decoration: none; /* Quita el subrayado */
  color: inherit; /* Mantiene el color del botón */
}

@media (max-width: 768px) { /* Para pantallas móviles */
    .top-cintilla {
        font-size: 0.425em; /* La mitad de 0.85em */
    }
}

@media (max-width: 768px) {  
    footer p {
        font-size: 0.4em; /* La mitad de 0.8em */
    }
}

/* Evita el desplazamiento lateral */
html, body {
    overflow-x: hidden; /* Bloquea el desbordamiento horizontal */
    width: 100%;
}

/* Asegura que el contenido no se desborde */
* {
    max-width: 100%;
    box-sizing: border-box;
}