/* =========================================
   1. CONFIGURACIÓN BASE Y FONDO
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    color: #ffffff;
    /* Ajusta el nombre de la imagen si en tu carpeta se llama distinto */
    background: url('../img/backgrounds/Fondo\ bueno\ 4k.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #111; /* Color de respaldo */
}

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

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
.header {
    background: rgba(0, 0, 0, 0.95); /* Negro casi sólido */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 70px;
    border-bottom: 2px solid #222;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    color: #ff0000;
    letter-spacing: 1px;
}

.logo span {
    color: #ffffff;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #ff0000;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav a:hover, .nav a.activo {
    border-bottom: 2px solid white;
    padding-bottom: 4px;
    color: #ffffff;
}

/* =========================================
   3. BOTONES MODERNOS
   ========================================= */
.btn-login {
    border: 2px solid #ffffff;
    padding: 8px 16px;
    border-radius: 5px;
    color: #ffffff !important;
}

.btn-login:hover {
    background: #ffffff;
    color: #000000 !important;
}

.btn-knt-red {
    background: #ff0000;
    color: #ffffff;
    border: 2px solid #ff0000;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-knt-red:hover {
    background: #cc0000;
    transform: translateY(-3px);
}

.btn-knt-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-knt-outline:hover {
    border-color: #ff0000;
    color: #ff0000;
}

/* =========================================
   4. ESTRUCTURA DE SECCIONES Y TEXTOS
   ========================================= */
main {
    margin-top: 70px;
}

.home-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.text-red { color: #ff0000; }
.text-red-gradient {
    background: linear-gradient(45deg, #ff0000, #ff4b4b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.red-divider {
    height: 3px; width: 80px; background: #ff0000; margin: 15px auto 30px;
}
.text-center { text-align: center; }

/* Capa oscura sobre el fondo para leer bien las letras */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

/* Animación de carga fluida */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAction 0.8s ease-out forwards;
}
@keyframes fadeInUpAction {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. TARJETAS "GLASSMORPHISM" (Efecto Vidrio)
   ========================================= */
.grid-beneficios-creativo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.knt-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s ease;
    color: #ffffff;
}

.knt-card:hover {
    border-color: #ff0000;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-icon-wrapper {
    width: 70px; height: 70px; background: rgba(255, 0, 0, 0.1); color: #ff0000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; font-size: 30px; transition: 0.3s;
}

.knt-card:hover .card-icon-wrapper {
    background: #ff0000; color: #ffffff;
}

/* =========================================
   6. CÍRCULOS DE INDUSTRIAS
   ========================================= */
.industrias-flex {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin-top: 50px;
}

.industria-item { text-align: center; color: #ffffff; transition: transform 0.3s ease; }
.industria-item:hover { transform: scale(1.1); }

.circle-icon {
    width: 90px; height: 90px; border-radius: 50%;
    background: rgba(0,0,0,0.7); border: 2px solid #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; margin: 0 auto 15px; transition: border 0.3s;
}

.industria-item:hover .circle-icon { border-color: #ff0000; background: #000000; }

/* =========================================
   7. FOOTER CORPORATIVO
   ========================================= */
.inicio-footer {
    background: #000000;
    border-top: 2px solid #333;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-flex {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column-brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.footer-logos-container { display: flex; align-items: center; gap: 25px; }
.footer-logo-main { height: 90px; width: auto; object-fit: contain; }
.footer-logo-icon { height: 110px; width: auto; object-fit: contain; }

.footer-column { flex: 1 1 200px; }
.footer-title { color: #ff0000; font-weight: 700; font-size: 14px; margin-bottom: 20px; display: block; }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { color: #ffffff; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-list a:hover { color: #ff0000; padding-left: 5px; }

/* Celulares */
@media (max-width: 768px) {
    .hero-content-creativo h1 { font-size: 2.5rem; }
    .footer-flex { flex-direction: column; }
    .nav { display: none; }
}
/* =========================================
   AJUSTE PERFECTO DEL LOGO EN EL HEADER
   ========================================= */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%; /* Se adapta al alto total del header */
    padding: 5px 0; /* Un pequeño margen para que no toque los bordes */
}

.logo-img {
    max-height: 280px; /* Tamaño ideal para una barra de 70px */
    width: auto;
    object-fit: contain; /* Evita que la imagen se deforme o aplaste */
    transition: transform 0.3s ease;
    margin-top: 33px;
}

.logo-container:hover .logo-img {
    transform: scale(1.05); /* Efecto visual de clic sutil */
}
/* =========================================
   AJUSTE DE ANCHO PARA EL CUADRO DE TEXTO (TEXTAREA)
   ========================================= */
/* COMENTARIO EQUIPO: Esto hace que solo los cuadros de texto anchos
   se estiren al 100% de la columna, creando un rectángulo horizontal ancho. */
textarea.knt-input {
    width: 100% !important; /* Fuerza a usar todo el ancho de su columna */
    min-height: 120px; /* Asegura un buen alto inicial */
}