:root {
    --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-primary: "Roboto", sans-serif;
    --font-secondary: "Work Sans", sans-serif;
    --color-default:#076aec;
    --color-primary:#f70909;
    --color-secondary:#646566;
    --color-header-h1:#f1f2f5; /* Nuevo color del h1 */
}
    

body {
    font-family: 'Times New Roman', Times, serif;
    color: var(--color-default);
    overflow-x: hidden;
    margin: 0;
    display: flex;
    flex-direction: column; /* Alinea los elementos en una columna */
}

header {
    background-color: rgb(5, 120, 196); /* Color azul claro con 50% de transparencia */
    padding: 10px; /* Ajustar el relleno según sea necesario */
    text-align: center; /* Centra el contenido horizontalmente */
}

header h1 {
    margin-bottom: 20px; /* Agrega margen inferior para separar del menú */
    color: var(--color-header-h1); /* Aplica el nuevo color */
}

header img {
    font-weight: bold;
    font-size: 20px; /* Ajusta el tamaño de la letra */
}

/* Estilos de la barra de navegación */
.navbar {
    
    justify-content: center; /* Centra horizontalmente */
    margin-bottom: 0; /* Agrega espacio entre el menú y las tarjetas */
}

.navbar ul {
    list-style-type: none; /* Quita los puntos de la lista */
    padding: 5px;
    margin: 5px;
}

.navbar li {
   
    margin-right: 30px; /* Espacio entre cada elemento de la lista */
    color: rgb(7, 7, 7) !important; /* Color azul para los <li> con !important */
}

.navbar a {
    text-decoration: color(from color srgb r g b);
    color: rgb(252, 253, 253) !important; /* Color verde para los enlaces <a> con !important */
    font-weight: bold;
    font-size: 18px; /* Ajusta el tamaño de la letra */

}
.navbar h5 {
    text-decoration: none;
    color: rgb(8, 8, 8) !important; /* Color verde para los enlaces <a> con !important */
    font-weight: bold;
    font-size: 18px; /* Ajusta el tamaño de la letra */

}
/*Sección de titulo*/

  

.main-title {
    
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #f6f7f8; /* Cambia el color según tus preferencias */
    background-color: rgb(226, 23, 23);
    margin: 30px 0;
    padding: 5px;
    border-radius: 5px; /* Corrige a 5px */
    box-shadow: 0 5px 11px rgba(20, 20, 20, 0.774);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; 
     

}




/* Sección de tarjetas */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px;
}
.card {
    background-color: #f0f6fa;
    border-radius: 10px;
    box-shadow: 0 5px 11px rgba(0, 0, 0, 0.685);
    overflow: hidden;
    width: 90%;
    max-width: 250px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    margin: 10px; /* Agrega margen para espaciar las tarjetas */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.925);
}

.card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/13; /* Mantiene una relación de aspecto fija */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la relación de aspecto y recorta el exceso */
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #121313;
}

.card-content h4 {
    margin: 0 0 20px;
    color: #524c4c;
    flex-grow: 1;
}
.card-content h5 {
    margin: 0 0 20px;
    color: #524c4c;
    flex-grow: 1;
}


.download-btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fffdfd;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    align-self: center;
    background-color: #d4361a; /* Color de fondo del botón */
}

.download-btn:hover {
    opacity: 0.8;
}

/* Media Queries para mejorar la responsividad */
@media (max-width: 768px) {
    .card {
        width: 100%;
        max-width: none; /* Permitir que las tarjetas ocupen todo el ancho en pantallas pequeñas */
    }

    .card-content h3 {
        font-size: 1.2em;
    }

    .card-content h4 {
        font-size: 1em;
    }

    .download-btn {
        padding: 8px 16px;
        font-size: 1em;
    }
}


/* Apariencia de body en general */
a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: #ffc732;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
}

/* Sections & Section Header */
section {
    padding: 80px 20px;
    overflow: hidden;
}

.section-bg {
    background-color: #1374d4;
}

.section-header {
    text-align: center;
    padding-bottom: 70px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    color: #2371d8;
}

.section-header h2:before,
.section-header h2:after {
    content: "";
    width: 50px;
    height: 2px;
    background: var(--color-primary);
    display: inline-block;
}

.section-header h2:before {
    margin: 0 15px 10px 0;
}

.section-header h2:after {
    margin: 0 0 10px 15px;
}

.section-header p {
    margin: 0 auto 0 auto;
}

@media (min-width: 1199px) {
    .section-header p {
        max-width: 60%;
    }
}

/* Disable aos animation delay on mobile devices */
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/* Header */
.header {
    z-index: 997;
    position: absolute;
    padding: 30px 0;
    top: 0;
    left: 0;
    right: 0;
}

.header .logo img {
    max-height: 40px;
    margin-right: 6px;
}

.header .logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-header-h1); /* Aplica el nuevo color */
    margin-bottom: 0;
    font-family: var(--font-primary);
}

.header .logo h1 span {
    color: var(--color-primary);
}

/* Desktop Navigation */
@media (min-width: 1280px) {
    .navbar {
        padding: 0;
    }

    .navbar ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navbar li {
        position: relative;
    }

    .navbar>ul>li {
        white-space: nowrap;
        padding: 10px 0 10px 28px;
    }

    .navbar a,
    .navbar a:focus {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 3px;
        font-family: var(--font-primary);
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        white-space: nowrap;
        transition: 0.3s;
        position: relative;
    }

    .navbar a i,
    .navbar a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
    }

    .navbar>ul>li>a:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -6px;
        left: 0;
        background-color: var(--color-primary);
        visibility: hidden;
        width: 0px;
        transition: all 0.3s ease-in-out 0s;
    }

    .navbar a:hover:before,
    .navbar li:hover>a:before,
    .navbar .active:before {
        visibility: visible;
        width: 100%;
    }

    .navbar a:hover,
    .navbar .active,
    .navbar .active:focus,
    .navbar li:hover>a {
        color: #fff;
    }

    .navbar .dropdown ul {
        display: block;
        position: absolute;
        left: 28px;
        top: calc(100% + 30px);
        margin: 0;
        padding: 10px 0;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        background: #fff;
        box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
        transition: 0.3s;
    }
}

/* Mobile Navigation */
@media (max-width: 1279px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        bottom: 0;
        transition: 0.3s;
        z-index: 9997;
    }

    .navbar ul {
        position: absolute;
        inset: 0;
        padding: 50px 0 10px 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.9); /* Añadir el valor alfa para la transparencia */
    }
}

/* Botón de opciones de página solo para pantallas de celulares */
.page-options-btn {
    display: none;
}

@media (max-width: 768px) {
    .page-options-btn {
        display: block;
    }
}

.portfolio-flters {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.portfolio-flters li {
    margin: 0 10px;
}

ul.portfolio-flters {
    list-style-type: none;
}

/* Footer */
.footer {
    background-color: #0488f5;
    color: #fff;
    padding: 40px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-links,
.footer-social,
.footer-info {
    flex: 1 1 200px;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-social ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: #d4361a;
}

.footer-social ul li {
    display: inline-block;
    margin-right: 10px;
}

.footer-social ul li a {
    font-size: 1.5em;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info p:not(:last-child) {
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar li {
        margin-right: 20px;
    }
    .navbar a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 20px;
    }
    .card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar li {
        margin-right: 10px;
    }
    .navbar a {
        font-size: 14px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .card-content h3 {
        font-size: 1.2em;
    }
    .card-content p {
        font-size: 0.9em;
    }
    .footer-container {
        padding: 0 10px;
    }
}
