/*
Theme Name: RYC Leading
Theme URI: https://rycleading.com
Author: RYC Leading Team
Author URI: https://rycleading.com
Description: Tema personalizado para RYC Leading - Innovación y tecnología blockchain. Usa Tailwind CSS.
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: ryc-leading
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===== Smooth scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Custom styles that complement Tailwind CDN ===== */
:root {
    --div-back: #001D24;
    --primary: #00CDFF;
}

/* Tailwind utility classes for div-back color (#001D24) */
.bg-div-back {
    background-color: #001D24;
}

.text-div-back {
    color: #001D24;
}

.border-div-back {
    border-color: #001D24;
}

.hover\:bg-div-back:hover {
    background-color: #001D24;
}

.hover\:text-div-back:hover {
    color: #001D24;
}

.hover\:border-div-back:hover {
    border-color: #001D24;
}

/* Hero Mesh Gradient Background */
.hero-mesh-gradient {
    position: relative;
    background: linear-gradient(135deg, #001D24 0%, #001D24 25%, #001D24 50%, #001D24 75%, #213C42 100%);
    background-size: 400% 400%;
    animation: meshGradientAnimation 15s ease infinite;
}

.hero-mesh-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 205, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 205, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 205, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

@keyframes meshGradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particles.js container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Hero Title with gradient */
.hero-title {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Button */
.hero-button {
    box-shadow: 0 0 20px rgba(0, 205, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-button:hover {
    box-shadow: 0 0 30px rgba(0, 205, 255, 0.6);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #00CDFF, #00CDFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Vision Section */
.vision-section {
    background: linear-gradient(180deg, #001D24 0%, #001D24 100%);
}

/* Vision Wireframe Shell - Left Side */
.vision-wireframe-shell {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.vision-wireframe-shell::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(0, 205, 255, 0.3);
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 10px,
            rgba(0, 205, 255, 0.1) 10px,
            rgba(0, 205, 255, 0.1) 11px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 10px,
            rgba(0, 205, 255, 0.1) 10px,
            rgba(0, 205, 255, 0.1) 11px
        );
    animation: rotateWireframe 20s linear infinite;
}

.vision-wireframe-shell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 205, 255, 0.15) 0%, transparent 70%);
}

@keyframes rotateWireframe {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Vision Wireframe Left Decoration */
.vision-wireframe-left {
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(0, 205, 255, 0.15) 15px,
            rgba(0, 205, 255, 0.15) 16px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(0, 205, 255, 0.15) 15px,
            rgba(0, 205, 255, 0.15) 16px
        );
    border-radius: 50%;
    animation: pulseWireframe 4s ease-in-out infinite;
}

@keyframes pulseWireframe {
    0%, 100% {
        opacity: 0.2;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Vision Circle Right Decoration */
.vision-circle-right {
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 205, 255, 0.3) 0%, transparent 70%);
    border: 3px solid rgba(0, 205, 255, 0.4);
    animation: floatCircle 6s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Vision Content */
.vision-content h2 {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 205, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .vision-wireframe-shell {
        width: 300px;
        height: 300px;
    }
    
    .vision-wireframe-shell::before {
        width: 250px;
        height: 250px;
    }
    
    .vision-wireframe-left,
    .vision-circle-right {
        display: none;
    }
}

.ecosystem-bg-decoration {
    background-image: url('../../assets/world-ilu.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ecosystem Timeline */
.ecosystem-timeline {
    position: relative;
}

.ecosystem-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 205, 255, 0.3), rgba(0, 205, 255, 0.3));
    transform: translateX(-50%);
    display: none;
}

@media (min-width: 768px) {
    .ecosystem-timeline::before {
        display: block;
    }
}

/* Ecosystem Cards */
.ecosystem-card {
    position: relative;
}

.ecosystem-card-image {
    position: relative;
}

.ecosystem-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transform: rotate(-3deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(0, 205, 255, 0.3);
}

.ecosystem-card-right .ecosystem-image-wrapper {
    transform: rotate(3deg);
}

.ecosystem-image-wrapper:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 205, 255, 0.3);
}

.ecosystem-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 250px;
}

