/* ========================================
   VARIABLES DE COLOR PARA RAQUEL PICAZO
   ======================================== */
:root {
    /* Paleta de colores según ficha técnica */
    --color-primary: #A678DD;       /* Lila */
    --color-secondary: #3D1D72;     /* Morado */
    --color-light: #F5F5F5;         /* Gris claro */
    --color-dark: #212121;          /* Negro acento */
    --color-border: #E0E0E0;        /* Borde y hover */
    
    /* Colores de fondo */
    --color-bg: #ffffff;
    --color-bg-light: #F5F5F5;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* ========================================
   ESTILOS GENERALES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    color: var(--color-dark);
}

/* ========================================
   HEADER FLOTANTE
   ======================================== */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ========================================
   NAVEGACIÓN
   ======================================== */
.navbar {
    background: transparent !important;
    padding: 0;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--color-dark) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary) !important;
    background-color: rgba(166, 120, 221, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white !important;
    background: var(--gradient-primary);
}

/* Menú hamburguesa */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/header9.png') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    background: white;
    color: var(--color-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--color-primary);
}

/* ========================================
   SECCIONES PRINCIPALES
   ======================================== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-secondary);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* ========================================
   TARJETAS DE SERVICIOS
   ======================================== */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.service-description {
    color: var(--color-dark);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.service-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 120, 221, 0.4);
    color: white;
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonials-section {
    background: var(--color-dark);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
}

/* ========================================
   CONTACTO
   ======================================== */
.contact-section {
    background: linear-gradient(135deg, rgba(166, 120, 221, 0.1) 0%, rgba(61, 29, 114, 0.1) 100%);
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(166, 120, 221, 0.25);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 120, 221, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave para navegación */
html {
    scroll-behavior: smooth;
}

/* Efectos de hover para elementos interactivos */
.interactive:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}


/* ========================================
   ESTILOS ADICIONALES PARA PÁGINAS
   ======================================== */

/* Proceso de trabajo */
.process-step {
    padding: 2rem 1rem;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(166, 120, 221, 0.3);
}

.process-step h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* Información de contacto */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    opacity: 0.8;
}

/* Enlaces sociales */
.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(166, 120, 221, 0.4);
    color: white;
}

/* Detalles de servicios */
.service-details {
    margin: 1.5rem 0;
}

.service-details h5 {
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.service-details ul {
    list-style: none;
    padding-left: 0;
}

.service-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    opacity: 0.8;
}

.service-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-content h5 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--color-dark);
    opacity: 0.8;
    margin: 0;
}

/* Accordion personalizado */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: white;
    border: none;
    color: var(--color-secondary);
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: var(--color-dark);
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .contact-info {
        position: static;
        margin-top: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* Animaciones adicionales */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Efectos de hover mejorados */
.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(166, 120, 221, 0.2);
}

/* Mejoras de accesibilidad */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ========================================
   ESTILOS ESPECÍFICOS PARA PÁGINAS
   ======================================== */

/* Challenge items */
.challenges-list {
    margin-top: 2rem;
}

.challenge-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(166, 120, 221, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(166, 120, 221, 0.1);
    transform: translateX(5px);
}

.challenge-item i {
    color: var(--color-primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.challenge-item span {
    color: var(--color-dark);
    font-weight: 500;
}

/* Price section */
.price-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.price-value {
    font-family: 'Montserrat', sans-serif;
}

.price-note {
    color: var(--color-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* Badge styles */
.badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .challenge-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .challenge-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .price-value {
        font-size: 2rem !important;
    }
}

/* Hover effects for cards */
.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(166, 120, 221, 0.3);
}

/* Animation delays for staggered effects */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* Improved button styles */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Enhanced testimonial cards */
.testimonial-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Process step improvements */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.process-step h5 {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* List improvements */
.list-unstyled li {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

/* Enhanced social links */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Improved form styles */
.form-label {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(166, 120, 221, 0.25);
}

/* Enhanced accordion */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A678DD'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

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

.shadow-custom {
    box-shadow: 0 10px 30px rgba(166, 120, 221, 0.2);
}

/* Print styles */
@media print {
    .header-fixed,
    .footer,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}

