/* --- FUENTES Y VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

:root {
    --color-orange: #f97316;
    --color-dark-bg: #0a0a0a;
    --color-light-bg: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --font-family-sans: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-dark-bg);
    color: var(--color-text-primary);
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text-primary);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CABECERA Y NAVEGACIÓN --- */
.main-header {
    position: absolute;
    /* Cambiado de fixed a absolute */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 50px;
}

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

.nav-links a {
    color: var(--color-text-primary);
    padding: 10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-orange);
}

/* Dropdown Escritorio */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    border-radius: 3px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 260px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #333;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #e0e0e0;
    /* Color de fondo más oscuro */
    color: var(--color-orange);
}

/* Menú Móvil */
.mobile-menu-button-container {
    display: none;
}

#mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
}

.icon-menu {
    width: 30px;
    height: 30px;
    color: var(--color-text-primary);
}

.mobile-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul a {
    display: block;
    padding: 15px 10px;
    color: var(--color-text-primary);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-menu ul a:hover {
    color: var(--color-orange);
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.mobile-dropdown-menu a {
    font-size: 14px;
    font-weight: 400;
}

/* --- SECCION HERO --- */
.hero-section {
    position: relative;
    height: 50vh;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #FF073A, #FF8300, #FFD700, #39FF14, #7E00FF, #FF073A);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 span {
    display: inline-block;
}

.hero-content .text-orange {
    color: var(--color-orange);
}

.hero-content p {
    margin-top: 20px;
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--color-text-primary);
}

/* --- ANIMACIONES HERO --- */
@keyframes zoomInBeat {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }

    50% {
        transform: scale3d(1.05, 1.05, 1.05);
    }

    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.animate-zoomInBeat {
    animation: zoomInBeat 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) forwards;
    opacity: 0;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* --- CUERPO DE CONTENIDO --- */
.content-body section {
    padding: 80px 0;
}

.content-body h2 {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.content-body .subtitle {
    font-size: 2rem;
    color: var(--color-orange);
    text-align: center;
    margin-bottom: 40px;
}

/* Descripcion */
.descripcion-section {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: var(--color-text-primary);
    font-size: 1.3rem;
}

.descripcion-icon {
    height: 80px;
    width: 80px;
    margin: 10px auto 30px auto;
}

/* Cuadros */
.cuadros-section-soluciones {
    background-color: var(--color-light-bg);
}

.cuadros-grid-soluciones {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin: 60px auto 0 auto;
}

.cuadro-item-soluciones {
    background-image: linear-gradient(to bottom right, #000000, #000000);

    padding: 30px;
    border-radius: 10px;
}

.cuadro-item-soluciones h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-primary);
}

.cuadro-item-soluciones p {
    color: var(--color-text-primary);
    line-height: 1.6;
}

.cta-button-container {
    text-align: center;
    margin-top: 60px;
}

.cta-button-container .btn {
    background-color: #ffffff;
    color: var(--color-orange);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid var(--color-orange);
}

.cta-button-container .btn:hover {
    background-color: var(--color-orange);
    color: #ffffff;
}

/* Galeria */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.galeria-item {
    cursor: pointer;
    border: 1px solid white;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid white;
}

.lightbox-close {
    position: absolute !important;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001 !important;
    display: block !important;
}

.lightbox-close:hover {
    color: var(--color-orange);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
}

.lightbox-prev {
    left: 5%;
}

.lightbox-next {
    right: 5%;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-orange);
}


/* --- PIE DE PÁGINA --- */
.main-footer-section {
    background-color: #050505;
    padding: 60px 0 20px 0;
    font-size: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column .logo-footer {
    height: 50px;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a,
.footer-column p {
    color: var(--color-text-secondary);
}

.footer-column a:hover {
    color: var(--color-orange);
}

.footer-company-name {
    font-weight: 700;
    margin-bottom: 10px;
}

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

.social-links img {
    width: 24px;
    height: 24px;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--color-text-secondary);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .cuadros-grid {
        grid-template-columns: 1fr;
    }

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

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

    .mobile-menu-button-container {
        display: block;
    }

    .hero-content p {
        margin-top: 20px;
        padding-left: 5%;
        padding-right: 5%;
        font-size: clamp(1rem, 4vw, 1.5rem);
        color: var(--color-text-primary);
    }

    .cuadros-grid-soluciones {
        grid-template-columns: 1fr;
        /* Changed from repeat(2, 1fr) to 1fr */
    }

    .galeria-grid {
        grid-template-columns: 1fr;
        /* Changed from repeat(2, 1fr) to 1fr */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column .logo-footer,
    .social-links {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Botón de WhatsApp flotante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #19ae4f;
    /* Color verde de WhatsApp */
    color: #000000;
    border-radius: 50px;
    /* Para hacerlo circular */
    text-align: center;
    font-size: 18px;
    padding: 10px 15px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #157237;
    /* Un verde un poco más oscuro al pasar el ratón */
}