/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
    color: #333;
    background-color: #fff;
}

section {
    padding: 80px 0;
}

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

.btn {
    display: inline-block;
    background-color: #001F5B;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #003082;
    transform: translateY(-2px);
}

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

/* Menú de navegación fixed */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background-color: #001F5B;
}

.header.scrolled .nav-links a {
    color: white;
}

.header.scrolled .nav-links a:hover {
    color: #fff;
}

.header.scrolled .nav-links a::after {
    background-color: white;
}

.header.scrolled .logo {
    color: white;
}

.header.scrolled .menu-toggle {
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #001F5B;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #001F5B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #001F5B;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Banner */
.banner {
    height: 100vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2670&auto=format&fit=crop'); */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/panorama.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

.banner-content .btn {
    animation: fadeInUp 1.2s ease;
}

/* Responsive - Móvil - MENÚ CORREGIDO */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed; /* Cambiado de 'fixed' a 'fixed' pero con mejores valores */
        top: 0; /* Cambiado de '80px' a '0' para que cubra toda la pantalla */
        left: -100%;
        width: 100%;
        height: 100vh; /* Cambiado de 'calc(100vh - 80px)' a '100vh' */
        background-color: white;
        flex-direction: column;
        align-items: flex-start; /* Cambiado de 'center' a 'flex-start' para alinear a la izquierda */
        justify-content: flex-start; /* Cambiado de 'center' a 'flex-start' */
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999; /* Agregado z-index alto para estar sobre todo */
        padding-top: 90px; /* Espacio aumentado para el logo más grande */
        padding-left: 30px; /* Padding izquierdo para alineación */
        padding-right: 30px;
        overflow-y: auto; /* Por si acaso hay muchos elementos */
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0; /* Aumentado el espaciado vertical */
        width: 100%; /* Ocupa todo el ancho disponible */
        text-align: left; /* Alineación a la izquierda */
    }
    
    .nav-links a {
        font-size: 18px; /* Texto más grande para móvil */
        font-weight: 500;
        color: #001F5B;
        text-decoration: none;
        display: block;
        padding: 15px 0; /* Más área clickeable */
        border-bottom: 1px solid #f0f0f0; /* Separador visual */
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        color: #003082;
        padding-left: 10px; /* Efecto de hover que mueve el texto */
    }
    
    /* Asegurar que el header tenga z-index correcto */
    .header {
        z-index: 10000; /* Mayor que el menú */
    }
    
    /* Estilo para cuando el header tiene scroll (mantener menú visible) */
    .header.scrolled .nav-links {
        background-color: white; /* Mantener fondo blanco */
    }
    
    .header.scrolled .nav-links a {
        color: #001F5B; /* Mantener texto azul en menú móvil */
    }
    
    .header.scrolled .nav-links a:hover {
        color: #003082;
    }
    
    /* Resto del código móvil existente */
    .banner {
        height: 80vh;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
    }
    
    .services-grid::before,
    .services-grid::after {
        display: none;
    }
    
    .service-column {
        gap: 10px;
        padding: 0 5px;
    }
    
    .service-item {
        padding: 0;
    }
    
    .service-main {
        padding: 22px 45px 22px 18px;
    }
    
    .service-icon {
        width: 42px;
        height: 42px;
    }
    
    .service-icon i {
        font-size: 22px;
    }
    
    .service-content h3 {
        font-size: 14px;
    }
    
    .service-content p {
        font-size: 11px;
    }
    
    .service-arrow {
        width: 38px;
    }
    
    .service-arrow i {
        font-size: 12px;
    }
    
    .about-text h2,
    .illustration-text h2,
    .services-title h2,
    .contact-title h2 {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-map {
        height: 300px;
    }
}




/* Sobre nosotros */
.about {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #001F5B;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.about-image:hover {
    transform: scale(1.02);
}

/* Servicios */
.services-content {
    margin-top: 40px;
}

.services-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-title h2 {
    font-size: 36px;
    color: #001F5B;
    margin-bottom: 15px;
}

.services-title p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.services-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 400;
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    justify-content: center;
    align-items: start;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
/* division primera columna service */
.services-grid::before {
    content: '';
    position: absolute;
    left: 33.33%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ffffff;
}


/* division segunda columna service */

.services-grid::after {
    content: '';
    position: absolute;
    left: 66.66%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ffffff;
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
    align-items: center;
    justify-content: flex-start;
}

.service-item {
    background-color: white;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5;
    display: block;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 31, 91, 0.08);
    /* border-color: rgba(0, 31, 91, 0.3); */
}

