/* ============================================================
   PALETA DE MARCA — MathiasPaez.com v2.0
============================================================ */

:root {
    --fondo: #0f0f0f;
    --fondo-oscuro: #0b0b0b;
    --texto: #f6f1eb;
    --gris: #c7c7c7;
    --panel: #111;

    --azul: #00d4ff;
    --azul-oscuro: #0072ff;

    --radio: 14px;
    --sombra: 0 0 28px rgba(0,0,0,0.25);
}

/* ========================================
   TITULOS — COLOR DE MARCA (AZUL BLOG)
======================================== */

h1, h2, h3, h4,
.titulo-hero,
.titulo-seccion,
.panel-titulo {
    color: #4da3ff !important;
    text-shadow: 0 0 12px rgba(77,163,255,0.35);

}


/* BASE */
body {
    background: var(--fondo);
    color: var(--texto);
    font-family: "Inter", sans-serif;
}

h1, h2, h3 {
    font-family: "Space Grotesk", sans-serif;
}

/* NAVBAR */
.bg-negro { background: #050505 !important; }
.sombra-nav { box-shadow: 0 0 18px rgba(0,0,0,0.35); }

.nav-link {
    color: var(--gris) !important;
    font-weight: 500;
}
.nav-link.active,
.nav-link:hover { color: var(--azul) !important; }

/* HERO */
/* ============================================================
   HERO RESPONSIVE CON FOTO REAL — MathiasPaez.com v2.0
============================================================ */

#hero {
    position: relative;
    background: url("/assets/img/bg-hero.png") center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Capa oscura para contraste */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Asegura que el contenido esté encima del overlay */
#hero .container {
    position: relative;
    z-index: 2;
}

/* ============================================================
   HERO — LOGO OPTIMIZADO PARA DESKTOP Y MOBILE
============================================================ */

/* DESKTOP */
.hero-logo-bg {
    position: absolute;
    top: 46%; /* un poco más arriba */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: 520px;
    opacity: 0.11; /* un toque más marcado */
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.35));
    z-index: 1;
    pointer-events: none;
    transition: 0.35s ease;
}

/* CONTENT ABOVE */
#hero .container {
    z-index: 2;
    position: relative;
}

/* MOBILE */
@media (max-width: 768px) {

    /* Oculta logo del navbar */
    .navbar-brand img {
        display: none !important;
    }

    .hero-logo-bg {
        top: 38%;   /* más arriba para que no se mezcle con el texto */
        width: 65%;
        max-width: 260px;
        opacity: 0.17;  /* más visible */
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.25));
    }
}

/* EXTRA SMALL */
@media (max-width: 480px) {

    .hero-logo-bg {
        top: 36%;
        width: 70%;
        max-width: 230px;
        opacity: 0.19;
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.22));
    }
}
/* ============================================================
   BLOG — SECCIÓN FULLSCREEN CON FONDO TECH
============================================================ */

#blogA.blog-bg {
    position: relative;
    background: url("/assets/img/bg-blog.png") center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

/* Overlay oscuro tipo HERO */
.overlay-blog {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    z-index: 1;
}

/* Contenido siempre arriba del overlay */
#blogA .col-md-4,
#blogA .col-md-5,
#blogA .col-md-6 {
    height: auto !important;
}

#blogA .container {
    position: relative;
    z-index: 2;
}
/* ============================================================
   CARD BLOG — ESPACIADOS OPTIMIZADOS
============================================================ */

.card-blog {
    padding: 28px !important; /* más aire interno */
}

.card-blog-img {
    margin-bottom: 22px; /* espacio entre imagen y texto */
}

.card-blog-title {
    margin-bottom: 14px !important;
}

.card-blog-text {
    margin-bottom: 24px !important; /* más aire antes del botón */
}

.card-blog-body {
    padding: 0 6px; /* aire lateral sutil, sin romper alineación */
}


/* ================================
   RESPONSIVE — TABLET
================================ */
@media (max-width: 992px) {

    #hero {
        background-position: center top;
        background-attachment: scroll; /* evita saltos en iOS */
    }

    #hero::before {
        background: rgba(0,0,0,0.60);
        backdrop-filter: blur(3px);
    }

    .titulo-hero {
        font-size: 34px;
    }

    .subtitulo-hero {
        font-size: 16px;
    }
}


/* ================================
   RESPONSIVE — MOBILE
================================ */
@media (max-width: 576px) {

    #hero {
        background-position: center top;
        padding: 0 16px;
    }

    #hero::before {
        background: rgba(0,0,0,0.70); /* más contraste para pantallas chicas */
        backdrop-filter: blur(4px);
    }

    .titulo-hero {
        font-size: 28px;
        line-height: 1.25;
    }

    .subtitulo-hero {
        max-width: 90%;
        font-size: 14px;
        opacity: 0.85;
    }

    .btn {
        padding: 10px 20px !important;
        font-size: 0.9rem;
    }
}

/* ===========================================
   BLOG — IMAGENES RESPONSIVE
=========================================== */

.card-blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radio);
}

@media (min-width: 992px) {
    .card-blog-img {
        height: 260px;
    }
}

@media (max-width: 576px) {
    .card-blog-img {
        height: 180px;
    }
}



.sombra-suave { box-shadow: var(--sombra); }

