/* css/style.css */
/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

p {
    color: rgb(85, 85, 85);
}

a,
.btn {
    transition: all 300ms ease;
}

/* NAVEGACIÓN FLOTANTE */
.floating-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 1.5rem 2rem 0 2rem;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    height: 70px;
    transition: all 0.3s ease;
}

/* DESKTOP NAV */
#desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 1.2rem;
}

a {
    color: black;
    text-decoration: none;
}

.azul-color:hover {
    color: rgb(79, 148, 226);
    text-decoration-color: rgb(79, 148, 226);
    text-underline-offset: 0.5rem;
    text-decoration: underline;
}

.purpura-color:hover {
    color: rgb(181, 129, 241);
    text-decoration-color: rgb(181, 129, 241);
    text-underline-offset: 0.5rem;
    text-decoration: underline;
}

.rosa-color:hover {
    color: rgb(226, 79, 140);
    text-decoration-color: rgb(226, 79, 140);
    text-underline-offset: 0.5rem;
    text-decoration: underline;
}

.naranja-color:hover {
    color: rgb(245, 115, 56);
    text-decoration-color: rgb(245, 115, 56);
    text-underline-offset: 0.5rem;
    text-decoration: underline;
}

.logo {
    font-size: 2rem;
    background-image: linear-gradient(to right, rgb(79, 148, 226), rgb(181, 129, 241), rgb(226, 79, 140), rgb(245, 115, 56));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo:hover {
    cursor: default;
}

/* HAMBURGER MENU */
#hamburger-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

/* --- MENÚ DESPLEGABLE DE HAMBURGUESA (REGLA CORREGIDA) --- */
.menu-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    /* Hacemos el contenedor principal transparente */
    background-color: transparent;

    /* Estilos de layout y sombra */
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    /* Mantenemos el overflow para la animación de altura */
    transition: all 0.3s ease-in-out;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(35px);
    /* <-- ¡Y AQUÍ TAMBIÉN! */
    -webkit-backdrop-filter: blur(35px);
}

/* --- ¡NUEVO! PSEUDO-ELEMENTO PARA EL FONDO DEL MENÚ DESPLEGABLE --- */
.menu-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    /* Color y desenfoque */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(35px);
    /* <-- ¡Y AQUÍ TAMBIÉN! */
    -webkit-backdrop-filter: blur(35px);

    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

/*Texto By Angel Emil*/
.logo-byline {
    font-size: 15px;
    color: #999;
    margin-left: 20px;
    white-space: nowrap;
}

.logo-byline:hover {
    cursor: default;
}

/* SECTIONS */
section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */
#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title-pinxura {
    /* Estilos que se mantienen */
    text-align: center;
    background-image: linear-gradient(to right,
            rgb(79, 148, 226),
            rgb(181, 129, 241),
            rgb(226, 79, 140),
            rgb(245, 115, 56));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;

    /* --- ¡AQUÍ ESTÁ LA SOLUCIÓN! --- */
    /* El tamaño de la fuente ahora es responsivo */
    /* Mínimo: 3rem, Ideal: 12vw, Máximo: 6rem */
    font-size: clamp(2.5rem, 10vw, 6rem);

    /* 2. ¡LA CLAVE! Permitimos que el texto se rompa si es necesario */
    /* 'break-word' es seguro y romperá la palabra solo si no hay otra opción. */
    word-break: break-word;
}

.title {
    font-size: 6rem;
    text-align: center;
}

/* ICONS */
.icon {
    font-size: 2rem;
    color: rgb(85, 85, 85);
    cursor: default;
}

article .icon {
    font-size: 1.5rem;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
    font-size: 3rem;
    cursor: pointer;
}

.contact-icon {
    font-size: 1.5rem;
}

/* BUTTONS */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 1rem;
    width: auto;
    min-width: 8rem;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn .btn-icon {
    font-size: 1.5rem;
}

.btn-color-1,
.btn-color-2:hover {
    background: rgb(53, 53, 53);
    color: white;
}

.btn-color-1:hover {
    background: rgb(0, 0, 0);
    cursor: pointer;
}

.btn-color-2 {
    background: none;
    color: black;
}

