/* Estilos Generales */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Estilo para la barra de scroll */
::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Elementos reutilizables */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
}

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #16a34a;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary-light {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #16a34a;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary-light:hover {
    background-color: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary-light:active {
    transform: translateY(0);
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-primary-outline:active {
    transform: translateY(0);
}

.btn-primary-light-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary-light-outline:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-white-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background-color: white;
    color: #15803d;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-white-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-footer {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background-color: #1f2937;
    color: #e5e7eb;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-footer:hover {
    background-color: #374151;
}

/* Navegación */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    color: #16a34a;
    background-color: #f0fdf4;
}

.nav-link.active {
    color: #16a34a;
    background-color: #f0fdf4;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.mobile-nav-link:hover {
    color: #16a34a;
    background-color: #f0fdf4;
}

/* Cards y Componentes */
.feature-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-card .icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card .icon-box i {
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.benefit-item {
    display: flex;
    align-items: start;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f0fdf4;
    color: #16a34a;
    border-radius: 0.625rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.25rem;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    color: #6b7280;
    font-size: 0.875rem;
}

.capability-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.capability-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.capability-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.capability-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.challenge-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.challenge-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.challenge-icon i {
    font-size: 1.5rem;
}

.challenge-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.challenge-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.solution-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #dcfce7;
}

.solution-card i {
    font-size: 1.5rem;
    color: #16a34a;
    margin-bottom: 0.75rem;
}

.solution-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.375rem;
}

.solution-card p {
    color: #6b7280;
    font-size: 0.8125rem;
}

.stage-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
    display: flex;
}

.stage-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.stage-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    background-color: #16a34a;
    color: white;
    font-weight: 700;
    font-size: 1.75rem;
}

.stage-content {
    padding: 1.5rem 2rem;
    flex: 1;
}

.tech-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #e0f2fe;
}

.tech-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.tech-label {
    display: inline-block;
    background-color: #eff6ff;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline-container {
    height: 2rem;
    background-color: #e5e7eb;
    border-radius: 1rem;
    margin: 2rem 0;
    overflow: hidden;
}

.timeline-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
}

.timeline-phase {
    position: absolute;
    top: 0;
    height: 100%;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.timeline-phase:hover {
    filter: brightness(1.1);
}

/* Tooltip para timeline */
.timeline-phase[data-tooltip]:hover:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    z-index: 1;
}

.timeline-phase[data-tooltip]:hover:after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0.25rem;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Journey Timeline */
.journey-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.journey-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.25rem;
    width: 2px;
    background-color: #e5e7eb;
    transform: translateX(-50%);
}

.journey-item {
    position: relative;
    padding-bottom: 2rem;
}

.journey-item:last-child {
    padding-bottom: 0;
}

.journey-dot {
    position: absolute;
    top: 0;
    left: -2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.3);
    z-index: 2;
}

.journey-dot i {
    font-size: 1rem;
}

.journey-content {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
}

.journey-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.5rem;
}

.journey-content p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Anexo Details */
.anexo-details {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border: 1px solid #f3f4f6;
}

.anexo-details:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.anexo-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.anexo-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 0.625rem;
    margin-right: 1rem;
}

.summary-icon::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

details[open] .summary-icon::after {
    content: '+';
    transform: rotate(45deg);
    color: #16a34a;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .stage-card {
        flex-direction: column;
    }
    
    .stage-number {
        width: 100%;
        padding: 0.5rem;
    }
}

/* Animaciones */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}