/* Root Variables - Triadic Color Scheme */
:root {
    /* Primary Colors */
    --color-primary: #3273dc;
    --color-primary-dark: #1a56b0;
    --color-primary-light: #4a8df5;
    
    /* Triadic Scheme */
    --color-secondary: #dc3232;
    --color-secondary-dark: #b02525;
    --color-secondary-light: #f54a4a;
    
    --color-tertiary: #32dc73;
    --color-tertiary-dark: #25b054;
    --color-tertiary-light: #4af58e;
    
    /* Neutral Colors */
    --color-dark: #363636;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-black: #0a0a0a;
    --color-grey: #7a7a7a;
    --color-light-grey: #e0e0e0;
    
    /* Typography */
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    
    /* Shadows */
    --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --radius-circle: 50%;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

a:hover {
    color: var(--color-primary-dark);
}

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

.container {
    padding: 0 var(--spacing-sm);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-medium);
}

.navbar {
    padding: var(--spacing-xs) 0;
}

.navbar-item {
    font-weight: 500;
    position: relative;
    transition: color var(--transition-normal);
}

.navbar-item:hover {
    color: var(--color-primary);
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 70%;
}

.navbar-burger {
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-body {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-sm);
}

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

.hero .title {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    animation: fadeInDown 1s both;
}

.hero .subtitle {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s 0.3s both;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    animation: fadeIn 1s 0.6s both;
}

.hero .buttons {
    animation: fadeIn 1s 0.9s both;
}

/* Button Styles */
.button {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    border-radius: var(--radius-medium);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.button.is-primary {
    background-color: var(--color-primary);
    border-color: transparent;
}

.button.is-primary:hover {
    background-color: var(--color-primary-dark);
}

.button.is-light:hover {
    background-color: var(--color-light-grey);
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: var(--radius-circle);
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.button:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
}

.section .title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.section .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all var(--transition-normal);
}

.section .title.is-centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.has-text-centered .title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Card Styles */
.card {
    height: 100%;
    transition: all var(--transition-normal);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all var(--transition-normal);
}

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

.card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card .title {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

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

.card .button {
    margin-top: auto;
}

/* Box Styles for Statistics */
.box {
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    background-color: var(--color-white);
    padding: var(--spacing-md);
}

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

.box .title {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
}

/* Services Section */
#servicios .card {
    margin-bottom: var(--spacing-md);
}

#servicios .card-content {
    text-align: left;
}

#servicios .card-image {
    text-align: center;
}

#servicios .card-image img {
    margin: 0 auto;
}

/* Events Calendar Section */
#eventos .card {
    margin-bottom: var(--spacing-md);
}

#eventos .subtitle {
    color: var(--color-grey);
    font-weight: 500;
}

#eventos .far {
    margin-right: var(--spacing-xs);
    color: var(--color-primary);
}

/* Community Section */
#comunidad .card {
    margin-bottom: var(--spacing-md);
}

#comunidad .card-image {
    text-align: center;
}

#comunidad .card-image img {
    margin: 0 auto;
}

/* Careers Section */
#carreras .card {
    margin-bottom: var(--spacing-md);
}

#carreras .card-image {
    text-align: center;
}

#carreras .card-image img {
    margin: 0 auto;
}

/* Contact Section */
#contacto .content h3 {
    margin-bottom: var(--spacing-md);
}

#contacto p {
    margin-bottom: var(--spacing-sm);
}

#contacto p strong {
    color: var(--color-dark);
}

#contacto .box {
    padding: var(--spacing-md);
}

#contacto .label {
    font-weight: 600;
    color: var(--color-dark);
}

#contacto .button {
    margin-top: var(--spacing-sm);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
    color: var(--color-light);
}

.footer .title, .footer .subtitle {
    color: var(--color-white);
}

.footer a {
    color: var(--color-light);
    transition: color var(--transition-normal);
}

.footer a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer .is-unstyled {
    list-style: none;
    padding-left: 0;
}

.footer .is-unstyled li {
    margin-bottom: var(--spacing-xs);
}

.footer form .input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.footer form .input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer .has-text-light {
    margin-bottom: var(--spacing-xs);
}

/* Social Media Links */
.footer a.has-text-light {
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.footer a.has-text-light::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: width var(--transition-normal);
}

.footer a.has-text-light:hover::after {
    width: 100%;
}

/* Success Page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
}

.success-page .content {
    max-width: 600px;
    padding: var(--spacing-lg);
    border-radius: var(--radius-large);
    background-color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.success-page .icon {
    font-size: 4rem;
    color: var(--color-tertiary);
    margin-bottom: var(--spacing-md);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
    padding-top: 100px;
    padding-bottom: var(--spacing-xl);
}

.privacy-page .content, .terms-page .content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

/* Read More Links */
.read-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-normal);
}

.read-more:hover {
    color: var(--color-primary-dark);
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* AOS Animation Tweaks */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .box .title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero .title {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .box .title {
        font-size: 2rem;
    }
}

/* Hyperrealistic Texture Elements */
.texture-overlay {
    position: relative;
    overflow: hidden;
}

.texture-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/texture-overlay.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: var(--radius-medium);
}

/* Utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-auto {
    margin-top: auto !important;
}

.has-shadow {
    box-shadow: var(--shadow-medium);
}

.has-radius {
    border-radius: var(--radius-medium);
}

.is-fullheight {
    min-height: 100vh;
}

.object-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}