/* Variables globales */
:root {
    --primary-gradient: linear-gradient(135deg, #0033a0, #e1261c);
    --secondary-gradient: linear-gradient(135deg, #1a1a2e, #16213e);
    --accent-color: #e1261c;
    --accent-color-hover: #c01c16;
    --text-color: #333333;
    --dark-text: #222222;
    --light-text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
    --section-padding: 5rem 1.5rem;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --button-gradient: linear-gradient(135deg, #e1261c, #ff4b2b);
    --button-gradient-hover: linear-gradient(135deg, #ff4b2b, #e1261c);
}

/* Estilos generales */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Efectos de imagen */
.image-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 66.67%; /* Proporción 3:2 */
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

/* Estilos para el Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: var(--primary-gradient);
}

.header.scrolled .navbar-item {
    color: var(--light-text);
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-item {
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.navbar-item:hover {
    color: var(--accent-color) !important;
    background: transparent !important;
}

.navbar-burger {
    color: var(--text-color);
}

.header.scrolled .navbar-burger {
    color: var(--light-text);
}

.navbar-menu.is-active {
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.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.5));
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero .title,
.hero .subtitle,
.hero p {
    color: var(--light-text) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero .buttons {
    margin-top: 2rem;
}

/* Animación de partículas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

/* Botones y elementos interactivos */
.button {
    transition: all var(--transition-speed) ease;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.button.is-primary {
    background: var(--button-gradient);
}

.button.is-primary:hover {
    background: var(--button-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.button.is-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

.button.is-light:hover {
    background: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.animate-button {
    position: relative;
    overflow: hidden;
}

.animate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.animate-button:hover::before {
    left: 100%;
}

.input, .textarea, .select select {
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    border: 2px solid #eee;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(225, 38, 28, 0.2);
}

/* Widgets estadísticos */
.stats-section {
    background: var(--secondary-gradient);
    color: var(--light-text);
    padding: 4rem 1.5rem;
}

.stat-widget {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-widget:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.stat-widget .title {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.stat-widget .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Tarjetas para servicios, insights, etc. */
.card {
    height: 100%;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
}

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

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .title {
    margin-bottom: 1rem;
}

.card-content .button {
    margin-top: auto;
    align-self: flex-start;
}

/* Servicios */
.service-card, 
.insight-card, 
.workshop-card, 
.career-card, 
.resource-card {
    display: flex;
    flex-direction: column;
}

.service-card .image-container,
.insight-card .image-container,
.workshop-card .image-container {
    text-align: center;
}

/* Timeline para Our Process */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(225, 38, 28, 0.3);
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

/* Testimonios */
.testimonial-card {
    position: relative;
}

.testimonial-card .media-left figure {
    margin-right: 1rem;
}

.testimonial-card .media-content .title {
    margin-bottom: 0.25rem;
}

.testimonial-card .content {
    padding-top: 1rem;
}

/* Sección de recursos externos */
.external-resources {
    background: var(--secondary-gradient);
    color: var(--light-text);
}

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

.resource-card {
    text-align: center;
    padding: 2rem;
}

.resource-card .title {
    color: var(--dark-text);
}

/* Sección de contacto */
.contact-section {
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.contact-form {
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background: var(--card-bg);
}

.contact-form .label {
    font-weight: 600;
}

.contact-form .button {
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--secondary-gradient);
    color: var(--light-text);
    padding: 4rem 1.5rem 2rem;
}

.footer .title {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a, 
.social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover, 
.social-links a:hover {
    color: var(--light-text);
    transform: translateX(5px);
}

.social-links p {
    margin-bottom: 0.5rem;
}

.footer .content.has-text-centered {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie consent */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.9);
    color: var(--light-text);
    z-index: 9999;
    padding: 1rem;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-content p {
    margin-right: 1rem;
    margin-bottom: 0;
}

/* Carrera */
.career-card {
    padding: 1.5rem;
}

.career-card .title {
    margin-bottom: 0.25rem;
}

.career-card .subtitle {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Workshops */
.workshop-card .subtitle {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Página de éxito */
.success-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.success-section::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.5));
    z-index: 1;
}

.success-message {
    position: relative;
    z-index: 2;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 600px;
    width: 100%;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

/* Páginas de privacy y terms */
.content {
    padding-top: 100px;
}

.content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.content p, .content li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content ul {
    margin-left: 1.5rem;
}

.content strong {
    color: var(--accent-color);
}

/* Leer más links */
a.read-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-right: 20px;
    transition: all var(--transition-speed) ease;
}

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

a.read-more:hover {
    color: var(--accent-color-hover);
    padding-right: 25px;
}

a.read-more:hover::after {
    transform: translateY(-50%) translateX(5px);
}

/* Media queries */
@media screen and (max-width: 1023px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .hero-body {
        padding: 6rem 1.5rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero .title {
        font-size: 2rem !important;
    }
    
    .hero .subtitle {
        font-size: 1.25rem !important;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .card, .stat-widget {
        margin-bottom: 2rem;
    }
}

/* Extras y utilidades */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mb-6 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.5rem !important; }
.mt-6 { margin-top: 3rem !important; }

.has-text-centered { text-align: center !important; }
.has-text-left { text-align: left !important; }
.has-text-right { text-align: right !important; }

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

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.rounded-image {
    border-radius: 50%;
    overflow: hidden;
}

.is-fullwidth {
    width: 100%;
}

/* Animaciones adicionales */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 3s infinite ease-in-out;
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Ajustes específicos para imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Estilos adicionales para formularios */
.field:not(:last-child) {
    margin-bottom: 1.5rem;
}

.control.has-icons-left .icon,
.control.has-icons-right .icon {
    color: #dbdbdb;
    height: 2.5em;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 2.5em;
    z-index: 4;
}

.control.has-icons-left .input,
.control.has-icons-left .select select {
    padding-left: 2.5em;
}

.control.has-icons-right .input,
.control.has-icons-right .select select {
    padding-right: 2.5em;
}

.control.has-icons-left .icon.is-left {
    left: 0;
}

.control.has-icons-right .icon.is-right {
    right: 0;
}

/* Estilos para checkbox */
.checkbox {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* Estilo para About, Terms y Privacy */
.content-page {
    padding-top: 100px;
}

.content-page .section {
    padding-top: 2rem;
}

/* Ajustes para el banner de cookies */
@media screen and (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 0.5rem;
    }
    
    .cookie-content {
        padding: 0 0.5rem;
    }
}