/*
Theme Name: GV Telematica Custom Theme
Theme URI: https://gvtelematica.com/
Description: Tema de WordPress moderno y premium, inspirado en TON.org con un diseño oscuro, elegante y responsivo. Desarrollado para promocionar servicios tecnológicos de alta calidad.
Version: 1.0.0
Author: Antigravity
Author URI: https://gvtelematica.com/
Text Domain: gvtelematica
*/

/* ==========================================
   1. REGISTRO DE FUENTES (Poppins Local)
   ========================================== */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   2. VARIABLES Y DISEÑO DEL SISTEMA
   ========================================== */
:root {
    --bg-base: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #41A458;
    --accent-rgb: 65, 164, 88;
    --gradient-glow: #293720;
    --max-width: 1250px;
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Efecto Glassmorphism */
    --glass-bg: rgba(10, 15, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --card-glow-hover: rgba(65, 164, 88, 0.15);
}

/* ==========================================
   3. ESTILOS GENERALES Y RESET
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-base);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fondo con degradado ambiental premium (estilo TON.org) */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, var(--gradient-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, var(--gradient-glow) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(65, 164, 88, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedor central limitado a 1250px */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================
   4. TIPOGRAFÍA Y TÍTULOS
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   5. BOTONES Y LLAMADAS A LA ACCIÓN
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 9999px; /* Botón perfectamente redondeado */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(65, 164, 88, 0.3);
}

.btn-primary:hover {
    background-color: #4eb668;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(65, 164, 88, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================
   6. HEADER Y NAVEGACIÓN
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: all 0.3s ease;
}

.site-header.scrolled .header-container {
    height: 64px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo img {
    height: 40px;
}

/* Menú de Navegación */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--text-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff !important;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

/* ==========================================
   7. PÁGINA DE INICIO (front-page.php)
   ========================================== */
/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('images/background-gvt.webp') center center / cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 10, 0.85);
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(65, 164, 88, 0.15) 0%, transparent 70%);
    opacity: 1.0;
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(65, 164, 88, 0.3);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(65, 164, 88, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Services Grid (Inspirada en TON.org, minimalista de alta tecnología) */
.services-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Tarjetas de Servicio Estilo Glassmorphism */
.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    scroll-margin-top: 290px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 164, 88, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(65, 164, 88, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 30px var(--card-glow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(65, 164, 88, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    border: 1px solid rgba(65, 164, 88, 0.2);
    color: var(--accent);
    font-size: 24px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(65, 164, 88, 0.5);
    transform: scale(1.05);
}

.service-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    gap: 8px;
    width: fit-content;
    padding: 8px 0;
    cursor: pointer;
}

.service-link span {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link span {
    transform: translateX(4px);
}

/* ==========================================
   8. PÁGINA DEL BLOG (home.php)
   ========================================== */
.blog-header {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--bg-base) 0%, rgba(41, 55, 32, 0.2) 100%);
    border-bottom: none;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 12px;
}

.blog-desc {
    color: var(--text-secondary);
    font-size: 18px;
}

.blog-main-container {
    padding-bottom: 100px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* Entrada de Blog Individual */
.blog-post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 32px;
    align-items: stretch;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover {
    border-color: rgba(65, 164, 88, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.blog-post-img-wrapper {
    flex: 0 0 35%;
    min-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1a1a1a;
    align-self: flex-start;
}

.blog-post-img-wrapper > a {
    display: block;
    line-height: 0;
}

.blog-post-img-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover .blog-post-img-wrapper img {
    transform: scale(1.05);
}

/* Fallback dinámico adaptativo */
.blog-fallback-card {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, var(--gradient-glow) 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenido de la entrada */
.blog-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post-meta {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-post-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-post-title a {
    color: #ffffff;
}

.blog-post-title a:hover {
    color: var(--accent);
}

.blog-post-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Botón personalizado para lectura */
.blog-readmore-btn {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 9999px;
}

/* Estado sin entradas (Vacío) */
.blog-no-posts {
    text-align: center;
    padding: 80px 0;
}

.blog-no-posts .no-posts-icon {
    margin-bottom: 24px;
}

.blog-no-posts .no-posts-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--glass-bg);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* ==========================================
   9. DETALLE DEL POST Y PÁGINAS ESTÁTICAS
   ========================================== */
.post-detail-header {
    padding: 160px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.post-detail-header-container {
    max-width: 900px;
}

.post-detail-header .blog-post-meta {
    margin-bottom: 16px;
}

/* Estilos corregidos para el título principal */
.post-detail-header .entry-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    word-wrap: break-word; /* Evita que palabras muy largas rompan el diseño */
}

/* Imagen destacada responsiva */
.post-thumbnail-wrapper {
    max-width: 900px;
    margin: -40px auto 40px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.post-detail-content {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #e5e5e5;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2, .entry-content h3 {
    margin-top: 40px;
    color: #ffffff;
}

/* Navegación responsiva */
.post-navigation {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-next {
    text-align: right;
}

/* ==========================================
   10. DASHBOARD INTERACTIVO CON GRÁFICOS
   ========================================== */

/* Tarjeta principal del dashboard */
.gv-dashboard-card {
    width: 100%;
    max-width: 450px;
    min-height: 420px;
    border-radius: 30px;
    background: radial-gradient(circle at 30% 30%, var(--gradient-glow) 0%, rgba(0,0,0,0.8) 100%);
    border: 1px solid var(--glass-border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
}

/* Header del dashboard */
.gv-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gv-dashboard-status {
    font-family: monospace;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.gv-status-active {
    animation: gv-pulse-status 2s ease-in-out infinite;
}

.gv-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: gv-pulse-dot 2s ease-in-out infinite;
}

@keyframes gv-pulse-dot {
    0%, 100% {
        box-shadow: 0 0 8px var(--accent);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px var(--accent), 0 0 24px rgba(var(--accent-rgb), 0.4);
        transform: scale(1.1);
    }
}

@keyframes gv-pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Contenedor de gráficos */
.gv-dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    min-height: 180px;
}

.gv-chart-container {
    position: relative;
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gv-chart-container:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.08);
}

.gv-chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Estadísticas del dashboard */
.gv-dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.gv-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.gv-stat-item:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
    transform: translateX(4px);
}

.gv-stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gv-stat-value {
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    transition: all 0.3s ease;
}

/* Indicadores inferiores */
.gv-dashboard-indicators {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.gv-indicator-bar {
    flex: 1;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.gv-indicator-fade {
    opacity: 0.3;
}

/* ==========================================
   10. PIE DE PÁGINA (footer.php)
   ========================================== */
.site-footer {
    background: #000000;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, rgba(41, 55, 32, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   12. SECCIÓN DE INFORMACIÓN (info-section)
   ========================================== */
.info-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(41, 55, 32, 0.15) 50%, transparent 100%);
}

.info-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-main-title {
    font-size: 36px;
    margin-bottom: 24px;
}

.info-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.info-bullets-list {
    list-style: none;
    margin-bottom: 32px;
}

.info-bullets-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-bullets-list .bullet-check {
    color: var(--accent);
    font-weight: bold;
}

.info-dashboard-block {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ==========================================
   13. SECCIÓN DE CONTACTO (contact-section)
   ========================================== */
.contact-section {
    padding: 100px 0 120px;
}

.contact-container {
    max-width: 800px;
}

.contact-header-space {
    margin-bottom: 48px;
}

.contact-subtitle-text {
    color: var(--text-secondary);
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

#gv-contact-msg {
    display: none;
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 12px;
    color: #ffffff;
    outline: none;
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select {
    background-color: #111;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(65, 164, 88, 0.15);
}

.form-submit {
    text-align: center;
    margin-top: 12px;
}

.form-btn {
    width: 100%;
    max-width: 250px;
}

/* ==========================================
   Márgenes y Espaciados Estándar de Secciones
   ========================================== */
.services-section,
.info-section,
.contact-section {
    /* 100px arriba y abajo en computadoras */
    padding-top: 100px;
    padding-bottom: 100px;
    margin: 0; /* Aseguramos que ningún margin-top/bottom rompa el diseño */
}

/* El Hero (banner principal) suele necesitar un trato especial por el menú fijo */
.hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
}

/* ==========================================
   11. DISEÑO RESPONSIVO (Móviles y Tablets)
   ========================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .info-main-title {
        font-size: 32px;
    }

    .blog-title {
        font-size: 40px;
    }

    .hero-title {
        font-size: 52px;
    }

    .blog-post-img-wrapper {
        flex: 0 0 300px;
    }

    .post-detail-header .entry-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    /* Mostrar Menú Hamburguesa en Pantallas Pequeñas */
    .menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(5, 8, 5, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Animación del menú hamburguesa al activarse */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(2px, 2px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(2px, -2px);
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .blog-post-img-wrapper {
        flex: none;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        background-color: #0d110e;
        border-radius: 16px;
    }

    .blog-post-img-wrapper > a {
        display: block;
    }

    .blog-post-img-wrapper img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .blog-post-title {
        font-size: 22px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .form-btn {
        max-width: 100%;
    }

    .gv-dashboard-card {
        padding: 24px;
        min-height: auto;
    }

    .gv-dashboard-charts {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 150px;
    }

    .gv-chart-container {
        padding: 8px;
    }

    .gv-stat-value {
        font-size: 14px;
    }

    .gv-stat-label {
        font-size: 11px;
    }

    .post-detail-header {
        padding: 120px 0 40px;
    }

    .post-detail-header .entry-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .post-thumbnail-wrapper {
        margin: 20px auto 30px;
        border-radius: 16px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .info-grid-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .info-main-title {
        font-size: 28px;
        text-align: center;
    }

    .info-content-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-bullets-list {
        text-align: left;
        align-self: flex-start;
        margin: 0 auto 32px auto;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-header-space {
        margin-bottom: 32px;
    }

    .services-section,
    .info-section,
    .contact-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .blog-header {
        padding: 100px 0 40px;
        margin-bottom: 40px;
    }

    .blog-title {
        font-size: 32px;
        text-align: center;
    }

    .blog-desc {
        font-size: 16px;
        text-align: center;
    }

    .blog-main-container {
        padding-bottom: 60px;
    }

    .blog-readmore-btn {
        width: 100%;
        text-align: center;
    }

    .blog-no-posts {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .post-detail-header .entry-title {
        font-size: 26px;
    }

    .info-main-title {
        font-size: 24px;
    }

    .contact-card {
        padding: 24px 16px;
    }

    .blog-title {
        font-size: 28px;
    }

    .blog-post-title {
        font-size: 18px;
    }

    .blog-post-img-wrapper {
        overflow: hidden;
    }

    .blog-post-img-wrapper > a {
        display: block;
    }

    .blog-post-img-wrapper img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}