.service-main {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 60px 30px 25px;
    width: 100%;
    box-sizing: border-box;
}

.service-icon {
    width: 55px;
    height: 55px;
    background-color: #001F5B;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 26px;
    color: white;
}

.service-item:hover .service-icon {
    background-color: #003082;
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-content h3 {
    font-size: 16px;
    color: #001F5B;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.2;
}

.service-content p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.service-arrow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    background-color: #e6f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0 6px 6px 0;
    opacity: 0;
    transform: translateX(100%);
}

.service-arrow i {
    font-size: 16px;
    color: #001F5B;
    transition: all 0.3s ease 0.1s;
    opacity: 0;
    transform: translateX(10px);
}

.service-item:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-item:hover .service-arrow i {
    opacity: 1;
    transform: translateX(0);
}

.service-arrow:hover {
    background-color: #001F5B !important;
}

.service-arrow:hover i {
    color: white !important;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #001F5B;
}

.service-info p {
    color: #666;
    line-height: 1.6;
}

/* Ilustración y contenido */
.illustration-section {
    background-color: #f9f9f9;
}

.illustration-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.illustration-text {
    flex: 1;
}

.illustration-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #001F5B;
}

.illustration-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.illustration-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.illustration-image:hover {
    transform: scale(1.02);
}

/* Contacto */
.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-title {
    text-align: center;
    margin-bottom: 50px;
}

.contact-title h2 {
    font-size: 36px;
    color: #001F5B;
    margin-bottom: 15px;
}

.contact-title p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.contact-map {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #001F5B;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #001F5B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 31, 91, 0.2);
}

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