.btn-color-2:hover {
    border: rgb(255, 255, 255) 0.1rem solid;
    cursor: pointer;
}

/* --- ¡SOLUCIÓN! REGLA ESPECÍFICA PARA EL ICONO DE GOOGLE PLAY --- */
/* Esta regla asegura que el icono de Google Play NUNCA sea blanco */
.btn .fi-brands-google-play {
    color: black !important;
}

/* ABOUT SECTION */
#about {
    position: relative;
}

.about-containers {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.about-pic {
    border-radius: 2rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

/* EXPERIENCE SECTION */
#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(85, 85, 85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-sub-title-name {
    color: rgb(85, 85, 85);
    font-weight: 200;
    font-size: 1.55rem;
    margin-bottom: 1rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    align-items: center;
    width: 10rem;
    justify-content: flex-start;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */
#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* --- CORRECCIÓN TAMAÑO TARJETAS HOME (Simular 3 columnas siempre) --- */

#latest-apps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    /* Mismo espacio que tenías */
    width: 100%;
}

#latest-apps-grid .details-container {
    /* 
       EXPLICACIÓN:
       flex-grow: 0   -> No estirarse si sobra espacio (mantiene el tamaño como si hubiera 3)
       flex-shrink: 0 -> No encogerse
       flex-basis: calc(33.33% - 2rem) -> Ocupar un tercio de la pantalla menos el hueco (gap)
    */
    flex: 0 0 calc(33.33% - 2rem);

    /* Aseguramos que no se rompa en pantallas muy anchas */
    min-width: 300px;
    height: auto;
    /* Dejar que el contenido defina la altura */
}

/* ==================================================
   --- ANIMACIONES HOME (SOLO ZOOM Y BORDES) --- 
   ================================================== */

/* 1. CONTENEDOR DE LA TARJETA */
#latest-apps-grid .details-container {
    transition: all 0.3s ease;
    background: #fff;
    border: 2px solid rgb(163, 163, 163);
    /* Tu borde original */
}

/* 2. EFECTO HOVER CON BORDE DEGRADADO */
#latest-apps-grid .details-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);

    /* TRUCO PARA BORDE DEGRADADO CON CURVAS: */

    /* 1. Hacemos el borde transparente para ver lo de atrás */
    border: 2px solid transparent;

    /* 2. Definimos dos fondos:
          - El primero es blanco (padding-box) -> Cubre el contenido
          - El segundo es el degradado (border-box) -> Se ve solo en el borde */
    background:
        linear-gradient(#fff, #fff) padding-box,
        /* Fondo interior blanco */
        linear-gradient(to right,
            rgb(79, 148, 226),
            rgb(181, 129, 241),
            rgb(226, 79, 140),
            rgb(245, 115, 56)) border-box;
    /* Fondo del borde (Degradado Pinxura) */
}

/* 3. CONTENEDOR DE LA IMAGEN */
#latest-apps-grid .article-container {
    overflow: hidden;
    /* Para que el zoom no se salga del marco */
    border-radius: 2rem;
}

/* 4. ANIMACIÓN DE LA IMAGEN */
#latest-apps-grid .project-img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

#latest-apps-grid .details-container:hover .project-img {
    transform: scale(1.08);
    /* Zoom suave al pasar el mouse */
    cursor: pointer;
}

/* --- AJUSTE RESPONSIVE (Para que no se vea mal en Laptop/Móvil) --- */

/* En pantallas medianas (Laptops/Tablets), pasamos a 2 columnas */
@media screen and (max-width: 1200px) {
    #latest-apps-grid .details-container {
        flex: 0 0 calc(50% - 2rem);
        /* Ocupar la mitad */
    }
}

/* En pantallas pequeñas (Móviles), pasamos a 1 columna */
@media screen and (max-width: 800px) {
    #latest-apps-grid .details-container {
        flex: 1 1 100%;
        /* Ocupar todo el ancho */
    }
}

/* CONTACT SECTION */
/* --- SECCIÓN DE CONTACTO CORREGIDA --- */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;

    /* La altura ahora se ajusta a su contenido, eliminando el espacio vacío */
    height: auto;
    min-height: auto;
    /* Anulamos el min-height heredado */

    /* Añadimos un padding inferior para crear una separación controlada con el footer */
    padding-bottom: 8rem;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

