/* Reset y estilos base */
:root {
    --primary-color: #FF5100;
    /* Naranja industrial */
    --secondary-color: #003366;
    /* Azul marino */
    --accent-color: #FFA726;
    /* Naranja claro */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: #e04800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo__img {
    height: 150px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo__img {
    height: 40px;
}

/* Menú de navegación */
.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__list li a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav__list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__list li a:hover::after,
.nav__list li a[aria-current="page"]::after {
    width: 100%;
}

.nav__list li a[aria-current="page"] {
    color: var(--primary-color);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('/assets/images/ImagenPrincipal.webp') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero__logo {
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features section */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

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

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card__desc {
    color: var(--gray-color);
}

/* Gallery section */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


.gallery__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery__item img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__col {
    margin-bottom: 2rem;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer__list li {
    margin-bottom: 0.8rem;
}

.footer__list li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.copyright {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav__list {
    display: flex;
    gap: 1.5rem;
}

.footer-nav__list a:hover {
    color: var(--accent-color);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .features__grid,
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features__grid > *:nth-child(3),
    .gallery__grid > *:nth-child(3) {
        grid-column: 1 / 3;
    }

    .hero__logo {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        padding: 6rem 2rem 2rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__text {
        font-size: 1.1rem;
    }

    .footer__bottom {
        flex-direction: column;
    }

    .footer-nav__list {
        margin-top: 1rem;
    }

    .hero__logo {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero__title {
        font-size: 1.3rem;
    }

    .hero__logo {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features__grid,
    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .features__grid > *:nth-child(3),
    .gallery__grid > *:nth-child(3) {
        grid-column: auto;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.gallery__item {
    animation: fadeIn 0.5s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Botón flotante de volver arriba */
.scroll-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1200;
    font-size: 1.5rem;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top svg {
    fill: #fff;
    width: 28px;
    height: 28px;
}

.scroll-top:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }
    .scroll-top svg {
        width: 22px;
        height: 22px;
    }
}

/* Bloque CTA en el footer */
.footer-cta {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem 2.5rem 1rem;
    border-radius: 0 0 24px 24px;
    margin-bottom: 0;
}
.footer-cta__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 0.5px;
}
.footer-cta__desc {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #e0e6ed;
}
.footer-cta__btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
    .footer-cta {
        padding: 2rem 0.5rem 1.5rem 0.5rem;
        border-radius: 0 0 12px 12px;
    }
    .footer-cta__title {
        font-size: 1.2rem;
    }
    .footer-cta__btn {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 2rem;
    bottom: 5.5rem;
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.95;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 1201;
    font-size: 1.5rem;
}
.whatsapp-float:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.07);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
@media (max-width: 600px) {
    .whatsapp-float {
        right: 1rem;
        bottom: 4.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Animación global profesional para tarjetas */
.card-anim {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.card-anim:nth-child(1) { animation-delay: 0.1s; }
.card-anim:nth-child(2) { animation-delay: 0.2s; }
.card-anim:nth-child(3) { animation-delay: 0.3s; }
.card-anim:nth-child(4) { animation-delay: 0.4s; }
.card-anim:nth-child(5) { animation-delay: 0.5s; }
.card-anim:nth-child(6) { animation-delay: 0.6s; }
.card-anim:nth-child(7) { animation-delay: 0.7s; }
.card-anim:nth-child(8) { animation-delay: 0.8s; }
.card-anim:nth-child(9) { animation-delay: 0.9s; }
.card-anim:nth-child(10) { animation-delay: 1s; }

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-anim {
    transition: box-shadow 0.3s, transform 0.3s;
}
.card-anim:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.13);
    transform: translateY(-8px) scale(1.03);
    z-index: 2;
}

.hero-services {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(40,40,40,0.6), rgba(40,40,40,0.6)),
        url('AQUI-LA-URL-DE-TU-IMAGEN') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}