.ecosystem-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 205, 255, 0.1), rgba(0, 205, 255, 0.1));
    border-radius: 16px;
    border: 2px dashed rgba(0, 205, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecosystem-image-placeholder::after {
    content: 'Upload Image';
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Ecosystem */
@media (max-width: 768px) {
    .ecosystem-image-wrapper {
        transform: rotate(0deg);
        max-width: 350px;
        margin: 0 auto;
    }
    
    .ecosystem-card-right .ecosystem-image-wrapper {
        transform: rotate(0deg);
    }
    
    .ecosystem-card {
        margin-bottom: 3rem !important;
    }
}

/* Projects Section */
.projects-section {
    background: linear-gradient(180deg, #001D24 0%, #001D24 100%);
    position: relative;
}

.projects-bg-grid {
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0, 205, 255, 0.03) 50px, rgba(0, 205, 255, 0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0, 205, 255, 0.03) 50px, rgba(0, 205, 255, 0.03) 51px);
}

/* Projects Viewer */
.projects-viewer {
    position: relative;
}

.projects-main-image-wrapper {
    background: linear-gradient(135deg, rgba(0, 205, 255, 0.1), rgba(0, 205, 255, 0.1));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#project-main-image {
    transition: opacity 0.3s ease;
}

/* Gallery Thumbnails */
.projects-gallery-thumbs {
    position: relative;
}

.gallery-thumb {
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.05);
}

.gallery-thumb.active img {
    border-color: #00CDFF !important;
    box-shadow: 0 0 20px rgba(0, 205, 255, 0.5);
}

.gallery-thumb img {
    transition: all 0.3s ease;
}

/* Project Cards */
.projects-cards-container {
    position: relative;
}