/* FOOTER SECTION */
/* --- FOOTER CORREGIDO --- */
.site-footer {
    position: relative;
    overflow: hidden;
    display: block;

    /* 1. Reducimos el margen superior de 6rem a 2rem (o al valor que prefieras) */
    /* Formato: top | horizontal | bottom */
    margin: 2rem auto 2rem auto;

    width: 90%;
    max-width: 1200px;
    padding: 3rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bg-text {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 1;
    text-align: right;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    z-index: 1;
    user-select: none;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-about {
    flex: 2;
    min-width: 280px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.logo-group img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.footer-about p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 350px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1b1b1b;
}

.footer-links {
    flex: 3;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-col ul li .fi {
    color: #abadaf;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    position: relative;
    top: 1px;
}

.footer-col ul li p,
.footer-col ul li a {
    margin: 0;
}

.footer-col a,
.footer-col p {
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #1b1b1b;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #777;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* =========================================
   ESTILOS PÁGINA FUNDADOR (Versión Centrada)
   ========================================= */

.founder-section {
    padding-top: 140px;
    min-height: 100vh;
    margin: 0 5rem;
    /* Márgenes laterales */
    box-sizing: border-box;
    height: auto !important;
    padding-bottom: 5rem;
    display: flex;
    justify-content: center;
}

/* Arreglo del contenedor flex */
.founder-container-fix {
    height: auto !important;
    display: flex;
    /* AQUÍ ESTÁ LA CLAVE: Si quieres la foto arriba y texto abajo, usa 'column'
       Si quieres foto lado a lado, usa 'row'. 
       Para biografía centrada, 'column' o 'row' centrado funcionan diferente.
       Vamos a usar ROW para escritorio para mantener la foto al lado, pero centrada verticalmente */
    flex-direction: row;
    align-items: center;
    /* Centra verticalmente foto y texto */
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
}

/* Contenedor de detalles (Lado derecho) */
.bio-centered-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Para diseño híbrido: Títulos centrados, texto justificado */
    align-items: center;
    text-align: center;
    flex: 1;
}

/* Texto pequeño del saludo */
.greeting-text {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

/* --- DISEÑO DEL TEXTO --- */
.bio-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    /* Limitamos el ancho para que se vea elegante al centro */
    margin: 0 auto;
    /* Asegura que el bloque esté centrado */
}

.bio-text {
    /* JUSTIFICADO: Crea bloques perfectos */
    text-align: justify;
    /* Última línea centrada (opcional, a veces se ve mejor a la izquierda) */
    text-align-last: left;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
}

/* Cita destacada */
.bio-highlight {
    border-left: 4px solid rgb(79, 148, 226);
    background: #f4f8fb;
    padding: 20px 25px;
    margin: 10px 0;
    font-style: italic;
    color: #444;
    border-radius: 0 10px 10px 0;
    /* El texto de la cita se ve mejor centrado o a la izquierda?
       Probemos izquierda para contraste con el borde */
    text-align: left;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 1000px) {
    .founder-container-fix {
        flex-direction: column;
        /* En pantallas pequeñas, foto arriba */
        gap: 2rem;
    }

    .founder-section {
        margin: 0 5%;
        padding-top: 100px;
    }

    .title {
        font-size: 2.5rem !important;
    }

    /* En móvil, el justificado a veces crea huecos feos, 
       podemos forzar izquierda o mantener justificado */
    .bio-text {
        text-align: left;
    }
}

/* ==================================================
   --- INTEGRACIÓN PORTAFOLIO & DETALLES (FINAL) --- 
   ================================================== */

:root {
    --bg-detail: #e6e9e6;
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --accent-pinxura: rgb(123, 64, 218);
    /*rgb(79, 148, 226);  Azul de tu marca */
    --accent-lime: #d4f245;

    /* 2. NUEVO: Degradado Oficial (Para bordes, fondos de botones, títulos grandes) */
    --gradient-pinxura: linear-gradient(to right,
            rgb(79, 148, 226),
            rgb(181, 129, 241),
            rgb(226, 79, 140),
            rgb(245, 115, 56));
}

/* Fondos de página */
body.page-portfolio {
    background-color: #ffffff;
}

body.page-detail {
    background-color: var(--bg-detail);
}

/* -------------------------------------------
   VISTA 1: PORTAFOLIO (Lista de Apps)
   ------------------------------------------- */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px 20px;
    /* Padding superior para navbar flotante */
    min-height: 80vh;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-header p {
    color: #888;
    margin-top: 10px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.app-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);

    /* --- EFECTO DEGRADADO PINXURA --- */

    /* 1. Hacemos el borde un poco más grueso y transparente */
    border: 2px solid transparent;

    /* 2. Aplicamos el truco del doble fondo:
          - El primero pinta el interior de blanco.
          - El segundo usa tu variable degradada para pintar el borde. */
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gradient-pinxura) border-box;
}

/* Previsualización de Imagen en Portafolio */
.app-card-preview {
    width: 100%;
    height: 200px;
    background-color: #f4f4f4;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.app-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.app-card:hover .app-card-preview img {
    transform: scale(1.08);
}

.app-card-content {
    padding: 0 5px;
}

.app-card h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
}

