/* CSS Variables */
:root {
    /* Primary Colors - Complementary Color Scheme */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    
    /* Accent Colors */
    --accent-color: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    --warning-color: #ef4444;
    --warning-dark: #dc2626;
    --warning-light: #f87171;
    
    /* Neutral Colors */
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --text-gray: #6b7280;
    --text-gray-dark: #374151;
    --bg-light: #ffffff;
    --bg-gray: #f3f4f6;
    --bg-dark: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-hero: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-dark), var(--text-dark));
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-morphing: 0 15px 35px rgba(99, 102, 241, 0.2);
    
    /* Biomorphic Shapes */
    --border-radius-organic: 20px;
    --border-radius-soft: 25px;
    --border-radius-medium: 15px;
    --border-radius-small: 8px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-morphing: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Button Styles - Global */
.btn, button, input[type='submit'], .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-soft);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn:before, button:before, .button: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: var(--transition-slow);
    z-index: 1;
}

.btn:hover:before, button:hover:before, .button:hover:before {
    left: 100%;
}

.btn-primary, .button.is-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover, .button.is-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-morphing);
}

.btn-secondary, .button.is-light {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover, .button.is-light:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Morphing Animations */
/* @keyframes morphing {
    0%, 100% {
        border-radius: var(--border-radius-soft);
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(1deg) scale(1.02);
    }
    50% {
        border-radius: 50% 50% 20% 80% / 25% 75% 75% 25%;
        transform: rotate(-1deg) scale(0.98);
    }
    75% {
        border-radius: 80% 20% 50% 50% / 75% 25% 50% 50%;
        transform: rotate(0.5deg) scale(1.01);
    }
} */

.morphing-card {
    animation: morphing 8s ease-in-out infinite;
}

.morphing-btn {
    position: relative;
    overflow: hidden;
}

.morphing-btn:hover {
    animation: morphing 2s ease-in-out;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition-medium);
    z-index: 1000;
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand .navbar-item {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-menu .navbar-item {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition-fast);
}

.navbar-menu .navbar-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-menu .navbar-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: var(--transition-medium);
}

.navbar-menu .navbar-item:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(16, 185, 129, 0.6));
    z-index: 1;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
}

.hero .title,
.hero .subtitle {
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

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

/* Cards */
.card {
    background: var(--bg-light);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    margin: 0 auto;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.card-content .title {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Featured Card */
.card.is-featured {
    position: relative;
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: scale(1.05);
}

.card.is-featured .card-content .title,
.card.is-featured .card-content p {
    color: var(--text-light);
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 40px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
    font-size: 14px;
}

/* Sections */
.section {
    padding: 4rem 0;
    position: relative;
}

.section.has-background-light {
    background: var(--bg-gray);
}

.section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Titles */
.section .title.is-2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section .title.is-2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section .subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* Methodology Section */
#metodologia .columns {
    gap: 2rem;
}

#metodologia .card {
    height: 100%;
    background: var(--bg-light);
    border-radius: var(--border-radius-soft);
}

/* Portfolio Section */
#portfolio .card {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
}

#portfolio .tags {
    justify-content: center;
    gap: 0.5rem;
}

.tag {
    border-radius: var(--border-radius-small);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.tag.is-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.tag.is-info {
    background: var(--accent-color);
    color: var(--text-light);
}

.tag.is-success {
    background: var(--secondary-color);
    color: var(--text-light);
}

/* Projects Section */
#proyectos .card {
    background: var(--bg-light);
    transition: var(--transition-medium);
}

.tags.has-addons .tag:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.tags.has-addons .tag:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Clientele Section */
#clientes .card {
    background: var(--bg-light);
    min-height: 350px;
    justify-content: center;
}

#clientes .media {
    margin-bottom: 1.5rem;
}

#clientes .tag.is-large {
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-medium);
}

/* Media Section */
#media .media {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    margin-bottom: 1rem;
}

#media .media:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

#media .media-left .image {
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

#media .media-left img {
    object-fit: cover;
    transition: var(--transition-medium);
}

/* Events Section */
#eventos .card {
    background: var(--bg-light);
    border-radius: var(--border-radius-medium);
}

#eventos .card-content time {
    font-family: var(--font-heading);
    font-weight: 500;
}

#eventos .field.is-grouped {
    justify-content: flex-start;
    gap: 0.5rem;
}

/* Pricing Section */
#precios .columns {
    gap: 2rem;
}

#precios .card {
    position: relative;
    background: var(--bg-light);
    border: 2px solid var(--bg-gray);
    transition: var(--transition-medium);
    padding: 2rem;
    text-align: center;
}

#precios .card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

#precios .card.is-featured {
    border-color: var(--primary-color);
    background: var(--gradient-primary);
    transform: scale(1.05);
}

#precios .card ul {
    list-style: none;
    margin-bottom: 2rem;
}

#precios .card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
}

#precios .card ul li:last-child {
    border-bottom: none;
}

/* Contact Section */
#contacto .card {
    background: var(--bg-light);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-lg);
}

.contact-form .field {
    margin-bottom: 1.5rem;
}

.contact-form .label {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.input, .textarea, .select select {
    border: 2px solid var(--bg-gray);
    border-radius: var(--border-radius-small);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--bg-light);
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.morphing-input:hover, .morphing-textarea:hover, .morphing-select:hover {
    border-radius: var(--border-radius-organic);
    transition: var(--transition-morphing);
}

/* Media Queries */
.media {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.media-left {
    flex-shrink: 0;
}

.media-content {
    flex-grow: 1;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer .title {
    color: var(--text-light);
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Success Page Styles */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 100px 1.5rem 2rem;
}

.success-content {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
}

.success-content .title {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-content .subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
    padding-top: 100px;
    min-height: 100vh;
}

.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.privacy-content .title,
.terms-content .title {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.privacy-content h3,
.terms-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* About Page */
.about-page {
    padding-top: 100px;
}

.about-hero {
    background: var(--gradient-hero);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.about-hero .title {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero .subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    opacity: 0.9;
}

.team-member {
    background: var(--bg-light);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--primary-color);
}

.team-member .title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-member .subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-page {
    padding-top: 100px;
}

.contact-hero {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.contact-hero .title {
    color: var(--text-light);
}

.contact-hero .subtitle {
    color: var(--text-light);
    opacity: 0.9;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2rem;
}

.has-text-centered {
    text-align: center;
}

/* Read More Links */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
}

.read-more-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.read-more-link i {
    transition: var(--transition-fast);
}

.read-more-link:hover i {
    transform: translateX(3px);
}

/* Social Media Icons in Footer */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-light);
    transform: translateY(-3px) scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .title {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.25rem;
    }
    
    .section .title.is-2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.125rem;
    }
    
    .section .title.is-2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .columns.is-multiline .column {
        margin-bottom: 2rem;
    }
    
    .navbar-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn, button, .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .section .container {
        padding: 0 1rem;
    }
}

/* Animation Classes for AOS */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-slow);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-slow);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-slow);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: var(--transition-slow);
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}