/* CSS Variables para el Tema Industrial Oscuro Premium */
:root {
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #020617; /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #94a3b8; /* Slate 400 */
    --accent-yellow: #facc15; /* Yellow 400 - Industrial Safety */
    --accent-cyan: #06b6d4; /* Cyan 500 - Laser/LiDAR theme */
    --font-main: 'Inter', sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía Básica */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======== UTILIDADES ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: #000;
}

.btn-primary:hover {
    background-color: #eab308;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

.highlight {
    color: var(--accent-yellow);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    margin: 0 auto 20px auto;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ======== NAVEGACIÓN ======== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(2, 6, 23, 0.85); /* bg-darker */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo a {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    max-height: 90px;
    width: auto;
    /* El logo ahora es un PNG transparente de color blanco modificado nativamente */
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ======== HERO ======== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    background-image: url('../img/fondo_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2,6,23,0.95) 0%, rgba(15,23,42,0.8) 50%, rgba(2,6,23,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ======== SERVICIOS ======== */
.services {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(6, 182, 212, 0.3);
}

.service-card:hover::before {
    background: var(--accent-yellow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card ul {
    margin-bottom: 0px;
}

.service-card ul li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li i {
    color: var(--accent-yellow);
    font-size: 0.8rem;
}

/* ======== VR INMERSIVO ======== */
.vr-section {
    padding: 100px 0;
    background-color: var(--bg-dark); /* Contrastando con el tech-section */
}

.vr-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: row; /* Texto izquierda, imagen derecha */
}

.vr-text {
    flex: 1.5;
}

.vr-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.vr-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.vr-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.vr-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.5); /* Card background subtle */
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
    transition: var(--transition);
}

.vr-benefits li:hover {
    transform: translateX(10px);
    background: rgba(30, 41, 59, 0.8);
    border-left-color: var(--accent-yellow);
}

.vr-benefits li i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.vr-benefits li:hover i {
    color: var(--accent-yellow);
}

.vr-benefits li span {
    font-size: 1.05rem;
    color: var(--text-primary);
}

.vr-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.vr-photo {
    max-width: 100%;
    border-radius: 12px;
    transform: rotate(-2deg); /* Inclinación opuesta al trion */
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15); /* Resplandor cyan sutil */
    border: 1px solid rgba(6, 182, 212, 0.2);
    transition: var(--transition);
}

.vr-photo:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.3);
}

/* ======== CTA / NOSOTROS ======== */
.cta-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.cta-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-text strong {
    color: var(--text-primary);
}

.cta-image {
    flex: 1;
    position: relative;
}

.cta-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ======== CONTACTO ======== */
.contact {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.contact-content {
    display: flex;
    gap: 50px;
}

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

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-secondary);
}

.contact-form {
    flex: 1.5;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* ======== FOOTER ======== */
footer {
    background: #020617;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-cyan);
}

/* ======== ANIMACIONES CSS ======== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ======== Novedades Premium ======== */

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--accent-yellow);
    color: #000;
    padding: 10px 0;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Sección Tecnología */
.tech-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-darker) 0%, #081121 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.tech-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tech-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Imágenes Profesionales (Flyers) */
.promo-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.promo-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.trion-img {
    max-width: 80%;
    transform: rotate(2deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
    transition: var(--transition);
}

.trion-img:hover {
    transform: rotate(0deg) scale(1.05);
    filter: drop-shadow(0 25px 40px rgba(6, 182, 212, 0.4));
}

.tech-text {
    flex: 1.5;
}

.tech-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline-left {
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    margin-bottom: 20px;
}

.tech-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.stat-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Floating Labels */
.form-floating {
    position: relative;
}

.form-floating input,
.form-floating textarea {
    padding: 25px 15px 10px 15px;
}

.form-floating label {
    position: absolute;
    top: 17px;
    left: 15px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    font-size: 1rem;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label,
.form-floating textarea:focus ~ label,
.form-floating textarea:not(:placeholder-shown) ~ label {
    top: 5px;
    left: 15px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

/* ======== MEDIA QUERIES ======== */
@media (max-width: 992px) {
    .hero h2 { font-size: 3rem; }
    .cta-content { flex-direction: column; }
    .contact-content { flex-direction: column; }
    .tech-content { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
        position: relative;
    }

    .hero h2 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
}
