/* Estilos Generales */
:root {
    --color-primary: #084887;
    --color-secondary: #0466c8;
    --color-accent: #0353a4;
    --color-light: #f8f9fa;
    --color-dark: #212529;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --color-success: #56ab2f;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn-principal, .btn-contacto, .btn-enviar {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-principal:hover, .btn-contacto:hover, .btn-enviar:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
}

/* Encabezado */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-secondary);
}

.btn-contacto {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary);
}

/* Banner Principal */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Secciones */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Servicios */
.services {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.service-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-dark);
}

/* Nosotros */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.values {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.value {
    text-align: center;
    width: 30%;
}

.value i {
    font-size: 30px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Proyectos */
.projects {
    background-color: var(--color-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--color-dark);
    font-size: 18px;
}

.project-tag {
    display: inline-block;
    background-color: var(--color-success);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* Clientes */
.clients {
    background-color: var(--color-white);
    padding: 60px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Por qué elegirnos */
.why-us {
    background-color: var(--color-light);
    padding: 80px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-10px);
}

.why-item i {
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.why-item h3 {
    margin-bottom: 15px;
    color: var(--color-dark);
    font-size: 20px;
}

.why-item p {
    color: var(--color-gray);
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--color-primary);
    padding: 30px;
    border-radius: 8px;
    color: var(--color-white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    margin-right: 20px;
    color: var(--color-accent);
}

.info-item h4 {
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-enviar {
    width: 100%;
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .values {
        flex-direction: column;
        gap: 20px;
    }
    
    .value {
        width: 100%;
    }
}
/* Sección Nosotros */
.nosotros {
    background-color: #f9f9f9;
}

.nosotros-content {
    margin-top: 40px;
}

.nosotros-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 25px;
    margin: 0 10px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: #005D8F;
    color: #fff;
}

.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: flex;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.nosotros-imagen {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.nosotros-imagen img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nosotros-texto {
    flex: 1;
    min-width: 300px;
}

.nosotros-texto h3 {
    color: #005D8F;
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

.nosotros-texto h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #FFA500;
    bottom: -10px;
    left: 0;
}

.nosotros-texto p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Estilos específicos para la sección de valores */
.valores-lista {
    margin-top: 20px;
}

.valores-lista li {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.valores-lista i {
    color: #005D8F;
    font-size: 1.3rem;
    margin-right: 15px;
    margin-top: 5px;
}

.valores-lista h4 {
    color: #005D8F;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.valores-lista p {
    margin-bottom: 0;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .nosotros-imagen, .nosotros-texto {
        flex: 100%;
        margin-right: 0;
    }
    
    .nosotros-imagen {
        margin-bottom: 30px;
    }
}
/* Estilos mejorados para el logo en el footer */
.footer-logo {
    display: flex;
    flex-direction: column; /* Cambia a columna para que el logo esté arriba del texto */
    align-items: flex-start; /* Alinea a la izquierda */
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 150px; /* Ajusta el tamaño según necesites */
    height: auto;
    margin-bottom: 10px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

/* Ajustes responsivos para el footer en móviles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center; /* Centra en móviles */
    }
    
    .footer-logo-img {
        max-width: 180px; /* Aún más grande en móviles */
        margin-bottom: 15px;
    }
    
    .footer-logo-text {
        text-align: center;
    }
}


/* Banner con efecto de scroll y opacidad */
.banner-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }
}
/* Estilos para los botones Ver más */
.btn-ver-mas {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.btn-ver-mas:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Estilos para la ventana modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.5s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: 24px;
}

.modal-body {
    padding: 25px;
    display: flex;
    flex-wrap: wrap;
}

/* Estilos para la galería dentro del modal */
.modal-gallery {
    flex: 1;
    min-width: 300px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.main-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#mainProjectImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#mainProjectImage:hover {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: var(--color-primary);
}

/* Estilos para la descripción dentro del modal */
.modal-description {
    flex: 1;
    min-width: 300px;
}

.modal-description h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
}

.modal-description h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
}

.project-details {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item h4 {
    color: var(--color-secondary);
    margin-bottom: 8px;
    font-size: 16px;
}

.detail-item ul {
    padding-left: 20px;
}

.detail-item li {
    margin-bottom: 5px;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-gallery {
        margin-right: 0;
    }

    .main-image-container {
        height: 250px;
    }
}

/* Estilos para banner responsivo - Detecta automáticamente el dispositivo */
.banner-mobile {
    display: none; /* Oculto por defecto */
}

.banner-desktop {
    display: block; /* Visible por defecto (computadora) */
}

/* Media query que detecta automáticamente dispositivos móviles */
@media (max-width: 768px) {
    .banner-mobile {
        display: block; /* Muestra banner móvil en pantallas pequeñas */
        object-position: center; /* Centra la imagen */
    }
    
    .banner-desktop {
        display: none; /* Oculta banner desktop en pantallas pequeñas */
    }
}
/* JUSTIFICAR SOLO EL CUERPO DE TEXTO DE NOSOTROS */
.nosotros-texto p,
.valores-lista p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;         /* Interlineado */
    letter-spacing: 0.04em;   /* Espacio entre caracteres */
    margin-bottom: 22px;      /* Espacio después del párrafo */
}
.valores-lista p {
    text-align: justify;
    text-justify: inter-word;
}
/* JUSTIFICAR PÁRRAFOS EN EL MODAL DE PROYECTOS */
.modal-description p {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}
/* Tipografía mejorada para la sección Nosotros */
.nosotros-texto p,
.valores-lista p {
    font-size: 1.18rem;           /* Tamaño de letra moderno y legible */
    line-height: 1.7;             /* Interlineado amplio */
    letter-spacing: 0.06em;       /* Espacio entre caracteres */
    margin-bottom: 28px;          /* Espacio después de cada párrafo */
    color: #222738de;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 2px;
    text-align: justify;
    text-justify: inter-word;
}

.nosotros-texto p:last-child,
.valores-lista p:last-child {
    margin-bottom: 0;
}

/* Detalle visual: subrayado animado al pasar el cursor */
.nosotros-texto p:hover,
.valores-lista p:hover {
    color: #4e60cc;
}
.nosotros-texto p::after,
.valores-lista p::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #6f86d6 0%, #48c6ef 100%);
    transition: width 0.35s;
    border-radius: 2px;
}
.nosotros-texto p:hover::after,
.valores-lista p:hover::after {
    width: 60%;
}