.app-card span {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Flecha decorativa hover */
.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: #111;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.app-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* -------------------------------------------
   VISTA 2: DETALLES (Dashboard Bento Grid)
   ------------------------------------------- */

.detail-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    padding-top: 130px;
    padding-bottom: 50px;
}

.dashboard-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    grid-template-rows: auto auto;
    /* Hero y Bottom row */
    gap: 20px;
}

/* --- ESTILOS "GLASS" (CRISTAL) UNIFICADOS --- */
/* Aplica a todas las tarjetas del dashboard */
.hero-card,
.widget-card,
.news-card,
.small-gallery,
.stat-card {
    /* Fondo blanco semitransparente */
    background: rgba(255, 255, 255, 0.65);
    /* Desenfoque del fondo (Frosted Glass) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Borde sutil */
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Propiedades generales */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

/* 1. HERO CARD (Principal Izquierda) */
.hero-card {
    border-radius: var(--radius-lg);
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.hero-content {
    width: 50%;
    z-index: 2;
}

.tag {
    background: rgba(240, 240, 240, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
}

.feature-point {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.number-big {
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px #ccc;
}

.feature-text h4 {
    margin-bottom: 5px;
    color: #111;
}

.feature-text p {
    font-size: 0.9rem;
    color: #888;
    max-width: 250px;
}

/* BOTÓN DEGRADADO MARCA */
.cta-btn {
    background: linear-gradient(135deg, rgb(79, 148, 226), rgb(181, 129, 241));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 10px 20px -5px rgba(79, 148, 226, 0.5);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px -5px rgba(79, 148, 226, 0.7);
}

.arrow-circle {
    background: white;
    color: rgb(79, 148, 226);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero-image-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* IMAGEN PRINCIPAL (CURVAS FORZADAS) */
.main-product-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    max-height: 350px;
    object-fit: contain;
    transition: transform 0.5s;
    border-radius: 30px !important;
}

.hero-card:hover .main-product-img {
    transform: scale(1.05) rotate(-2deg);
}


/* 2. COLUMNA DERECHA & WIDGETS */
.right-column {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-card {
    padding: 20px;
}

/* Badge de Versión */
.version-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 20px;
    border-radius: 15px;
    display: inline-block;
}

.vertical-product {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.corner-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Imagen Derecha Adaptable */
.vertical-product-img-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 10px;
}

/* Transición suave para la imagen del widget derecho */
.vp-img-adaptable {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;

    /* Animación de opacidad para el cambio */
    transition: opacity 0.2s ease, transform 0.3s ease;
    opacity: 1;
}


/* 3. FILA INFERIOR */
.bottom-row {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    gap: 20px;
}

.small-gallery {
    padding: 20px;
    width: 100%;
}

/* Galería con Zoom */
.mini-grid {
    display: grid;
    /* AQUÍ ESTÁ LA MAGIA: repeat(5, 1fr) crea 5 columnas exactas. 
       Si hay más de 5 imágenes, bajan automáticamente a la siguiente fila. */
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    /* Espacio entre cuadritos */
    margin-top: 15px;
    position: relative;
    width: 100%;
}

/* Los cuadritos de las imágenes */
.mini-thumb {
    /* Quitamos el ancho fijo (60px) y le decimos que ocupe todo el ancho de su columna */
    width: 100%;

    /* Esta propiedad asegura que sean siempre CUADRADOS perfectos, sin importar el ancho */
    aspect-ratio: 1 / 1;

    background-color: #f0f0f0;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
    position: relative;
    z-index: 1;
}

/* Clase para la miniatura seleccionada */
.mini-thumb.active-thumb {
    border-color: var(--accent-pinxura) !important;
    /* Borde Azul */
    box-shadow: 0 0 0 2px rgba(79, 148, 226, 0.3);
    /* Resplandor suave */
    transform: scale(1.05);
    /* Ligeramente más grande */
    z-index: 50;
}

/* Efecto Zoom (Lupa) */
.mini-thumb:hover {
    transform: scale(1.8);
    /* Aumenta el tamaño */
    z-index: 100;
    /* Se pone encima de las demás */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-pinxura);
    /* Opcional: Borde azul al hacer hover */
}

/* Tarjeta de Fecha (Estilo Glass) */
.stat-card {
    color: #111;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.info-big-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 5px 0;
    color: #333;
}

.news-card {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Botón Volver para Detalles */
.back-btn-detail {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #111;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn-detail:hover {
    transform: scale(1.05);
    color: white;
}

/* --- ACTUALIZACIÓN WIDGET COMPATIBILIDAD --- */

.compatibility-widget {
    /* Cambiamos a columna para tener más espacio vertical */
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center;
    gap: 10px;
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(76, 78, 80);
    /* Azul Pinxura */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.os-list {
    display: flex;
    flex-direction: column;
    /* Elementos uno debajo del otro */
    gap: 8px;
    width: 100%;
}

.os-tag {
    background: rgba(255, 255, 255, 0.5);
    /* Fondo sutil */
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.os-tag:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.os-tag i {
    font-size: 1.1rem;
}

/* Responsive Dashboard */
@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .hero-card {
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 30px;
    }

    .hero-image-container {
        width: 100%;
    }

    .bottom-row {
        flex-direction: column;
    }

    .stat-card,
    .small-gallery {
        width: 100%;
    }

    /* Ajuste tamaño fuente hero en móvil */
    .hero-title {
        font-size: 2rem;
    }
}

/* --- RESPONSIVE PARA MÓVIL --- */
/* En celulares muy pequeños, 5 columnas pueden ser muy apretadas.
   Podemos bajarlo a 4 o 3 si lo deseas. Agrega esto al final del CSS media query */
@media (max-width: 500px) {
    .mini-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 por fila en celular */
    }
}

/* --- ACTUALIZACIÓN: FONDO AMBIENTAL Y GALERÍA --- */

/* 1. LOGO DE FONDO (Efecto Ambiente) */
.bg-decoration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    /* Ocupa el 80% del ancho de pantalla */
    height: 100vh;
    /* Ocupa el 80% del alto */
    z-index: -1;
    /* Se va al fondo de todo */
    pointer-events: none;
    /* No interfiere con clics */

    /* Reemplaza esta ruta con tu logo o imagen colorida favorita */
    background-image: url('../assets/profile-pic.png');

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    /* LA MAGIA DEL CRISTAL: */
    opacity: 0.15;
    /* Muy sutil para no molestar la lectura */
    filter: blur(15px);
    /* Desenfoque fuerte para crear "manchas de luz" */

    /* Animación opcional: un respiro suave */
    animation: floatingLogo 10s ease-in-out infinite;
}

@keyframes floatingLogo {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================================================
   --- PÁGINA MISIÓN / NOSOTROS --- 
   ================================================== */

/* Fondo específico para esta página */
body.page-mission {
    background-color: var(--bg-detail);
    /* Mismo gris suave que detalles */
    min-height: 100vh;
}

/* Contenedor Principal */
.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 80px 20px;
    /* Padding superior para navbar */
    min-height: 80vh;
}

/* Header */
.mission-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-header p {
    font-size: 1.2rem;
    color: #555;
    margin-top: 15px;
}

/* Grilla de 3 Columnas */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Tarjetas de Misión/Visión (Estilo Glassmorphism) */
.mission-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(79, 148, 226, 0.15);
    /* Sombra azulada sutil */
    background: rgba(255, 255, 255, 0.85);
}

/* Tarjeta Central Destacada (Visión) */
.highlight-card {
    border-color: rgba(79, 148, 226, 0.3);
    position: relative;
    z-index: 2;
}

/* Iconos con Degradado */
.mission-icon-box {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mission-icon-box i {
    font-size: 2.5rem;
    /* Degradado de texto */
    background: linear-gradient(135deg, rgb(79, 148, 226), rgb(181, 129, 241));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111;
}

.mission-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* Lista de Valores */
.values-list {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-top: 10px;
}

.values-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
}

.values-list li i {
    color: rgb(79, 148, 226);
    font-size: 1.2rem;
}

/* Sección Inferior Filosofía */
.philosophy-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(79, 148, 226, 0.2);
    margin-bottom: 20px;
}

.philosophy-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #111, #555);
    -webkit-background-clip: text;
    color: transparent;
}

