@charset "utf-8";

/* ==========================================================================
   RESET GENERAL Y TIPOGRAFÍA SEGURA LOCAL (SIN DEPENDER DE APIS EXTERNAS)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Usamos fuentes del sistema nativas de alta calidad para evitar bloqueos */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    
    /* TU TEXTURA RUGOSA ORIGINAL EN MINÚSCULAS */
    background-color: #7c7d7f;
    background-image: url("../img/fondo.gif") !important;
    background-repeat: repeat !important;
}

/* ==========================================================================
   NAVBAR ENCABEZADO CENTRADO ARRIBA
   ========================================================================== */
.nav-hero {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 3px solid #006400;
    padding: 20px 30px;
}

.nav-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.logo {
    text-align: center;
    width: 100%;
}

.logo h2 {
    margin: 0;
    color: #00FF00;
    font-family: 'Courier New', monospace;
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: bold;
}

.links {
    display: flex;
    justify-content: center;
    width: 100%;
}

.links a {
    color: #b3b3b3;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.links a:hover, .link-active {
    color: #00FF00 !important;
}

/* ==========================================================================
   MALLA PRINCIPAL FLEXBOX (3 COLUMNAS IDÉNTICAS A TU PANTALLA)
   ========================================================================== */
.main-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 25px;
    box-sizing: border-box;
    align-items: flex-start;
}

.col-lateral {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.col-central {
    flex: 3;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ==========================================================================
   TARJETAS CENTRALES DE YOUTUBE (FORMATO HORIZONTAL PREMIUM)
   ========================================================================== */
.card-canal {
    display: flex; 
    background-color: #1a1b1f;
    border: 1px solid #30353b;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 8px rgba(0,0,0,0.3);
    min-height: 240px;
}

.card-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.card-copy {
    margin: 0 0 20px 0;
    color: #f7d9d990;
    font-size: 14px;
}

.btn-canal {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #03f3d7 0%, #00695c 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.card-banner {
    flex: 1;
    position: relative;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    padding: 12px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

/* ==========================================================================
   RESTAURACIÓN DE COLORES DE FABRICANTE EN BOTONES LATERALES
   ========================================================================== */
.btn-metal, 
.card__buttonleftOracle, .card__buttonleftWindows, .card__buttonleftLinux, .card__buttonleftVMware,
.card__buttonrightHerramientas, .card__buttonrightCarpinteria {
    display: block;
    width: 100%;
    padding: 14px 10px;
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 6px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.card__buttonleftOracle:hover, .card__buttonleftWindows:hover, .card__buttonleftLinux:hover, .card__buttonleftVMware:hover,
.card__buttonrightHerramientas:hover, .card__buttonrightCarpinteria:hover, .btn-metal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    filter: brightness(1.2);
}

/* Inyección de degradados metálicos por fabricante obligatorios */
.card__buttonleftOracle, .btn-oracle { background: linear-gradient(180deg, #f16464 0%, #920404 100%) !important; }
.card__buttonleftWindows, .btn-windows { background: linear-gradient(180deg, #4c94e6 0%, #013077 100%) !important; }
.card__buttonleftLinux, .btn-linux { background: linear-gradient(180deg, #549413 0%, #295403 100%) !important; }
.card__buttonleftVMware, .btn-vmware { background: linear-gradient(180deg, #82b816 0%, #4c6e05 100%) !important; }

.card__buttonrightHerramientas, .btn-herramientas { background: linear-gradient(180deg, #e37e14 0%, #944803 100%) !important; }
.card__buttonrightCarpinteria, .btn-carpinteria { background: linear-gradient(180deg, #b56c28 0%, #693c0d 100%) !important; }

/* ==========================================================================
   TARJETA INFERIOR DE SOFTWARE TYPEFAST
   ========================================================================== */
.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.tarjeta-software {
    background-color: #080805;
    border: 1px solid #005000;
    box-shadow: 0 0 15px rgba(0,100,0,0.15);
    border-radius: 8px;
    padding: 30px;
}

.software-title {
    color: #00FF00;
    font-family: 'Courier New', monospace;
    margin: 0 0 12px 0;
    font-size: 22px;
}

.software-desc {
    margin: 0 0 25px 0;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.software-buttons {
    display: flex;
    gap: 15px;
}

.btn-free {
    background-color: #2a2a2a;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-free:hover { background-color: #3d3a3a; }

.btn-pro {
    background-color: #004d00;
    color: #00FF00;
    border: 1px solid #00FF00;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-pro:hover { background-color: #006400; }

/* COMPORTAMIENTO MÓVIL AUTOMÁTICO */
@media (max-width: 768px) {
    .main-wrapper { flex-direction: column; margin: 20px auto; }
    .col-lateral { flex-direction: row; flex-wrap: wrap; }
    .card-canal { flex-direction: column; }
    .card-banner { height: 180px; }
    .software-buttons { flex-direction: column; }
    .btn-free, .btn-pro { text-align: center; }
    .links { flex-direction: column !important; gap: 10px !important; text-align: center !important; }
    .links a { margin: 5px 0 !important; }
}
