* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Lato", sans-serif;
    ;
    line-height: 1.8;
    color: #333;
    background: #f5f7fa;
    padding-top: 80px;
}

/* Simple fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Header Styles */
/* header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 60px 20px;
text-align: center;
animation: fadeIn 0.8s ease-out;
} */
.header {
    --background-color: #183B6D;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 20px 0;
    transition: all 0.5s;
    z-index: 997;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .logo img {
    max-height: 40px;
    margin-right: 15px;
    /* Ajusta el margen izquierdo */
}

.header .logo h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    color: var(--heading-color);
}

/* Ajustes para Contenedor de Header */
.header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    /* Padding consistente para todos los dispositivos */
    gap: 60px;
}

.header .navmenu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-nav-toggle:hover {
    color: #ffdd57;
}

/* Horizontal Navigation Menu Styles - Desktop */
.navmenu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.navmenu ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.navmenu ul li a {
    display: inline-block;
    padding: 8px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
    color: #ffdd57;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Media Queries - Responsive Design */

/* Large Desktop */
@media (max-width: 1300px) {
    .header .container-fluid {
        padding: 0 15px;
    }

    .header .logo img {
        max-height: 35px;
    }

    .navmenu ul {
        gap: 15px;
    }

    .navmenu ul li a {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .header .container-fluid {
        padding: 0 10px;
    }

    .navmenu ul {
        gap: 10px;
    }

    .navmenu ul li a {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Tablet - Show hamburger menu */
@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }

    .header .logo img {
        max-height: 35px;
    }

    .navmenu ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        max-width: 80%;
        height: calc(100vh - 80px);
        background-color: #0066cc;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .navmenu ul.mobile-nav-active {
        right: 0;
    }

    .navmenu ul li {
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navmenu ul li a {
        width: 100%;
        padding: 15px 10px;
        font-size: 16px;
        display: block;
        border-radius: 0;
    }

    .navmenu ul li a:hover,
    .navmenu ul li a.active {
        background-color: rgba(255, 255, 255, 0.15);
        padding-left: 20px;
    }

    .navmenu .header-social-links {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .header .logo img {
        max-height: 30px;
    }

    .navmenu ul {
        top: 70px;
        height: calc(100vh - 70px);
        width: 280px;
    }

    body {
        padding-top: 70px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header .logo img {
        max-height: 25px;
    }

    .navmenu ul {
        width: 100%;
        max-width: 100%;
    }
}

.scrolled .header {
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Override navmenu default styles for social links */
.navmenu .header-social-links {
    display: flex !important;
    gap: 12px;
    align-items: center;
    padding: 0;
    margin-left: 10px;
}

.navmenu .header-social-links a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.navmenu .header-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
    transform: translateY(-2px);
}

.navmenu .header-social-links a i {
    font-size: 18px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any inherited navmenu ul styles */
.navmenu ul .header-social-links {
    list-style: none;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    padding-left: 5px;
    margin:0px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    /* padding: 40px 20px; */
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 0;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 20px;
    text-align: center;
    font-size: 0.95em;
    color: #555;
    background: white;
}

/* Content Card */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

h2 {
    font-family: "Lato", sans-serif;
    ;
    color: #183B6D;
    font-size: 1.8em;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 0.5px solid #626264;
}

p {
    margin-bottom: 15px;
    line-height: 1.9;
    font-family: "Lato", sans-serif;
}

/* Project Info */
.project-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.info-label {
    font-weight: bold;
    color: #183B6D;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.info-value {
    color: #555;
    font-size: 0.95em;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: left;
    padding: 30px 20px;
    margin-top: 60px;
}

footer h3 {
    margin-bottom: 10px;
}

.company-info {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.9;
}

.company-info p {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .project-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    .content-card {
        padding: 25px;
    }

    .project-info {
        grid-template-columns: 1fr;
    }
}

.footer {
    --background-color: #000000;
    --heading-color: #ffffff;
    --default-color: #ffffff;
    --contrast-color: #ffffff;
    --accent-color: #ffdd57;
    color: #ffffff;
    background-color: var(--background-color);
    background: url("../img/footer/footer.jpg") top center no-repeat;
    background-size: cover;
    font-size: 14px;
    padding-bottom: 50px;
    position: relative;
}

.footer .container-fluid {
    position: relative;
    z-index: 2;
}

.footer:before {
    content: "";
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    inset: 0;
    z-index: 1;
}

.footer .footer-top {
    padding-top: 20px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 100px;
    padding-right: 100px;
}

.footer .footer-about .logo {
    line-height: 1;
    margin-bottom: 25px;
}

.footer .footer-about .logo img {
    max-height: 40px;
    margin-right: 6px;
}

.footer .footer-about .logo span {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer .footer-about p {
    font-size: 14px;
    font-family: var(--heading-font);
    color: #ffffff;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 16px;
    color: #ffffff;
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: #ffdd57;
    border-color: #ffdd57;
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
    color: #ffffff;
}

.footer .footer-links {
    margin-bottom: 30px;
}

.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-links ul i {
    padding-right: 2px;
    font-size: 12px;
    line-height: 0;
    color: #ffffff;
}

.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: right;
    color: #ffffff;
}

.footer .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-links ul a {
    color: #ffffff;
    display: inline-block;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-links ul a:hover {
    color: #ffdd57;
}

.footer .footer-contact p {
    margin-bottom: 5px;
    color: #ffffff;
}

.footer .copyright {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright p {
    margin-bottom: 0;
    color: #ffffff;
}

.footer .credits {
    margin-top: 8px;
    font-size: 13px;
    color: #ffffff;
}

/* Additional footer visibility fixes */
.footer * {
    position: relative;
    z-index: 2;
}

.footer .footer-about,
.footer .footer-links,
.footer .footer-contact {
    color: #ffffff;
}

.footer strong {
    color: #ffffff;
}

.footer span {
    color: #ffffff;
}

.footer .sitename {
    color: #ffffff;
}

.custom-link {
    color: #ffffff;
    /* Cambia este valor al color que prefieras */
    text-decoration: none;
    /* Opcional: para quitar el subrayado */
}

.custom-link:hover {
    color: #ffdd57;
    /* Color al pasar el cursor */
}