.philosophy-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .mission-grid {
        grid-template-columns: 1fr;
        /* Una columna en móvil */
    }

    .philosophy-section {
        padding: 40px 20px;
    }

    .mission-header h1 {
        font-size: 2.5rem !important;
    }
}

/* ==================================================
   --- PÁGINAS LEGALES (Privacidad y Términos) --- 
   ================================================== */

.legal-section {
    max-width: 900px;
    /* Un poco más estrecho para facilitar la lectura */
    margin: 0 auto;
    padding: 140px 20px 80px 20px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.legal-header .last-update {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Tarjeta de Texto Legal (Estilo Cristal) */
.legal-card {
    background: rgba(255, 255, 255, 0.75);
    /* Un poco más opaco para leer mejor */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 50px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    color: #333;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;

    /* APLICAR DEGRADADO DE MARCA */
    background: linear-gradient(135deg, rgb(79, 148, 226), rgb(181, 129, 241));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Hace transparente el texto para ver el fondo */

    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Borde más sutil */
    padding-bottom: 10px;
    display: inline-block;
    /* Necesario para que el degradado no se corte mal */
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    /* Buen espaciado para lectura */
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* En móvil reducir padding */
@media (max-width: 768px) {
    .legal-card {
        padding: 25px;
    }

    .legal-header h1 {
        font-size: 2.2rem;
    }
}

/* ==================================================
   --- NUEVAS SECCIONES (Servicios, FAQ, Roadmap) --- 
   ================================================== */

/* --- 1. SERVICIOS (Cards con Iconos Grandes) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(79, 148, 226, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgb(79, 148, 226), rgb(181, 129, 241));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- 2. FAQ (Acordeón) --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-pinxura);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: #666;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Estado Activo del FAQ */
.faq-item.active {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px 25px;
    max-height: 300px;
}


/* --- 3. ROADMAP (Línea de Tiempo) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Línea vertical central */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    /* Ajuste para móvil: a la izquierda */
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-pinxura), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
    /* Espacio para la línea */
}

.timeline-dot {
    position: absolute;
    left: 11px;
    /* Centrado en la línea */
    top: 5px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--accent-pinxura);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(79, 148, 226, 0.5);
}

