﻿/* =======================
   Cortical Robotics — Premium metallic theme
   ======================= */

/* Base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Orbitron:wght@500;700&display=swap');

:root {
    --bg-900: #0b0b0b;
    --bg-800: #141414;
    --bg-700: #1a1a1a;
    --metal-1: #bfc3c7;
    --metal-2: #d8dbde;
    --accent: #4aa3ff;
    --muted: #bdbdbd;
}

/* ===========================================================
   GLOBAL
   =========================================================== */

html, body {
    background: linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 100%);
    color: #e6e6e6;
    font-family: 'Inter', sans-serif;
    height: 100%;
}

.brand {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    color: var(--metal-1);
    font-size: 0.95rem;
}

/* ===========================================================
   HERO — CORTICAL ROBOTICS
   =========================================================== */

.hero-premium {
    background: radial-gradient(1200px at 80% 40%, rgba(74,163,255,0.12), transparent 70%), linear-gradient(180deg, #0d0f12 0%, #14181e 70%, #101215 100%);
    position: relative;
    min-height: 90vh;
    padding: 4rem 0;
    overflow: hidden;
}

    .hero-premium::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('~/img/neural-pattern.svg');
        background-size: cover;
        background-repeat: no-repeat;
        opacity: 0.04;
        z-index: 0;
    }

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--metal-2);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(200,200,200,0.88);
    max-width: 34rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.hero-media {
    position: relative;
    z-index: 2;
}

.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(74,163,255,0.15));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.85));
    z-index: 1;
}

/* Responsive version: background arm visible behind text */
@media (max-width: 991px) {
    .hero-premium {
        text-align: center;
        padding: 5rem 1rem 3rem;
    }

    .hero-media {
        position: absolute;
        inset: 0;
        opacity: 0.35;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        filter: brightness(1.05) contrast(1.05);
        transform: scale(1.15);
    }

    .hero-img {
        width: 150%;
        filter: brightness(1.05) contrast(1.1);
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.15;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto 1.2rem;
    }
}

/* ===========================================================
   NAVBAR — Responsive + Metallic style
   =========================================================== */

.navbar {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background .4s ease;
}

    .navbar:hover {
        background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    }

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    color: var(--metal-1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .3s ease, transform .3s ease;
}

    .navbar-nav .nav-link:hover {
        color: var(--metal-2);
        transform: translateY(-2px);
    }

.navbar-toggler {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 6px;
    padding: .4rem .6rem;
    transition: background .3s ease;
}

    .navbar-toggler:hover {
        background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    }

.navbar-dark .navbar-toggler-icon {
    background-image: linear-gradient( to bottom, var(--metal-2) 33%, transparent 33%, transparent 66%, var(--metal-2) 66% );
    background-size: 100% 30%;
    background-repeat: no-repeat;
    width: 1.3rem;
    height: 1.3rem;
}

.collapse.show {
    animation: fadeDown .35s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15,15,20,0.96);
        box-shadow: 0 18px 30px rgba(0,0,0,0.8);
        border-radius: 0 0 12px 12px;
        padding: 1rem 0;
    }
}

/* ===========================================================
   BOTONES
   =========================================================== */

.btn-cta {
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    color: var(--metal-2);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 0.72rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

    .btn-cta:hover {
        transform: translateY(-4px);
        background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
        box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,0.03);
    }

.btn-outline-cta {
    color: var(--muted);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    padding: 0.64rem 1.4rem;
    border-radius: 8px;
    transition: all .25s ease;
}

    .btn-outline-cta:hover {
        color: var(--metal-2);
        border-color: rgba(74,163,255,0.4);
        transform: translateY(-3px);
    }

/* ===========================================================
   SECCIONES GENERALES
   =========================================================== */

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.6rem;
    color: var(--metal-2);
}

.section-subtitle {
    color: #a9a9a9;
    max-width: 720px;
    margin: 0 auto 1.8rem;
}

/* ===========================================================
   NUESTRA TECNOLOGÍA
   =========================================================== */

#tecnologia {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
}

    #tecnologia::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 80% 20%, rgba(74,163,255,0.05), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 6px);
        opacity: 0.6;
        z-index: 0;
    }

    #tecnologia .container {
        position: relative;
        z-index: 2;
    }

.tech-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    border: 1px solid rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: 10px;
    transition: transform .45s, box-shadow .45s, border-color .3s;
    position: relative;
    overflow: hidden;
}

    .tech-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(74,163,255,0.06) 0%, transparent 20%);
        opacity: 0;
        transition: opacity .45s;
        pointer-events: none;
    }

    .tech-card:hover::after {
        opacity: 1;
    }

    .tech-card:hover {
        transform: translateY(-14px) scale(1.02);
        box-shadow: 0 28px 60px rgba(0,0,0,0.6);
        border-color: rgba(74,163,255,0.22);
    }

.tech-img-wide {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.92) contrast(1.05) saturate(0.9);
    transition: transform .45s ease, filter .45s ease;
}