/* Responsive Projects */
@media (max-width: 1024px) {
    .projects-gallery-thumbs {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .gallery-thumb {
        flex-shrink: 0;
        width: 120px;
    }
    
    .gallery-thumb img {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .projects-main-image-wrapper {
        min-height: 300px !important;
    }
    
    .projects-cards-container {
        margin-top: 2rem;
    }
}

.impact-bg-pattern {
    background-image: 
        linear-gradient(30deg, rgba(0, 205, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 205, 255, 0.05) 87.5%, rgba(0, 205, 255, 0.05)),
        linear-gradient(150deg, rgba(0, 205, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 205, 255, 0.05) 87.5%, rgba(0, 205, 255, 0.05)),
        linear-gradient(30deg, rgba(0, 205, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 205, 255, 0.05) 87.5%, rgba(0, 205, 255, 0.05)),
        linear-gradient(150deg, rgba(0, 205, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 205, 255, 0.05) 87.5%, rgba(0, 205, 255, 0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Impact Stats */
.impact-stat-card {
    position: relative;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.impact-stat-card:hover {
    transform: translateY(-10px);
}

.impact-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.impact-number-wrapper {
    position: relative;
}

.impact-label {
    position: relative;
}

.impact-description {
    max-width: 250px;
    margin: 0 auto;
}

/* Responsive Impact */
@media (max-width: 768px) {
    .impact-stat-card {
        padding: 1.5rem 0.5rem;
    }
    
    .impact-label {
        font-size: 1.5rem !important;
    }
}

.visionary-bg-gradient {
    background: linear-gradient(135deg, rgba(33, 60, 66, 0.1) 0%, rgba(13, 13, 43, 0.3) 100%);
}

/* Visionary Image */
.visionary-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visionary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visionary-circle-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 3px solid rgba(0, 205, 255, 0.3);
    z-index: 1;
    animation: pulseBorder 3s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
}

.visionary-image-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 205, 255, 0.1), rgba(0, 205, 255, 0.1));
    border: 3px dashed rgba(0, 205, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visionary Content */
.visionary-content {
    position: relative;
}

.visionary-icon {
    animation: rotateIcon 20s linear infinite;
}

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

.visionary-content h2 {
    text-shadow: 0 0 30px rgba(0, 205, 255, 0.3);
}

/* Responsive Visionary */
@media (max-width: 1024px) {
    
    .visionary-circle-border {
        width: 330px;
        height: 330px;
    }
    
    .visionary-image-placeholder {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    
    .visionary-circle-border {
        width: 280px;
        height: 280px;
    }
    
    .visionary-image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .visionary-content {
        text-align: center;
    }
    
    .visionary-icon {
        margin: 0 auto;
    }
}


.blueprint-bg-pattern {
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Blueprint Cards */
.blueprint-cards-container {
    position: relative;
}

.blueprint-card {
    position: relative;
    transition: transform 0.3s ease;
}

.blueprint-card:hover {
    transform: translateY(-5px);
}

.blueprint-card-vision .blueprint-card-inner {
    background: rgba(0, 205, 255, 0.15);
    border: 2px solid rgba(0, 205, 255, 0.3);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.blueprint-card-mission .blueprint-card-inner {
    background: rgba(13, 13, 43, 0.8);
    border: 2px solid rgba(0, 205, 255, 0.5);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.blueprint-card-inner {
    transition: all 0.3s ease;
}

.blueprint-card-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 205, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blueprint-card:hover .blueprint-card-inner::before {
    opacity: 1;
}

/* Blueprint Decorative Lines */
.blueprint-decorative-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.blueprint-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #001D24, transparent);
}

.blueprint-line-top {
    top: 20%;
}

.blueprint-line-bottom {
    bottom: 20%;
}

/* Responsive Blueprint */
@media (max-width: 1024px) {
    .blueprint-card-inner {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .blueprint-card-inner {
        padding: 1.5rem !important;
    }
    
    .blueprint-card-inner h3 {
        font-size: 2rem !important;
    }
    
    .blueprint-line {
        display: none;
    }
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #001D24 0%, #001D24 100%);
    position: relative;
}

.contact-bg-pattern {
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 100px, rgba(0, 205, 255, 0.02) 100px, rgba(0, 205, 255, 0.02) 101px),
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(0, 205, 255, 0.02) 100px, rgba(0, 205, 255, 0.02) 101px);
}

/* Contact Content */
.contact-content h2 {
    text-shadow: 0 0 30px rgba(0, 205, 255, 0.3);
}

.contact-description-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-bullet {
    width: 12px;
    height: 12px;
    min-width: 12px;
    background: #00CDFF;
    border-radius: 50%;
    margin-top: 8px;
    box-shadow: 0 0 10px rgba(0, 205, 255, 0.5);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Roboto', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 205, 255, 0.5);
}

.contact-submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-submit-btn::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 0.5s ease;
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 205, 255, 0.3);
}

#form-message {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

#form-message.success {
    background: rgba(0, 205, 255, 0.1);
    color: #00CDFF;
    border: 1px solid rgba(0, 205, 255, 0.3);
}

#form-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-content {
        text-align: center;
    }
    
    .contact-description-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-bullet {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .contact-content h2 {
        font-size: 2rem !important;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem !important;
    }
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00CDFF;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.current-menu-item .nav-link::after {
    width: 100%;
}

/* Roadmap timeline line */
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00CDFF, #00CDFF);
}

/* Roadmap dot */
.roadmap-dot::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00CDFF;
    border: 3px solid #001D24;
}
.roadmap-dot.completed::before {
    background: #00CDFF;
}

/* Accent line */
.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #00CDFF, #00CDFF);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Gradient icon bg */
.gradient-icon-bg {
    background: linear-gradient(135deg, rgba(0, 205, 255, 0.2), rgba(0, 205, 255, 0.2));
}

/* Card bg */
.bg-card {
    background: rgba(255, 255, 255, 0.05);
}

/* Border subtle */
.border-subtle {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Estilos modulares ===== */
/* Los archivos CSS modulares se cargan mediante wp_enqueue_style() en inc/setup.php */
/* Esto permite que WordPress gestione correctamente las rutas y dependencias */

.transform-title-hero-general{
    transform: none;
}

@media (min-width: 768px) {
    .transform-title-hero-general{
        transform: translateX(-50%);
    }
}

/* Global Purpose Section */
.global-purpose-section {
    background-color: var(--div-back);
}

.global-purpose-vision-card {
    background-color: var(--primary);
}

.global-purpose-values-col {
    background-color: transparent;
}

.global-purpose-values-card {
    background-color: var(--primary);
}

.global-purpose-mission-card {
    background-color: var(--div-back);
}

@media (max-width: 1024px) {
    .global-purpose-vision-card,
    .global-purpose-values-col,
    .global-purpose-values-card,
    .global-purpose-mission-card {
        padding: 2rem !important;
    }
}

.page-ecosystem-one{
    background: linear-gradient(180deg, #00597D 0%, #00A2E3 100%);
}

.image-roadmap-decoration{
    top: 0;
    right: 0;
    opacity: 0.8;
    will-change: transform;
    pointer-events: none;
}