 :root {
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --light-blue: #e3f2fd;
    --dark-gray: #343a40;
    --medium-gray: #6c757d;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 123, 255, 0.7)), url('fondo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 86, 179, 0.4);
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary-blue);
    bottom: -10px;
    left: 0;
}

.bg-light-custom {
    background-color: var(--light-blue);
}

.bg-gray-custom {
    background-color: var(--light-gray);
}

/* About Section */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* Projects Section */
.project-item {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 20px;
}

/* Clients Section */
.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Equipment Section */
.equipment-item {
    text-align: center;
    margin-bottom: 30px;
}

.equipment-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    height: 250px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-info {
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-right: 15px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
    bottom: 0;
    left: 0;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background Animations */
.bg-animated {
    position: relative;
    overflow: hidden;
}

.bg-animated::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    top: -50%;
    left: -50%;
    animation: float 15s infinite linear;
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

.hero-section {
    position: relative;
}

.hero-shadow-themed {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 86, 179, 0.1) 100%);
    z-index: 1;
}
.animated-card {
    perspective: 1000px;
    height: 280px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.animated-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
}

.card-front {
    background: white;
    color: var(--dark-gray);
}

.card-back {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    transform: rotateY(180deg);
}

.card-back h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-back p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-stats {
    margin-top: auto;
}

.card-stats span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-stats small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Efecto de elevación adicional */
.animated-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.clients-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.clients-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    padding: 20px 0;
}

.client-logo {
    flex: 0 0 auto;
    margin: 0 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.clients-scroll:hover {
    animation-play-state: paused;
}
.animated-equipment-card {
    perspective: 1000px;
    height: 280px;
}

.equipment-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.animated-equipment-card:hover .equipment-card-inner {
    transform: rotateY(180deg);
}

.equipment-card-front, .equipment-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
}

.equipment-card-front {
    background: white;
    color: var(--dark-gray);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-blue);
}

.equipment-card-back {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 12px 35px rgba(0, 86, 179, 0.25);
}

.equipment-card-back h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.equipment-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    width: 100%;
}

.equipment-specs span {
    font-size: 0.8rem;
    text-align: left;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.equipment-specs span:last-child {
    border-bottom: none;
}

.equipment-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto;
}

.equipment-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.equipment-card-back .equipment-icon {
    color: white;
}

.equipment-card-front h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.equipment-card-front p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--medium-gray);
}

/* Efecto de elevación adicional */
.animated-equipment-card:hover {
    transform: translateY(-8px);
}

/* Responsive */
@media (max-width: 992px) {
    .animated-equipment-card {
        height: 260px;
    }
    
    .equipment-card-front, .equipment-card-back {
        padding: 15px;
    }
    
    .equipment-icon {
        font-size: 2.2rem;
    }
    
    .equipment-card-front h4 {
        font-size: 1rem;
    }
    
    .equipment-card-back h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .animated-equipment-card {
        height: 240px;
    }
    
    .equipment-specs span {
        font-size: 0.75rem;
    }
    
    .equipment-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

@media (max-width: 576px) {
    .animated-equipment-card {
        height: 220px;
        margin-bottom: 20px;
    }
    
    .equipment-card-front, .equipment-card-back {
        padding: 12px;
    }
    
    .equipment-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .equipment-card-front h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .equipment-card-front p {
        font-size: 0.8rem;
    }
}
.navbar {
background-color: transparent;
box-shadow: none;
transition: all 0.4s ease;
padding: 20px 0;
}

/* Navbar después del scroll */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

/* Logo del navbar */
.navbar-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-logo {
    height: 40px;
}

/* Enlaces del navbar */
.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--dark-gray) !important;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón del toggler en móviles */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(52, 58, 64, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ajustes para móviles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        margin-top: 10px;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        color: var(--dark-gray) !important;
        padding: 10px 15px;
        margin: 5px 0;
    }
    
    .nav-link:hover {
        background: rgba(0, 86, 179, 0.1);
        border-radius: 5px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.project-img {
    height: 220px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.project-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.project-content p:not(:last-child) {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

