 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Arial', sans-serif;
     color: #2d2d2d;
     background: #fff;
     overflow-x: hidden;
 }

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

 .header-content {
     max-width: 1400px;
     margin: 0 auto;
     padding: 1.2rem 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo-section {
     display: flex;
     align-items: center;
     gap: 1rem;
 }

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo img {
    width: 80px;
    height: 50px;
    object-fit: cover;
}   

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .helmet-circle {
    animation: pulse 1s ease-in-out infinite;
}

 .logo-helmet {
     width: 45px;
     height: 45px;
     position: relative;
 }

 .helmet-circle {
     width: 40px;
     height: 40px;
     background: #ed1c24;
     border-radius: 50%;
     position: relative;
 }

 .helmet-circle::before {
     content: '';
     position: absolute;
     top: 3px;
     left: 3px;
     width: 15px;
     height: 15px;
     background: white;
     border-radius: 50%;
 }

 .helmet-visor {
     position: absolute;
     bottom: 0;
     right: -8px;
     width: 0;
     height: 0;
     border-left: 15px solid #ed1c24;
     border-top: 8px solid transparent;
     border-bottom: 8px solid transparent;
 }

 .logo-text-main {
     display: flex;
     align-items: baseline;
     gap: 0;
 }

 .logo-hr-h {
     font-size: 2.8rem;
     font-weight: 900;
     color: #2d2d2d;
     line-height: 1;
     letter-spacing: -2px;
 }

 .logo-hr-r {
     font-size: 2.8rem;
     font-weight: 900;
     color: #ed1c24;
     line-height: 1;
     letter-spacing: -2px;
 }

 .logo-edificaciones {
     font-size: 0.7rem;
     text-transform: uppercase;
     letter-spacing: 4px;
     color: #2d2d2d;
     font-weight: 600;
     margin-top: -5px;
 }

 .nav-menu {
     display: flex;
     gap: 2.5rem;
     align-items: center;
 }

.nav-link {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

 .nav-link::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0;
     height: 2px;
     background: #ed1c24;
     transition: width 0.3s ease;
 }

.nav-link:hover {
    color: #ed1c24;
    transform: translateY(-2px);
}

 .nav-link:hover::after {
     width: 100%;
 }

 .nav-link.active {
     color: #ed1c24;
 }

 .nav-link.active::after {
     width: 100%;
 }

 .contact-info {
     display: flex;
     gap: 2rem;
     font-size: 0.85rem;
     color: #666;
 }

 .mobile-menu-btn {
     display: none;
     background: none;
     border: none;
     font-size: 1.5rem;
     color: #2d2d2d;
     cursor: pointer;
 }

 .hero {
     height: 100vh;
     background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #ed1c24 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     overflow: hidden;
 }

.hero-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(237, 28, 36, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(237, 28, 36, 0.08) 87.5%, rgba(237, 28, 36, 0.08)),
        linear-gradient(150deg, rgba(237, 28, 36, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(237, 28, 36, 0.08) 87.5%, rgba(237, 28, 36, 0.08)),
        linear-gradient(30deg, rgba(237, 28, 36, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(237, 28, 36, 0.08) 87.5%, rgba(237, 28, 36, 0.08)),
        linear-gradient(150deg, rgba(237, 28, 36, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(237, 28, 36, 0.08) 87.5%, rgba(237, 28, 36, 0.08));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: movePattern 20s linear infinite;
    opacity: 0.6;
}

 @keyframes movePattern {
     0% {
         transform: translateY(0);
     }

     100% {
         transform: translateY(140px);
     }
 }

 .hero-shapes {
     position: absolute;
     width: 100%;
     height: 100%;
 }

.red-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 28, 36, 0.4), rgba(237, 28, 36, 0.1), transparent);
    animation: float 8s ease-in-out infinite;
    filter: blur(40px);
}

 .red-circle:nth-child(1) {
     top: 10%;
     left: 5%;
     animation-delay: 0s;
 }

 .red-circle:nth-child(2) {
     bottom: 15%;
     right: 10%;
     width: 400px;
     height: 400px;
     animation-delay: 3s;
 }

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    33% {
        transform: translateY(-40px) scale(1.15) rotate(5deg);
    }

    66% {
        transform: translateY(-20px) scale(1.05) rotate(-5deg);
    }
}

 .hero-content {
     position: relative;
     z-index: 10;
     text-align: center;
     color: white;
     max-width: 1000px;
     padding: 2rem;
 }

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    animation: scaleIn 1s ease 0.2s both;
}


 .hero-logo-h {
     font-size: 8rem;
     font-weight: 900;
     color: rgb(0, 0, 0);
     line-height: 1;
     letter-spacing: -5px;
          text-shadow: 0 0 30px rgba(59, 59, 59, 0.699);

 }

 .hero-logo-r {
     font-size: 8rem;
     font-weight: 900;
     color: #ed1c24;
     line-height: 1;
     letter-spacing: -5px;
     text-shadow: 0 0 30px rgba(237, 28, 35, 0.671);
 }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hero-title {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease 0.4s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 1rem;
    animation: fadeInUp 1.4s ease 0.6s both;
}

.hero-years {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ed1c24;
    text-shadow: 0 0 30px rgba(237, 28, 36, 0.8);
    animation: fadeInUp 1.6s ease 0.8s both, pulse 3s ease-in-out infinite 2.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

 .section {
     padding: 5rem 2rem;
     max-width: 1400px;
     margin: 0 auto;
 }

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d2d2d;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
}

.section-title.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100px;
    height: 5px;
    background: #ed1c24;
    animation: expandLine 1s ease 0.5s forwards;
    transform-origin: center;
}