.tech-card:hover .tech-img-wide {
    transform: translateY(-6px) scale(1.05);
    filter: brightness(1) contrast(1.1) saturate(1);
}

/* ===========================================================
   AHORRO INTELIGENTE
   =========================================================== */

.bg-gradient-dark {
    background: linear-gradient(180deg, #0c0f13, #12161b);
}

.saving-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .saving-card:hover {
        transform: translateY(-8px);
        border-color: rgba(74,163,255,0.25);
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    }

/* ===========================================================
   PLANES Y PRECIOS
   =========================================================== */

.price-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: transform .4s ease, border-color .4s ease;
}

    .price-card:hover {
        transform: translateY(-10px);
        border-color: rgba(74,163,255,0.3);
    }

    .price-card.featured {
        border-color: rgba(74,163,255,0.4);
        background: linear-gradient(180deg, rgba(74,163,255,0.06), rgba(255,255,255,0.00));
        box-shadow: 0 0 25px rgba(74,163,255,0.15);
    }

/* ===========================================================
   TEXTOS — Jerarquía visual
   =========================================================== */

.text-secondary {
    color: rgba(210,214,218,0.96) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.text-muted {
    color: rgba(191,195,199,0.92) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

    .text-muted.cool {
        color: #a8b4c9 !important;
    }

.text-accent {
    color: var(--accent);
    transition: color 0.3s ease;
}

    .text-accent:hover {
        color: var(--metal-2);
    }

/* ===========================================================
   NAVBAR — Fijo + efecto dinámico al hacer scroll
   =========================================================== */

header.position-fixed {
    backdrop-filter: blur(12px);
    background: rgba(10, 12, 15, 0.55);
    transition: all 0.35s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    z-index: 1030;
}

body {
    padding-top: 86px; /* evita solapamiento con Hero */
}

/* Estado scrolled */
header.scrolled {
    background: rgba(10, 12, 15, 0.92);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
}

/* Navbar interna */
header .navbar {
    transition: padding 0.35s ease;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* En estado scrolled, reducimos altura y tipografía levemente */
header.scrolled .navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

header.scrolled .brand {
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

/* Transiciones suaves para los links */
header .nav-link {
    transition: color 0.25s ease, transform 0.25s ease;
}

    header .nav-link:hover {
        color: var(--metal-2);
        transform: translateY(-2px);
    }

/* Ajustes móviles */
@media (max-width: 991px) {
    body {
        padding-top: 74px;
    }

    header .navbar {
        padding: 0.6rem 0;
    }

    header.scrolled .navbar {
        padding: 0.5rem 0;
    }
}
/* ===========================================================
   NAVBAR — Animación de marca al hacer scroll
   =========================================================== */

.brand {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    color: var(--metal-1);
    font-size: 0.95rem;
    transition: transform 0.4s ease, opacity 0.4s ease, letter-spacing 0.4s ease;
}

header.scrolled .brand {
    transform: scale(0.92) translateY(-2px);
    opacity: 0.85;
    letter-spacing: 1.2px;
}

/* Animación inicial de aparición del header */
header.position-fixed {
    animation: fadeDownIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeDownIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link.active {
    color: var(--metal-2);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* Altura dinámica del header para compensar anclas */
:root {
    --header-h: 86px;
}

/* Todas las secciones anclables respetan el header fijo */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 18px);
    margin-bottom: 60px; /* 👈 nuevo margen extra de separación lógica */
}

    /* Un poco más de aire arriba para que el título respire */
    section[id] .section-title {
        margin-top: 0.2rem; /* ajusta si quieres más/menos */
    }
    /* Añadimos aire al final de la última sección con id (por debajo del contenido visible) */
    section[id]:last-of-type {
        padding-bottom: 120px; /* espacio invisible extra */
    }


/* ====== Language Switcher ====== */
.lang-switcher {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.lang-link {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

    .lang-link:hover {
        color: var(--accent);
        transform: translateY(-1px);
    }

    .lang-link.active {
        color: var(--metal-2);
        font-weight: 600;
        border-bottom: 1px solid var(--accent);
        padding-bottom: 1px;
    }
/* === Logo Cortical Robotics === */
.logo-cortical {
    height: 44px;
    width: auto;
    margin-top: -2px;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.25));
    transition: transform 0.25s ease, filter 0.25s ease;
}

    .logo-cortical:hover {
        transform: scale(1.03);
        filter: drop-shadow(0 0 6px rgba(74,163,255,0.5));
    }

.text-accent {
    color: var(--accent);
    letter-spacing: 0.5px;
}

.tech-card .fs-4 {
    font-size: 1.6rem !important;
}

/* Tamaño del logo en el navbar */
.logo-cortical {
    height: 64px; /* Ideal para desktop */
    width: auto;
    display: block;
}

@media (max-width: 992px) {
    .logo-cortical {
        height: 54px; /* Tablet */
    }
}

@media (max-width: 576px) {
    .logo-cortical {
        height: 42px; /* Móvil */
    }
}


/* ============================================================
   SECCIÓN: PLANES Y PRECIOS
   ============================================================ */

#planes {
    background: #050510;
}

    /* Título y subtítulo */
    #planes .section-title {
        font-size: 2.4rem;
        font-weight: 700;
    }

    #planes .section-subtitle {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        color: rgba(255, 255, 255, 0.7);
    }

/* ------------------------------------------------------------
   TABS (Integración / Suscripción anual)
   ------------------------------------------------------------ */
#pricingTabs .nav-link {
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}

    #pricingTabs .nav-link.active {
        background: linear-gradient(135deg, #7c5cff, #3ac8ff);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 0 12px rgba(100, 100, 255, 0.4);
    }

