/*
Theme Name: Pablo Baselice - Consultor IA
Theme URI: https://pablobaselice.com/
Author: Pablo Baselice
Author URI: https://pablobaselice.com/
Description: Tema personalizado y moderno para Consultoría de Inteligencia Artificial y Automatización, con calculadora de ROI interactiva, Bento Grid y optimización SEO premium de alto rendimiento.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pablobaselice-theme
Tags: dark, responsive-layout, custom-menu, translation-ready, full-width-template

==========================================================================
SISTEMA DE DISEÑO PREMIUM - PABLO BASELICE | CONSULTOR IA
========================================================================== */

/* 1. Importación de Fuentes Premium de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* 2. Variables CSS (Tema Oscuro Tecnológico) */
:root {
    --bg-base: #09090E;
    --bg-surface: #12121A;
    --bg-surface-hover: #1A1A26;
    
    --primary: #8B5CF6; /* Violeta Neón - IA */
    --primary-glow: rgba(139, 92, 246, 0.15);
    --secondary: #06B6D4; /* Cyan Brillante - Automatización */
    --secondary-glow: rgba(6, 182, 212, 0.15);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(139, 92, 246, 0.3);
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --container-max: 1200px;
}

/* 3. Estilos Globales y de Reseteo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ocultar barra de scroll predeterminada y personalizar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #252538;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Ajustes de compatibilidad con barra de administración de WordPress */
#wpadminbar {
    z-index: 99999 !important;
}

/* 4. Fondos Ambientales y Resplandores (Ambient Glow) */
.glow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: floatGlow 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.15); }
}

/* 5. Estilos de Contenedor y Secciones */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    padding: 100px 0;
}

/* 6. Cabecera Premium (Sticky Blur Navigation) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 9, 14, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

/* Ajuste dinámico de posición de header si la barra de WordPress está presente */
.admin-bar header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

header.scrolled {
    padding: 12px 0;
    background: rgba(9, 9, 14, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

/* Clases de WordPress para menús enlazados */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

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

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

.nav-menu a::after, .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-fast);
}

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

/* 7. Botones e Inputs Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 8. Héroe Tecnológico (Hero Section) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 24px;
}

.hero-tag-pulse {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

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

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

/* Estadísticas integradas */
.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Arte de fondo de IA (Visual Mockup en la derecha) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-sphere {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    position: relative;
    box-shadow: 0 0 100px var(--primary-glow);
    animation: sphereFloat 8s infinite alternate ease-in-out;
}

.visual-orbit {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotateOrbit 20s infinite linear;
}

.orbit-1 {
    width: 420px;
    height: 420px;
}

.orbit-2 {
    width: 500px;
    height: 500px;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes sphereFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 9. Estilo Bento Grid para Servicios */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
}

/* Elementos de la Bento Grid */
.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.bento-card-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    top: -50px;
    right: -50px;
    transition: var(--transition-smooth);
}

.bento-card:hover .bento-card-bg-glow {
    opacity: 0.3;
    transform: scale(1.2);
}

.bento-icon {
    font-size: 32px;
    margin-bottom: auto;
    z-index: 2;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    z-index: 2;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    z-index: 2;
}

/* Modificadores de tamaño Bento */
.bento-colspan-2 {
    grid-column: span 2;
}

.bento-rowspan-2 {
    grid-row: span 2;
    justify-content: flex-end;
}

/* 10. Sección de la Calculadora Interactiva de ROI */
.calculator-container {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(18, 18, 26, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.slider-header label {
    font-size: 15px;
    color: var(--text-secondary);
}

.slider-value {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--secondary);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #1e1e2f;
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Panel de Resultados de la Calculadora */
.calculator-results {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.result-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(50px);
    z-index: -1;
}

.result-item {
    margin-bottom: 24px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.result-number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-number.highlight {
    font-size: 48px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

/* 11. Seccion Sobre Mi (Storytelling Adaptado) */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-container {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 32px;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    background-color: var(--bg-surface);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    text-align: center;
}

.about-experience-badge h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.about-experience-badge p {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.highlight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 20px;
    color: var(--secondary);
}

.highlight-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.highlight-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* 12. Sección de Contacto e Integración Local */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.contact-card h4 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p, .contact-card a {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.contact-card a:hover {
    color: var(--secondary);
}

/* Formulario Premium */
.contact-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

textarea.form-input {
    resize: none;
    min-height: 120px;
}

.form-status {
    font-size: 14px;
    margin-top: 12px;
    display: none;
    text-align: center;
}

.form-status.success {
    color: #10B981;
    display: block;
}

.form-status.error {
    color: #EF4444;
    display: block;
}

/* 13. Footer minimalista */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: #06060A;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--text-primary);
}

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

/* 14. Responsive Layout (Mobile Optimization) */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    .bento-colspan-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(9, 9, 14, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        margin: 0 auto 32px;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-colspan-2 {
        grid-column: span 1;
    }
    
    .bento-rowspan-2 {
        grid-row: span 1;
    }
    
    .bento-card {
        height: auto;
        min-height: 220px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* 15. Animaciones de Entrada (Scroll Reveal classes) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
