/*
Theme Name: Cyber Modern
Theme URI: https://cyber.es
Author: Cyber.es
Author URI: https://cyber.es
Description: Tema moderno para Cyber.es - Soluciones ERP
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
Text Domain: cyber-modern
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgb(0 212 255 / 0.15);
    --shadow-card: 0 4px 20px rgb(10 37 64 / 0.08);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   Typography Enhancements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-block-button__link {
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* Primary button glow */
.wp-block-button__link.has-primary-background-color:hover {
    box-shadow: 0 10px 30px rgb(10 37 64 / 0.3);
}

/* Accent button */
.wp-block-button__link.has-accent-background-color {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

.wp-block-button__link.has-accent-background-color:hover {
    box-shadow: 0 10px 30px rgb(0 212 255 / 0.4);
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
    border: 2px solid currentColor;
    background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Cards & Columns
   ========================================================================== */
.wp-block-column {
    transition: all var(--transition-base);
}

/* Feature cards */
.wp-block-column.has-background {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.wp-block-column.has-background:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Card titles - ensure navy color */
.wp-block-column.has-background h3 {
    color: #0a2540 !important;
}

.wp-block-column.has-background h3.has-primary-color {
    color: #0a2540 !important;
}

/* Card with border accent */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Animated background shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes::before,
.hero-bg-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-bg-shapes::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
}

.hero-bg-shapes::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ==========================================================================
   Icons (SVG replacements for emojis)
   ========================================================================== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    color: #00d4ff;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.wp-block-column:hover .icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 153, 204, 0.2) 100%);
}

/* Icon color variants */
.icon--orange {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
    color: #ff6b35;
}

.icon--green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #10b981;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.wp-block-navigation {
    gap: 1.75rem;
}

.wp-block-navigation__container {
    gap: 1.75rem !important;
}

.wp-block-navigation-link__content {
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.wp-block-navigation-link__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.wp-block-navigation-link:hover .wp-block-navigation-link__content::after,
.wp-block-navigation-link.current-menu-item .wp-block-navigation-link__content::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.wp-block-group.has-secondary-background-color {
    position: relative;
}

.wp-block-group.has-secondary-background-color::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.wp-block-group.has-secondary-background-color a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.wp-block-group.has-secondary-background-color a:hover {
    color: #00d4ff;
}

.wp-block-group.has-secondary-background-color ul {
    list-style: none;
    padding-left: 0;
}

.wp-block-group.has-secondary-background-color li {
    margin-bottom: 0.625rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ==========================================================================
   Compliance/Feature Badges
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.badge:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

/* ==========================================================================
   Separator with style
   ========================================================================== */
.wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    opacity: 1;
}

.wp-block-separator.has-accent-color {
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animate on scroll (add via JS or use intersection observer) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for columns */
.wp-block-columns .wp-block-column:nth-child(1) { animation-delay: 0ms; }
.wp-block-columns .wp-block-column:nth-child(2) { animation-delay: 100ms; }
.wp-block-columns .wp-block-column:nth-child(3) { animation-delay: 200ms; }
.wp-block-columns .wp-block-column:nth-child(4) { animation-delay: 300ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 782px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }

    .wp-block-navigation {
        gap: 0;
    }

    .hero-section::before,
    .hero-section::after,
    .hero-bg-shapes::before,
    .hero-bg-shapes::after {
        display: none;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.verifactu-mockup-shadow img {
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.verifactu-mockup-shadow img:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgb(0 0 0 / 0.3);
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   Dark sections text override
   ========================================================================== */
.has-primary-background-color,
.has-secondary-background-color,
.has-primary-light-background-color {
    --wp--preset--color--secondary: #ffffff;
}

.has-primary-background-color h1,
.has-primary-background-color h2,
.has-primary-background-color h3,
.has-secondary-background-color h1,
.has-secondary-background-color h2,
.has-secondary-background-color h3 {
    color: #ffffff !important;
}