/* Separación horizontal entre tabs en escritorio */
@media (min-width: 768px) {
    #pricingTabs {
        gap: 0.75rem; /* ajustable: 0.5–1rem */
    }
}


/* ------------------------------------------------------------
   TARJETAS DE PRECIO
   ------------------------------------------------------------ */

/* Base de la card */
#planes .price-card {
    display: flex; /* para alinear el contenido verticalmente */
    flex-direction: column; /* contenido en columna */
    min-height: 520px; /* altura común en desktop (ajustable) */

    background: radial-gradient(circle at top, #17172a 0%, #050510 55%, #020208 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

    /* Hover */
    #planes .price-card:hover {
        transform: translateY(-4px);
        border-color: rgba(124, 92, 255, 0.6);
        box-shadow: 0 26px 55px rgba(0, 0, 0, 0.75);
    }

    /* Tarjeta destacada */
    #planes .price-card.featured {
        border-color: rgba(124, 92, 255, 0.85);
        box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4), 0 30px 65px rgba(0, 0, 0, 0.9);
    }

    /* El botón siempre al fondo de la card */
    #planes .price-card a.btn {
        margin-top: auto;
    }

    /* ------------------------------------------------------------
   BOTONES (sobrios + fix de visibilidad)
   ------------------------------------------------------------ */

    /* Anular cualquier fade-in heredado en esta sección */
    #planes .price-card .btn-cta,
    #planes .price-card .btn-outline-cta {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

/* Botón CTA principal (sólido, neutro) */
#planes .btn-cta {
    background: #1c1c25;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    #planes .btn-cta:hover {
        background: #24242f;
        border-color: rgba(255, 255, 255, 0.2);
    }

/* Botón outline (por ejemplo para Fabricantes) */
#planes .btn-outline-cta {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
}

    #planes .btn-outline-cta:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.5);
    }

/* ------------------------------------------------------------
   LISTAS
   ------------------------------------------------------------ */

#planes ul li {
    line-height: 1.6;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

/* En móvil no hace falta min-height tan grande */
@media (max-width: 992px) {
    #planes .price-card {
        min-height: 0;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    #planes .section-title {
        font-size: 2rem;
    }
}


/* Alinear verticalmente las tech-card */
/*#ventajas .tech-card {
    display: flex;
    flex-direction: column;
}*/

    /* Hacer que el bloque del porcentaje se vaya al fondo */
    /*#ventajas .tech-card .mt-3 {
        margin-top: auto;
    }*/

/* Alinear verticalmente las tarjetas de "Ventajas competitivas" */
#ventajas .tech-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    /* Empujar el bloque del porcentaje al fondo de la card */
    #ventajas .tech-card .mt-3 {
        margin-top: auto !important; /* para ganar a la utilidad .mt-3 de Bootstrap */
    }

.align-top {
    align-self: flex-start !important;
}

/* Estilo elegante para la cita de filosofía */

.quote-block {
    max-width: 780px;
    text-align: center;
}

    .quote-block blockquote p {
        font-size: 1.1rem; /* más discreto que section-subtitle */
        font-style: italic;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.75); /* más suave */
        margin: 0;
    }

    .quote-block .blockquote-footer {
        color: rgba(255, 255, 255, 0.55);
        font-weight: 500;
        font-size: 0.95rem;
    }

.link-linkedin {
    color: #7FA6C7 !important;
    text-decoration: none;
}

    .link-linkedin:hover {
        color: #A4C3DD !important;
    }

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
}

    .footer-link:hover {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: underline;
    }

.long-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #04040b; 
}


/*main[role="main"] {
    padding-bottom: 5rem;*/ /* prueba con 4–6rem según te guste */
/*}*/


.darkgray-bg {
    background-color: #101010; /* el que estás usando */
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.darkgray-bg .lab-img {
        border-radius: 1rem;
    }

.lab-img {
    border-radius: 1rem;
}

/* Meta de los posts del blog en el hero */
.post-meta {
    color: rgba(255, 255, 255, 0.88); /* casi blanco pero no puro */
    font-weight: 300;
    letter-spacing: 0.03em;
    /* sombra más potente para contrastar sobre negro */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
}

.post-meta {
    position: relative;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    /* Texto */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    /* Fondo sutil */
    background: rgba(0, 0, 0, 0.25); /* muy suave, apenas visible */
}

/* HERO específico para páginas de blog */
.blog-hero-overlay {
    background: linear-gradient( to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.35) ) !important;
}