@keyframes expandLine {
    from {
        transform: translateX(-50%) scaleX(0);
    }
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

 .red-text {
     color: #ed1c24;
 }

 .cards-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
     gap: 2.5rem;
 }

.feature-card {
    background: white;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-top: 5px solid #ed1c24;
}

.feature-card:not(.animated) {
    opacity: 0;
    transform: translateY(60px);
}

.feature-card.animated {
    animation: fadeInUp 0.8s ease forwards;
}

 .feature-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 0;
     height: 100%;
     background: linear-gradient(90deg, rgba(237, 28, 36, 0.05), transparent);
     transition: width 0.4s ease;
 }

 .feature-card:hover::before {
     width: 100%;
 }

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 25px 70px rgba(237, 28, 36, 0.25);
}


.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    display: inline-block;
}

.feature-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

 .card-title {
     font-size: 1.6rem;
     font-weight: 900;
     color: #2d2d2d;
     margin-bottom: 1rem;
 }

 .card-text {
     color: #666;
     line-height: 1.9;
     font-size: 1rem;
 }

 .services-section {
     background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
 }

 .services-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
     gap: 2.5rem;
 }

.service-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
}

.service-card:not(.animated) {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

.service-card.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.service-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}







 .service-image::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
 }


 .service-content {
     padding: 2rem;
 }

 .service-card::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 0;
     height: 4px;
     background: #ed1c24;
     transition: width 0.3s ease;
 }

 .service-card:hover::after {
     width: 100%;
 }

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(237, 28, 36, 0.2);
}


 .service-icon {
     font-size: 3.5rem;
     margin-bottom: 1.5rem;
     filter: grayscale(0.3);
     transition: filter 0.3s ease;
 }

 .service-card:hover .service-icon {
     filter: grayscale(0);
 }

 .service-title {
     font-size: 1.3rem;
     font-weight: 700;
     color: #2d2d2d;
     margin-bottom: 1rem;
 }

 .service-text {
     color: #666;
     line-height: 1.7;
     font-size: 0.95rem;
 }

 .clients-section {
     background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
     color: #2d2d2d;
 }

 .clients-section .section-title {
     color: #2d2d2d;
 }

 .clients-section .section-title::after {
     background: #ed1c24;
 }

 .client-category {
     margin-bottom: 4rem;
 }

 .category-title {
     text-align: center;
     font-size: 1.5rem;
     color: #ed1c24;
     font-weight: 700;
     margin-bottom: 2.5rem;
     position: relative;
     display: inline-block;
     width: 100%;
 }

 .category-title::before {
     content: '';
     position: absolute;
     bottom: -8px;
     left: 50%;
     transform: translateX(-50%);
     width: 60px;
     height: 3px;
     background: #ed1c24;
     border-radius: 3px;
 }

 .clients-grid {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 1.5rem;
 }

.client-item {
    background: white;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d2d2d;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    white-space: nowrap;
}

.client-item:not(.animated) {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
}

.client-item.animated {
    animation: fadeInUp 0.6s ease forwards;
}

.client-item:hover {
    background: #ed1c24;
    color: white;
    border-color: #ed1c24;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 35px rgba(237, 28, 36, 0.4);
}


 .team-section {
     background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
 }

 .team-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2.5rem;
 }

.team-card {
    background: white;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #ed1c24;
}

.team-card:not(.animated) {
    opacity: 0;
    transform: translateY(60px);
}

.team-card.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(237, 28, 36, 0.2);
    border-left-width: 8px;
}


 .team-name {
     font-size: 1.4rem;
     font-weight: 900;
     color: #2d2d2d;
     margin-bottom: 0.8rem;
 }

 .team-role {
     color: #ed1c24;
     font-size: 1rem;
     font-weight: 600;
 }

 .footer {
     background: #1a1a1a;
     color: white;
     padding: 4rem 2rem 2rem;
     text-align: center;
 }

 .footer-logo {
     display: flex;
     justify-content: center;
     align-items: center;
     margin-bottom: 1.5rem;
 }

 .footer-logo-h {
     font-size: 4rem;
     font-weight: 900;
     color: white;
 }

 .footer-logo-r {
     font-size: 4rem;
     font-weight: 900;
     color: #ed1c24;
 }

 .footer-text {
     color: #999;
     margin-bottom: 2rem;
     font-size: 1.1rem;
 }

 .footer-contacts {
     display: flex;
     justify-content: center;
     gap: 3rem;
     margin-bottom: 2rem;
     flex-wrap: wrap;
 }

.footer-contact {
    color: #ed1c24;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.footer-contact a {
    display: inline-block;
    text-align: center;
}

 .footer-copy {
     color: #666;
     font-size: 0.85rem;
     margin-top: 2rem;
     padding-top: 2rem;
     border-top: 1px solid #333;
 }

 @media (max-width: 768px) {

     .hero-logo-h,
     .hero-logo-r {
         font-size: 5rem;
     }

     .hero-title {
         font-size: 1.5rem;
         letter-spacing: 5px;
     }

     .section-title {
         font-size: 2rem;
     }

     .contact-info {
         display: none;
     }

     .nav-menu {
         display: none;
         position: absolute;
         top: 100%;
         left: 0;
         width: 100%;
         background: white;
         flex-direction: column;
         padding: 1rem 0;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
         gap: 0;
     }

     .nav-menu.active {
         display: flex;
     }

     .nav-link {
         padding: 1rem 2rem;
         width: 100%;
     }

     .mobile-menu-btn {
         display: block;
     }
 }