/* Animación de pulso para el estado "En Progreso" */
.timeline-item.in-progress .timeline-dot {
    background: var(--accent-pinxura);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 148, 226, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 148, 226, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 148, 226, 0);
    }
}

/* --- FILTROS ROADMAP --- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: transparent;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-pinxura);
    color: var(--accent-pinxura);
}

.filter-btn.active {
    background: var(--accent-pinxura);
    color: white;
    border-color: var(--accent-pinxura);
    box-shadow: 0 5px 15px rgba(79, 148, 226, 0.3);
}

/* ==================================================
   --- ESTILOS EXCLUSIVOS DEL BLOG (AISLADOS) --- 
   ================================================== */

/* --------------------------------------------------
   1. LISTA DE NOTICIAS (blog.html)
   -------------------------------------------------- */

.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.blog-card-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.blog-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);

    /* TRUCO PARA BORDE DEGRADADO CON CURVAS: */

    /* 1. Hacemos el borde transparente para ver lo de atrás */
    border: 2px solid transparent;

    /* 2. Definimos dos fondos:
          - El primero es blanco (padding-box) -> Cubre el contenido
          - El segundo es el degradado (border-box) -> Se ve solo en el borde */
    background:
        linear-gradient(#fff, #fff) padding-box,
        /* Fondo interior blanco */
        linear-gradient(to right,
            rgb(79, 148, 226),
            rgb(181, 129, 241),
            rgb(226, 79, 140),
            rgb(245, 115, 56)) border-box;
    /* Fondo del borde (Degradado Pinxura) */
}

