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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}
.video-fondo{
   width: 40%;
   
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #355872;
    color: black;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
}
/* Colores de redes sociales */

.redessociales{
    padding: 3rem;
    background: #213C51;
    color: white;
    text-align: center;
}
.redessociales a{
    color: #4CAF50;
}
/* página de bienvenida-Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70;
    background-color: #281C59;
    text-align: center;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-section p {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

/*Color del boton de Descubrir Mas*/
.btn-primary {
    background: red;
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #FF8C00;
    transform: translateY(-3px);
}

/* sección de tarjetas */
.cards-container {
    padding: 3rem;
    background: #7AAACE;
}

.cards-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: rgb(0, 0, 0);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    color: black;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: auto;
}

.card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.card p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

/* Seccion de contacto */
.contact-section {
    padding: 3rem;
    background: #213C51;
    color: white;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

#contact-form input, #contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
}

#contact-form button {
    background: black;
    border: none;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.3s;
}

#contact-form button:hover {
    background: #333;
}

/* Animacion de carga. */
#contact-form button.loading {
    background-color: #ccc; 
    cursor: not-allowed; 
    position: relative;
}

#contact-form button.loading::after {
    content: ''; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.flash-messages {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: auto;
}

.alert {
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    animation: fade-in-out 5s forwards;
}

.alert.success {
    background-color: #4CAF50;
}

.alert.danger {
    background-color: #F44336;
}

/* Animación para desaparecer el mensaje */
@keyframes fade-in-out {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Sección acerca de nosotros */
.about-section {
    padding: 3rem;
    text-align: center;
    background: #30364F;
    color: white;
}

.about-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-section p {
    font-size: 1.3rem;
}

/* pie de página */
footer {
    padding: 1.5rem;
    background: #FFF19B;
    color: black;
    text-align: center;
    font-size: 1rem;
}


/* Diseño responsivo */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
        background: #000;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 1rem;
    }

    .burger {
        display: flex;
    }
}
