/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    overflow-x: hidden;
}

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

/* ===== HEADER ===== */
.top-bar {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #092179;
}

.contact-info i {
    color: #e40008;
}

.email-btn {
    background: #e40008;
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

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

/* ===== NAVEGACIÓN ===== */
.main-navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    max-width: 280px;
    height: auto;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #092179;
    transition: 0.3s;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-menu a {
    color: #092179;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.main-menu a:hover {
    color: #e40008;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e40008;
    transition: width 0.3s;
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

/* ===== HERO BANNER CON IMAGEN DE FONDO ===== */
.hero-banner {
    padding: 150px 0 120px;
    background-image: linear-gradient(
        rgba(228, 0, 8, 0.85),
        rgba(194, 0, 7, 0.85)
    ), url('../images/banner1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    color: white;
    position: relative;
}

.hero-banner h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-banner p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 35px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-banner .btn-primary {
    background: white;
    color: #e40008;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.hero-banner .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: #092179;
    font-size: 39px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #e40008;
}

.section-subtitle {
    color: #e40008;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px 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-icon {
    font-size: 48px;
    color: #e40008;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #092179;
    margin-bottom: 15px;
    font-size: 23px;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

/* ===== NOSOTROS ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text {
    max-width: 600px;
}

.about-text .section-title {
    text-align: left;
    margin: 20px 0;
    font-size: 36px;
    color: #333;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-text .section-subtitle {
    text-align: left;
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-image {
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Lista con checks */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.check-list li i {
    color: #e40008;
    position: absolute;
    left: 0;
    top: 5px;
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #e40008;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 24px;
    color: #e40008;
    margin-bottom: 10px;
}

.feature-item h4 {
    margin-bottom: 10px;
    color: #333;
}

/* ===== PROYECTOS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.project-image {
    height: 250px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 25px;
}

.project-category {
    color: #e40008;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.project-info h3 {
    margin: 15px 0;
    font-size: 22px;
    color: #333;
}

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

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #e40008;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    background: #c40007;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 0, 8, 0.3);
}

.btn-primary i {
    margin-right: 8px;
}

/* ===== SEGURIDAD ANTE TODO ===== */
.safety-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.safety-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.safety-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.safety-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.safety-item i {
    color: #e40008;
    font-size: 24px;
    flex-shrink: 0;
}

.safety-item h4 {
    margin-bottom: 10px;
    color: #333;
}

.safety-item p {
    color: #666;
}

/* ===== EQUIPO ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.team-image {
    height: 300px;
    overflow: hidden;
}

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

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

.team-info {
    padding: 25px;
}

.team-specialty {
    display: block;
    color: #e40008;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.team-info h3 {
    color: #092179;
    font-size: 23px;
    margin-bottom: 15px;
}

.team-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.team-btn {
    display: inline-block;
    background: #092179;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.team-btn:hover {
    background: #071a5e;
}

/* ===== GALERÍA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

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

.gallery-caption {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* ===== CONTACTO ===== */
.contact-section {
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.map-container {
    width: 100%;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background: #0c1e3e;
    color: white;
    padding: 60px 0 30px;
    margin-top: 0;
}

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

.footer-col {
    padding: 0 15px;
}

.footer-logo img {
    max-width: 220px;
    margin-bottom: 20px;
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

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

.footer-social a:hover {
    background: #e40008;
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 17px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.payment-methods span {
    color: #b0b0b0;
    font-size: 13px;
}

.payment-methods i {
    font-size: 25px;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.payment-methods i:hover {
    opacity: 1;
}

.footer-title {
    color: white;
    font-size: 17px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e40008;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-links a i {
    color: #e40008;
    width: 20px;
    text-align: center;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 14px;
}

.footer-contact-info i {
    color: #e40008;
    width: 20px;
    text-align: center;
}

.footer-contact-info a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: #b0b0b0;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: #666;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 33px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #e40008;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e40008;
    transform: translateY(-3px);
}

.back-to-top i {
    font-size: 21px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-banner {
        padding: 120px 0 100px;
        background-attachment: scroll;
    }
    
    .hero-banner h1 {
        font-size: 42px;
    }
    
    .hero-banner p {
        font-size: 18px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text,
    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-text .section-title {
        font-size: 32px;
    }
    
    .safety-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero-banner {
        padding: 80px 0 60px;
    }
    
    .hero-banner h1 {
        font-size: 35px;
    }
    
    .hero-banner p {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 31px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-menu {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .about-text .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .safety-items {
        grid-template-columns: 1fr;
    }
    
    .safety-item {
        padding: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .back-to-top {
        bottom: 85px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        padding: 70px 0 50px;
    }
    
    .hero-banner h1 {
        font-size: 29px;
    }
    
    .hero-banner p {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 27px;
    }
    
    .about-text .section-title {
        font-size: 24px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 25px;
    }
    
    .back-to-top {
        bottom: 75px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}
/* ===== CORRECCIÓN: Eliminar elemento extraño en footer ===== */
footer::before,
footer::after {
    content: none !important;
    display: none !important;
}

footer svg,
footer canvas {
    display: none !important;
}

footer {
    background-image: none !important;
    position: relative;
    overflow: hidden;
}