.blog-thumb {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card-item:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #222;
    font-weight: 700;
}

.blog-read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-pinxura);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --------------------------------------------------
   2. DETALLE DE LA NOTICIA (detalle-blog.html)
   -------------------------------------------------- */

/* Contenedor principal de lectura */
.blog-reader-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 20px 80px 20px;
    min-height: 100vh;
}

/* Tarjeta de lectura (Fondo Cristal) */
.blog-reader-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.blog-reader-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-reader-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

.blog-reader-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Estilos del texto del artículo */
.blog-reader-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.blog-reader-content p {
    margin-bottom: 20px;
    text-align: left;
}

.blog-reader-content h3 {
    font-size: 1.6rem;
    color: #111;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-reader-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-reader-content li {
    margin-bottom: 10px;
}

/* Estilo para el texto dentro de la tarjeta de blog */
#blog-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

#blog-content h3 {
    font-size: 1.4rem;
    color: #111;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

#blog-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

#blog-content li {
    margin-bottom: 8px;
    color: #555;
}

/* ==================================================
   --- CARRUSEL INFINITO PERFECTO --- 
   ================================================== */

.tech-slider-centered {
    width: 100%;
    max-width: 900px;
    /* Centrado y contenido */
    margin: 0 auto;
    overflow: hidden;
    /* Oculta lo que se sale */
    position: relative;
    padding: 30px 0;

    /* Estilo Visual (Caja de Cristal) */
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);

    /* Desvanecimiento en los bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-track {
    display: flex;
    /* 
       MATEMÁTICA:
       Ancho por item = 120px
       Total items = 16
       Ancho total pista = 1920px
    */
    width: 1920px;

    /* Animación lineal continua sin pausas */
    animation: scrollInfinite 20s linear infinite;
}

.tech-item {
    /* Ancho FIJO importante */
    width: 120px;

    /* Centrar el icono en su espacio */
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 3rem;
    /* Tamaño del icono */
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* ANIMACIÓN SIN SALTOS */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 
           Movemos EXACTAMENTE la mitad:
           8 items * 120px = 960px
           Al llegar a -960px, el item 9 está donde estaba el item 1.
           El navegador reinicia a 0 instantáneamente y nadie lo nota.
        */
        transform: translateX(-960px);
    }
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .tech-slider-centered {
        max-width: 90%;
        /* Un poco más ancho en móvil */
    }

    .tech-item {
        font-size: 2rem;
        /* Iconos un poco más pequeños */
        width: 90px;
        /* Ajustamos el ancho en móvil */
    }

    .tech-track {
        /* Recálculo móvil: 16 items * 90px = 1440px */
        width: 1400px;
        animation: scrollInfiniteMobile 20s linear infinite;
    }
}

@keyframes scrollInfiniteMobile {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 
           Movemos los primeros 8 items
           8 items * 90px = 720px
        */
        transform: translateX(-720px);
    }
}

/* --- NEW LEGAL GRID LAYOUT (Details Page) --- */
.bottom-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columnas */
    gap: 20px;
    margin-top: 20px;
}

/* Card Styles Updates */
.legal-btn-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    padding: 1.5rem;
    border-radius: 2rem;
    border: 1px solid #e0e0e0;
}

.legal-btn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #4f94e2;
}

.legal-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-legal {
    font-size: 1.5rem;
    color: #333;
}

.arrow-legal {
    color: #999;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .bottom-legal-grid {
        grid-template-columns: 1fr;
        /* 1 Column on mobile */
    }
}