/* SECCIONES */
.fondo-oscuro { background: var(--fondo-oscuro); }
.titulo-seccion {
    font-size: 32px;
    font-weight: 600;
}

/* BOTONES */
.btn-azul-gradiente {
    background: linear-gradient(90deg, var(--azul), var(--azul-oscuro));
    border-radius: 999px;
    color: #000;
    font-weight: 600;
}

.btn-outline-azul {
    border: 2px solid var(--azul);
    color: var(--azul);
    border-radius: 999px;
    font-weight: 600;
}
.btn-outline-azul:hover {
    background: var(--azul);
    color: #000;
}

/* PANEL */
.panel {
    background: var(--panel);
    padding: 24px;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}
.panel-titulo {
    font-size: 22px;
    font-weight: 600;
}

/* FORMULARIOS */
.form-control {
    background: #0f0f0f;
    border: 1px solid #222;
    color: #f2f2f2;     
    border-radius: var(--radio);
}

.form-control::placeholder {
    color: #9a9a9a;    /* Más contraste que antes */
}

.form-control:focus {
    border-color: var(--azul);
    background: #111;
    color: var(--texto);
    box-shadow: none;
}

/* FORZAR IGUAL ALTURA EN LA SECCIÓN DE CONTACTO */
.contacto-fila {
    display: flex;
    align-items: stretch;
}

.contacto-fila .panel {
    height: 100%;
}
/* PANEL DERECHO DEL CONTACTO */
.panel-contacto {
    background: var(--panel);
    padding: 24px;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    display: flex;
    align-items: center;
}

/* Línea vertical */
.linea-contacto {
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Lista de redes */
.lista-redes li {
    margin-bottom: 12px;
    font-size: 1rem;
    opacity: 0.9;
    transition: 0.2s ease;
}
.lista-redes li:hover {
    opacity: 1;
    color: var(--azul);
}

/* Texto SEO alineado verticalmente */
.texto-seo-contacto {
    font-size: .88rem;
    line-height: 1.55;
    opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .panel-contacto {
        flex-direction: column;
    }

    .linea-contacto {
        display: none;
    }

    .texto-seo-contacto {
        margin-top: 16px;
        text-align: left;
    }
}
/* ========================================
   BLOG — Card Último Post (responsiva real)
======================================== */

.card-ultimo-post {
    background: #0e0e0e;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 0 22px rgba(0,0,0,0.35);
    width: 100%;
    height: auto; /* clave */
}

.card-ultimo-post img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.card-ultimo-post .titulo-post {
    margin-top: 18px;
    margin-bottom: 14px;
    line-height: 1.3;
}

.card-ultimo-post .descripcion-post {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 22px; /* aire */
}

/* Mobile */
@media (max-width: 576px) {
    .card-ultimo-post {
        padding: 18px;
    }
    .card-ultimo-post .titulo-post {
        margin-bottom: 16px;
        font-size: 1.1rem;
    }
    .card-ultimo-post .descripcion-post {
        margin-bottom: 26px;
    }
}




/* FOOTER */
.footer {
    background: #050505;
    border-top: 1px solid rgba(255,255,255,0.05);
}
/* ============================================================
   FORMULARIO — TEXTO MÁS CLARO PARA MÓVILES
============================================================ */

@media (max-width: 576px) {
    .form-control {
        color: #ffffff !important;     /* texto más claro */
    }

    .form-control::placeholder {
        color: rgba(255,255,255,0.75) !important; /* placeholder más visible */
    }
}

/* ==============================================
   FIX: Borde extraño en botones con gradiente
============================================== */

.btn-azul-gradiente {
    background: linear-gradient(90deg, var(--azul), var(--azul-oscuro));
    border-radius: 999px;
    color: #000 !important;
    font-weight: 600;
    border: none !important; /* evita borde residual */
    outline: none !important;
    box-shadow: 0 0 0 0 transparent !important; /* limpia halo */
    position: relative;
    z-index: 3; /* se eleva sobre el blur del bg */
}

/* corrige el icono también */
.btn-azul-gradiente i {
    color: #000 !important;
}

/* estado hover limpio */
.btn-azul-gradiente:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/* ============================================================
   ÚLTIMO VIDEO — Glow Azul + Texto Centrado
============================================================ */

.video-placeholder {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    
    /* GLOW AZUL ALREDEDOR */
    box-shadow: 0 0 55px rgba(77,163,255,0.35),
                0 0 95px rgba(77,163,255,0.18);
}

/* Capa de blur oscurecida encima de la miniatura */
.video-thumb-blur {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 2;
}

/* Miniatura */
.video-thumb {
    width: 100%;
    display: block;
    opacity: 0.55;
    filter: blur(1.5px);
}

/* TEXTO CENTRADO */
.video-coming-soon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;

    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;

    color: #d9ecff;
    text-shadow: 
        0 0 20px rgba(77,163,255,0.8),
        0 0 38px rgba(77,163,255,0.45);

    background: rgba(0,0,0,0.32);
    padding: 18px 32px;
    border-radius: 14px;
    backdrop-filter: blur(8px);

    transition: opacity 0.3s ease;
}

.video-placeholder:hover .video-coming-soon {
    opacity: 1;
}

/* MOBILE RESPONSIVE */
@media (max-width: 576px) {
    .video-coming-soon {
        font-size: 1.8rem;
        padding: 12px 22px;
    }
}
