/* Global utilities and common classes for child theme blocks */
:root {
    /* Hero - Unchanged (Always Dark) */
    --hero-bg: #0a1b2b;
    --hero-accent: #00d678;
    --hero-purple: #7d59fb;
    --hero-text: #ffffff;
    --hero-overlay: rgba(10, 27, 43, 0.75);

    /* Theme Variables - Default (Light Mode) */
    --bg-section: #ffffff;
    --bg-overlay: #efefef;
    --text-main: #0a1b2b;
    --text-secondary: #4a5568;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Common */
    --accent: #00d678;
    --accent-2: #7d59fb;
    --radius: 12px;
    --muted: #64748b;

    interpolate-size: allow-keywords;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;

    --arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d59fb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");

}

body.dark-mode,
.dark-mode {
    /* Theme Variables - Dark Mode (Preserved from original) */
    --bg-section: #0a1b2b;
    --bg-overlay: rgba(10, 27, 43, 0.85);
    --text-main: #ffffff;
    --text-secondary: #cbd5e0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    --muted: #a0aec0;
}

/* Utility layout */
.u-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem
}

.u-flex {
    display: flex;
    gap: 1rem;
    align-items: center
}

.u-center {
    text-align: center
}

.u-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center
}

.u-gap {
    gap: 1.5rem;
}

.u-radius {
    border-radius: var(--radius);
}

.u-shadow {
    box-shadow: 0 4px 18px rgba(44, 44, 84, 0.10);
}

/* Typography */
.h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    font-weight: 700;
    margin: 0
}

.h2 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    margin: 0
}

.section-headline {
    font-size: 3.5rem;
    font-weight: 800;
}

.p-muted {
    color: var(--muted)
}

/* Buttons */
.btn {
    background: var(--accent);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    @media (min-width: 768px) {
        padding: 8px 30px;
    }
}

.btn:hover {
    filter: brightness(0.95);
    transform: scale(1.05);
}

.btn-ghost {
    background: #fff2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff
}

html body .btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
}

html body .btn--primary {
    background: var(--gradient);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-2);
    color: #fff;
}

.btn-secondary {
    background: var(--accent-2);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    color: #fff;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem
}

.card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.card-title {
    font-weight: 700
}

.card-desc {
    color: var(--muted);
    font-size: 0.95rem
}

/* Parallax helper */
.parallax-wrap {
    position: relative;
    overflow: hidden
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: translateZ(0);
    will-change: transform
}

.parallax-content {
    position: relative;
    z-index: 2
}

/* Spacing helpers */
.mt-2 {
    margin-top: 2rem
}

.mt-4 {
    margin-top: 1rem
}

.pb-8 {
    padding-bottom: 2rem
}

/* Responsive tweaks */
@media (min-width:800px) {
    .u-hero {
        grid-template-columns: 1fr 1fr;
        padding: 2rem
    }
}


/* Clase para el bloque que ocupa todo el ancho */
.bloque-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0;
    /* Espaciado arriba y abajo */
}

/* Clase para el contenedor interno centrado */
.contenedor-centrado {
    max-width: 1200px;
    /* Ajusta según tu diseño */
    margin: 0 auto;
    /* Centra el bloque */
    padding: 0 20px;
    /* Margen de seguridad para móviles */
}


.u-hero-full {
    position: relative;
    width: 100%;
    min-height: var(--height, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--hero-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hero-overlay) 0%, rgba(15, 38, 64, 0.8) 100%);
    z-index: 1;
}

/* Animated Blobs */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
}

.blob-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--hero-purple), transparent);
    animation: float 10s infinite alternate;
}

.blob-2 {
    bottom: -100px;
    left: 20%;
    background: radial-gradient(circle, var(--hero-accent), transparent);
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 50px);
    }
}

/* Content */
.hero-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 99px;
    background: rgba(125, 89, 251, 0.2);
    border: 1px solid var(--hero-accent);
    margin-bottom: 2rem;
    font-size: 14px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title b,
.hero-title strong {
    background: linear-gradient(90deg, #7d59fb 0%, #00d678 25%, #7d59fb 50%, #00d678 75%, #7d59fb 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-flow 4s ease infinite;
    background-clip: text;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
}



/* Scroll Indicator Animation */
.scroll-indicator {
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    padding: 20px 0 10px;
}

.scroll-indicator svg {
    width: 30px;
    color: var(--hero-accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes text-gradient-flow {
    0% {
        background-position: -200% center;
    }

    50% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

header.site-header {
    /* background-image: linear-gradient(0deg, #F8F8F885 0%, #FFFFFF 100%); */
    background: white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 27px #fff4;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--accent);

    li::before {
        content: none;
    }
}

/* Mode Toggle Button */
body {
    button.mode-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #fff8;
        color: var(--text-main);
        border: 1px solid var(--card-border);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    button.mode-toggle-btn:hover {
        transform: scale(1.1);
    }

    .mode-toggle-btn svg {
        width: 24px;
        height: 24px;
    }

    .mode-toggle-btn .icon-moon {
        display: none;
    }

    .mode-toggle-btn .icon-sun {
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

.dark-mode .mode-toggle-btn .icon-moon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .mode-toggle-btn .icon-sun {
    display: none;
}

body .hidden {
    display: none;
}

body .site-footer {
    padding: 2rem 0;

    .footer-inner {
        gap: 2rem;
    }

    .site-branding {
        width: 100%;
        justify-content: space-between;
    }

    .custom-logo {
        filter: brightness(0) invert(1);
    }
}

.site-navigation-toggle {
    background: var(--accent-2);
    color: white;

    span.site-navigation-toggle__icon {
        color: white;
    }
}

.site-navigation-toggle:focus,
.site-navigation-toggle:hover,
.site-navigation-toggle:active {
    background: var(--accent-2);
    color: white;
}

/* Smooth Scrolling & Navigation */
.scroll-highlight {
    animation: sectionHighlight 1.5s ease-out;
}

@keyframes sectionHighlight {
    0% {
        box-shadow: inset 0 0 0 0 rgba(0, 214, 120, 0);
        background-color: transparent;
    }

    10% {
        background-color: rgba(0, 214, 120, 0.05);
    }

    100% {
        background-color: transparent;
    }
}

.site-navigation a:hover {
    color: var(--accent);
}

.site-navigation a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    margin: 2px auto 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.site-navigation a:hover::after {
    width: 100%;
}

.site-navigation a.active {
    color: black;
}

.site-navigation a.active::after {
    width: 60%;
    background: linear-gradient(90deg, var(--accent) 100%, var(--accent-2) 100%);
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-block-end: 0.5rem;
}

li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 1rem;
    height: 1rem;
    /* background-image: var(--arrow-icon);
    background-size: contain;
    background-repeat: no-repeat; */

    background-color: var(--accent-2);
    mask-image: var(--arrow-icon);
    mask-repeat: no-repeat;
    mask-size: contain;
}

body button.clean-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
    text-decoration: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-shadow: none;
    border-radius: 0;
}

body button.clean-btn:focus,
body button.clean-btn:hover,
body button.clean-btn:active {
    background: transparent;
    font: inherit;
    color: inherit;
    box-shadow: none;
}

.wp-block-image--embdata {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-overlay);

    img {
        width: 100%;
        max-width: 1200px;
        border-radius: 10px;
    }
}

.italic {
    font-style: italic;
}