/* INDUSTRONIC - Electrónica al servicio de la Industria */
/* Colores corporativos y variables */
:root {
    --primary-green: #005757; /* Verde agua más oscuro */
    --secondary-green: #008080; /* Verde más oscuro */
    --accent-orange: #f59e0b; /* Mantener el naranja */
    --dark-gray: #1f2937;
    --light-gray: #f8fafc;
    --text-dark: #111827;
    --text-light: #6b7280;
    --success-green: #059669;
    --gradient-primary: linear-gradient(135deg, #005757 0%, #008080 100%); /* Gradiente verde más oscuro */
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset y configuración base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Animaciones suaves */
* {
    transition: all 0.3s ease;
}

/* Eliminar TODOS los controles de media y elementos flotantes */
audio, video, object, embed {
    display: none !important;
    visibility: hidden !important;
}

/* Ocultar todos los controles webkit de media */
::-webkit-media-controls,
::-webkit-media-controls-enclosure,
::-webkit-media-controls-panel,
::-webkit-media-controls-play-button,
::-webkit-media-controls-start-playback-button,
::-webkit-media-controls-current-time-display,
::-webkit-media-controls-time-remaining-display,
::-webkit-media-controls-timeline,
::-webkit-media-controls-volume-slider,
::-webkit-media-controls-mute-button,
::-webkit-media-controls-fullscreen-button {
    display: none !important;
    -webkit-appearance: none !important;
    visibility: hidden !important;
}

/* Eliminar elementos con forma de botón de play circular */
*[class*="play"],
*[id*="play"],
*[class*="audio"],
*[id*="audio"],
.play-button,
.audio-button {
    display: none !important;
    visibility: hidden !important;
}

/* Eliminar overlays y elementos flotantes */
*[style*="position: fixed"],
*[style*="position: absolute"][style*="z-index"] {
    z-index: 1 !important;
}

/* Forzar el navbar al frente con máxima prioridad */
.navbar {
    position: relative !important;
    z-index: 999999 !important;
    background: var(--gradient-primary) !important;
}

.navbar * {
    position: relative !important;
    z-index: 999999 !important;
}

/* Eliminar cualquier elemento circular sospechoso */
*[style*="border-radius: 50%"]:not(.navbar *):not(.btn):not(.badge) {
    display: none !important;
}

/* Regla nuclear para elementos superpuestos */
body > *:not(.navbar):not(.container):not(.container-fluid):not(header):not(section):not(main):not(footer):not(script) {
    z-index: 1 !important;
}

/* Navbar mejorado con imagen de fondo */
.navbar {
    background: var(--gradient-primary) !important;
    background-image: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="none"/><path d="M20 20h60M20 40h60M20 60h60M20 80h60M20 20v60M40 20v60M60 20v60M80 20v60" stroke="rgba(255,255,255,0.08)" stroke-width="1" fill="none"/><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="40" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="60" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    background-size: 150px 150px;
    box-shadow: var(--shadow-medium);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    position: relative;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

/* Header principal mejorado con patrón industrial */
header {
    background: var(--gradient-primary) !important;
    background-image: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="industrial" patternUnits="userSpaceOnUse" width="200" height="200"><rect width="200" height="200" fill="none"/><g stroke="rgba(255,255,255,0.06)" stroke-width="2" fill="none"><path d="M50 50L150 50L150 150L50 150Z"/><path d="M75 75L125 75L125 125L75 125Z"/><circle cx="100" cy="100" r="30"/><path d="M70 70L130 130M130 70L70 130"/></g></pattern></defs><rect width="200" height="200" fill="url(%23industrial)"/></svg>');
    background-size: 200px 200px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.display-4 {
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.lead {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Contenido principal */
.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Secciones de contenido */
.content-section {
    padding: 4rem 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

.content-section h2 {
    color: var(--primary-green); /* Cambiado a verde agua oscuro */
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.content-section h3 {
    color: var(--secondary-green); /* Cambiado a verde más oscuro */
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.content-section p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Tarjetas y cajas de contenido */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.card-header {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.card-body {
    padding: 2rem;
}

/* Listas estilizadas */
ul {
    list-style: none;
    padding-left: 0;
}

li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

/* Botones mejorados */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
    background: var(--gradient-accent);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green); /* Cambiado a verde oscuro */
    color: var(--primary-green); /* Cambiado a verde oscuro */
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Sección de imagen representativa */
.image-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
                linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 500;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Efectos de hover para elementos interactivos */
.hoverable {
    transition: all 0.3s ease;
}

.hoverable:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Badges y etiquetas */
.badge {
    background: var(--gradient-accent);
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Separadores de sección */
.section-divider {
    height: 4px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 2px;
    margin: 3rem auto;
    width: 100px;
}

/* Footer si lo necesitas */
footer {
    background: var(--dark-gray);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementos destacados */
.highlight-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 4px solid var(--accent-orange);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

/* Loading states y efectos */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