/* Footer */
.footer {
    background-color: #001F5B;
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #001F5B;
    transform: translateY(-3px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Clases para animaciones al scroll */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .about-content,
    .illustration-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .illustration-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .about-text,
    .illustration-text {
        order: 2;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
    }
    
    .services-grid::before {
        left: 50%;
    }
    
    .services-grid::after {
        display: none;
    }
    
    .service-column {
        gap: 12px;
        padding: 0 8px;
    }
    
    .service-item {
        padding: 0;
    }
    
    .service-main {
        padding: 25px 50px 25px 20px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .service-content h3 {
        font-size: 15px;
    }
    
    .service-content p {
        font-size: 11px;
    }
    
    .service-arrow {
        width: 42px;
    }
    
    .service-arrow i {
        font-size: 14px;
    }
    
    .logo img {
        height: 70px;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: white;
        flex-direction: column;
        align-items: start;
        justify-content: start;
        transition: left 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .banner {
        height: 80vh;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
    }
    
    .services-grid::before,
    .services-grid::after {
        display: none;
    }
    
    .service-column {
        gap: 10px;
        padding: 0 5px;
    }
    
    .service-item {
        padding: 0;
    }
    
    .service-main {
        padding: 22px 45px 22px 18px;
    }
    
    .service-icon {
        width: 42px;
        height: 42px;
    }
    
    .service-icon i {
        font-size: 22px;
    }
    
    .service-content h3 {
        font-size: 14px;
    }
    
    .service-content p {
        font-size: 11px;
    }
    
    .service-arrow {
        width: 38px;
    }
    
    .service-arrow i {
        font-size: 12px;
    }
    
    .about-text h2,
    .illustration-text h2,
    .services-title h2,
    .contact-title h2 {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .contact-map {
        height: 300px;
    }
}

/* Responsive - Móvil pequeño */
@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .about-text h2,
    .illustration-text h2,
    .services-title h2,
    .contact-title h2 {
        font-size: 24px;
    }
    
    .service-info h3 {
        font-size: 18px;
    }
    
    .logo img {
        height: 65px;
    }
}


/* Galería de Proyectos */
.projects-gallery {
    background-color: white;
    position: relative;
}

.gallery-title {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title h2 {
    font-size: 36px;
    color: #001F5B;
    margin-bottom: 15px;
}

.gallery-title p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    transition: transform 0.5s ease;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 31, 91, 0.9), rgba(0, 48, 130, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gallery-info p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.gallery-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controles de navegación */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background-color: #001F5B;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: -25px;
}

.gallery-next {
    right: -25px;
}

.gallery-nav i {
    font-size: 18px;
    color: #001F5B;
    transition: color 0.3s ease;
}

.gallery-nav:hover i {
    color: white;
}

/* Indicadores */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: #001F5B;
    transform: scale(1.2);
}

/* Animaciones para el carrusel */
.gallery-slide-enter {
    transform: translateX(100%);
    opacity: 0;
}

.gallery-slide-exit {
    transform: translateX(-100%);
    opacity: 0;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-title h2 {
        font-size: 32px;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
    }
    
    .gallery-nav i {
        font-size: 16px;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-title {
        margin-bottom: 40px;
    }
    
    .gallery-title h2 {
        font-size: 28px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav i {
        font-size: 14px;
    }
    
    .gallery-prev {
        left: -20px;
    }
    
    .gallery-next {
        right: -20px;
    }
    
    .gallery-info h3 {
        font-size: 18px;
    }
    
    .gallery-info p {
        font-size: 13px;
    }
}

/* Responsive - Móvil pequeño */
@media (max-width: 480px) {
    .gallery-nav {
        display: none;
    }
    
    .gallery-title h2 {
        font-size: 24px;
    }
    
    .gallery-info {
        padding: 15px;
    }
    
    .gallery-info h3 {
        font-size: 16px;
    }
    
    .gallery-info p {
        font-size: 12px;
    }
}



/* Modal de imagen - VERSIÓN CORREGIDA */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #001F5B;
    transform: scale(1.1);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.modal-nav {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    transform: translateY(-50%);
}

.modal-nav:hover {
    background-color: #001F5B;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.modal-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: calc(90vh - 180px); /* Ajuste para dejar espacio a la información */
    background-color: #f8f9fa;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.modal-image.loading {
    opacity: 0;
}

.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-loading.active {
    opacity: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #001F5B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.modal-info {
    padding: 25px 30px;
    background-color: white;
    border-top: 1px solid #eee;
    flex-shrink: 0; /* Importante: evita que se comprima */
    min-height: 120px; /* Altura mínima garantizada */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #001F5B;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-category {
    display: inline-block;
    background-color: #001F5B;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.modal-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* Cursor pointer para imágenes clickeables */
.gallery-image {
    cursor: pointer;
    position: relative;
}

.gallery-image:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .gallery-image:hover::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Mejoras para pantallas grandes (Desktop) */
@media (min-width: 992px) {
    .modal-content {
        max-width: 1200px;
        max-height: 85vh;
    }
    
    .modal-image-container {
        max-height: calc(85vh - 200px); /* Más espacio para la información */
        min-height: 400px;
    }
    
    .modal-info {
        padding: 30px 40px;
        min-height: 140px;
    }
    
    .modal-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .modal-description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .modal-category {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Responsive - Tablet */
@media (max-width: 991px) and (min-width: 769px) {
    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
    }
    
    .modal-image-container {
        min-height: 350px;
        max-height: calc(90vh - 160px);
    }
    
    .modal-info {
        padding: 25px 30px;
        min-height: 120px;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .image-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 0;
    }
    
    .modal-image-container {
        min-height: 250px;
        max-height: calc(95vh - 180px);
    }
    
    .modal-navigation {
        padding: 0 10px;
    }
    
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }
    
    .modal-info {
        padding: 20px;
        min-height: 140px;
    }
    
    .modal-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .modal-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .modal-category {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .modal-counter {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-image-container {
        min-height: 200px;
        max-height: calc(100vh - 200px);
    }
    
    .modal-info {
        padding: 15px 20px;
        min-height: 160px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-description {
        font-size: 13px;
    }
}

/* Ajustes adicionales para asegurar visibilidad del contenido */
@media (min-height: 600px) {
    .modal-image-container {
        min-height: 350px;
    }
}

@media (min-height: 800px) {
    .modal-image-container {
        min-height: 450px;
    }
}

/* ==============================================
   ESTILOS PARA ENLACES "VER PROYECTOS"
   Agregar al final del archivo indes-landing-css.css
   ============================================== */

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #001F5B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.service-link span {
    transition: transform 0.3s ease;
}

.service-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #003082;
}

.service-link:hover span {
    transform: translateX(3px);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Línea sutil que aparece al hover */
.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #001F5B;
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .service-link {
        font-size: 13px;
        margin-top: 12px;
    }
    
    .service-link i {
        font-size: 11px;
    }
}

/* ==============================================
   CSS ULTRA MINIMALISTA Y COMPACTO - CONTACTO
   Agregar al archivo indes-landing-css.css
   ============================================== */

/* Contenedor principal - minimalista */
.contact-info {
    flex: 1;
    background: #fff;
    padding: 24px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

/* Título compacto */
.contact-info h3 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #001F5B;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Item de contacto - ultra compacto */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 6px 0;
    transition: background-color 0.15s ease;
}



.contact-item:hover {
    background-color: #f9f9f9;
    /* //padding-left: 4px; */
    border-radius: 2px;
    cursor: pointer;
}

/* Icono minimalista */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #001F5B;
    color: white;
    border-radius: 2px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.contact-item:hover .contact-icon {
    background-color: #003082;
}

.contact-icon i {
    font-size: 11px;
}

/* Detalles compactos */
.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h4 {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.contact-details p {
    font-size: 13px;
    color: #333;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Enlaces limpios */
.contact-details a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-details a:hover {
    color: #001F5B;
    text-decoration: underline;
}

/* Responsive ultra compacto */
@media (max-width: 991px) {
    .contact-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .contact-map {
        order: 2;
        height: 280px;
    }
    
    .contact-info {
        order: 1;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        padding: 16px;
    }
    
    .contact-info h3 {
        font-size: 16px;
        margin-bottom: 14px;
        text-align: center;
    }
    
    .contact-item {
        margin-bottom: 10px;
        padding: 4px 0;
    }
    
    .contact-icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
    
    .contact-icon i {
        font-size: 10px;
    }
    
    .contact-details h4 {
        font-size: 10px;
    }
    
    .contact-details p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        padding: 12px;
    }
    
    .contact-info h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .contact-item {
        margin-bottom: 8px;
        padding: 6px 8px;
        background-color: #fafafa;
        border-radius: 2px;
        border-left: 2px solid #001F5B;
    }
    
    .contact-item:hover {
        background-color: #f5f5f5;
        padding-left: 8px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .contact-icon i {
        font-size: 9px;
    }
    
    .contact-details h4 {
        font-size: 9px;
        margin-bottom: 0;
    }
    
    .contact-details p {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Estados de interacción sutiles */
.contact-item .contact-details {
    transition: color 0.15s ease;
}

.contact-item:hover .contact-details h4 {
    color: #001F5B;
}

/* Optimización para direcciones largas */
.contact-details p {
    max-width: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Micro-animación para feedback */
.contact-icon {
    transform-origin: center;
}

