/* ===================================================================
   Torsa Landing Page — Custom Styles
   Complementa Bootstrap 4 y el sistema de estilos del proyecto base.
=================================================================== */

/* Variables editables */
:root {
    --footer-font-size: 0.8rem;  /* Tamaño del texto "Desarrollado por" y copyright */
}

/* ---------- FONDO ---------- */
body {
    background-color: #000 !important;
    min-height: 100vh;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
}

body.landing-bg {
    background-image: url('../assets/images/big/bg.jpg'); /* assets/ está en la raíz del proyecto */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

/* Capa oscura semitransparente sobre el fondo */
body.landing-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
    pointer-events: none;
}

#landing-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- CABECERA ---------- */
.landing-header {
    padding: 2.5rem 1rem 1rem;
    text-align: center;
}

.landing-logo {
    height: 52px;
    margin-bottom: 1.2rem;
}

.landing-heading {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.landing-subheading {
    color: #a8b2c0;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ---------- SELECTOR DE IDIOMA ---------- */
.lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.lang-btn.active {
    background: rgba(120, 205, 247, 0.18);
    border-color: rgba(120, 205, 247, 0.55);
    color: #78cdf7;
}

/* ---------- SEPARADOR DE GRUPO ---------- */
.group-label {
    color: #78cdf7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    padding-left: 0.25rem;
    border-left: 3px solid #78cdf7;
    padding-left: 0.6rem;
}

/* ---------- TARJETA DE PLATAFORMA ---------- */
.platform-card-wrap {
    margin-bottom: 1.5rem;
}

.platform-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none !important;
    background-color: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.platform-card:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.75),
        0 0 0 2px rgba(120, 205, 247, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    border-color: rgba(120, 205, 247, 0.4);
    text-decoration: none !important;
}

/* ---------- IMAGEN DE LA TARJETA ---------- */
.platform-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.platform-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) brightness(0.75);
    -webkit-filter: grayscale(100%) brightness(0.75);
    transition: filter 0.35s ease, -webkit-filter 0.35s ease, transform 0.35s ease;
    transform: scale(1.0);
}

.platform-card:hover .platform-img {
    filter: grayscale(0%) brightness(0.90);
    -webkit-filter: grayscale(0%) brightness(0.90);
    transform: scale(1.04);
}

/* ---------- TEXTO SOBRE LA IMAGEN (overlay) ---------- */
.platform-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem 1.2rem 1.1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        transparent 100%
    );
    transition: background 0.25s ease;
}

.platform-card:hover .platform-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.6) 55%,
        transparent 100%
    );
}

.platform-name {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.platform-desc {
    color: #b8c4d0;
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* Flecha indicadora en esquina superior derecha */
.platform-arrow {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    color: rgba(255,255,255,0);
    font-size: 1.1rem;
    transition: color 0.22s ease, transform 0.22s ease;
}

.platform-card:hover .platform-arrow {
    color: rgba(120, 205, 247, 0.95);
    transform: translate(2px, -2px);
}

/* ---------- TARJETAS SECUNDARIAS — imagen de altura fija ---------- */
.secondary-card .platform-img-wrap {
    height: 160px;
}

.secondary-card .platform-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- PIE DE PÁGINA ---------- */
.landing-footer {
    margin-top: auto;
    padding: 1.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--footer-font-size);
    letter-spacing: 0.04em;
}

.landing-footer img {
    height: 18px;
    opacity: 0.4;
    vertical-align: middle;
    margin: 0 0.3rem;
}

/* ---------- FILAS DE PLATAFORMAS ---------- */
.platforms-row {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .landing-heading { font-size: 1.5rem; }
    .platform-name   { font-size: 1rem; }
    .secondary-card .platform-img-wrap { height: 130px; }
}

@media (max-width: 480px) {
    .landing-header { padding-top: 1.5rem; }
    .landing-logo   { height: 40px; }
}
