/* Recursos Page Styles - Aligned with Index Theme */

/* Hero Section */
.hero-recursos {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, hsl(var(--primary)/0.1), hsl(var(--background)));
    padding: 4rem 1.25rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    margin: 0 auto;
}

.hero__title {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: hsl(var(--secondary));
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero__description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    justify-content: center;
}

.hero__cta, .hero__secondary-cta {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero__cta {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 10px 15px -3px rgba(94, 44, 165, 0.3);
}

.hero__cta:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(94, 44, 165, 0.4);
}

.hero__secondary-cta {
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary) / 0.5);
}

.hero__secondary-cta:hover {
    background-color: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary));
}

.hero__image {
    position: relative;
    display: none;
}

@media (min-width: 1024px) {
    .hero-recursos {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5rem 1.25rem;
    }

    .hero__content {
        text-align: center;
    }

    .hero__image {
        display: none;
    }
}

/* Filtros y Búsqueda */
.recursos-filtros {
    padding: 3rem 1.25rem;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
}

.filtros-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.filtros {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.filter-btn.active {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* Sección de Recursos */
.recursos-grid {
    padding: 4rem 1.25rem;
    background-color: #f8fafc;
}

.section__title {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.section__subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
}

.recursos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recurso-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
}

.recurso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.recurso-header {
    padding: 2rem 2rem 1.5rem 2rem;
    position: relative;
    color: white;
    border: none;
}

.recurso-header.guia {
    background: linear-gradient(135deg, #5e2ca5 0%, #9333ea 100%);
}

.recurso-header.plantilla {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.recurso-header.herramienta {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.recurso-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.recurso-title {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.recurso-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.recurso-body {
    padding: 1.5rem 2rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.recurso-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.recurso-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.recurso-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recurso-stats svg {
    width: 16px;
    height: 16px;
}

.recurso-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #5e2ca5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(94, 44, 165, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(94, 44, 165, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #5e2ca5;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #5e2ca5;
}

.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: hsl(var(--muted-foreground));
}

.no-results svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

/* Estadísticas */
.recursos-stats {
    padding: 4rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    z-index: -1;
}

.stat-number {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #5e2ca5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number::after {
    content: '+';
    color: #f59e0b;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Recursos Interactivos */
.recursos-interactivos {
    padding: 4rem 1.25rem;
    background: white;
}

.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.interactive-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: none;
}

.interactive-header {
    padding: 2rem 2rem 1.5rem 2rem;
    color: white;
    position: relative;
}

.interactive-header h3 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.interactive-header p {
    font-size: 0.875rem;
    opacity: 0.9;
    color: white;
}

.interactive-body {
    padding: 2rem;
    background: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5e2ca5;
    box-shadow: 0 0 0 3px rgba(94, 44, 165, 0.1);
}

.form-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, #5e2ca5 0%, #7c3aed 100%);
    border-radius: 4px;
    outline: none;
    border: none;
    padding: 0;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #5e2ca5;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #5e2ca5;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.star {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #f59e0b;
}

.result-box {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    color: #0c4a6e;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Solicitar Recursos */
.solicitar-recursos {
    padding: 4rem 1.25rem;
    background: linear-gradient(135deg, #5e2ca5 0%, #7c3aed 100%);
}

.solicitud-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: none;
}

.solicitud-header {
    text-align: center;
    margin-bottom: 2rem;
}

.solicitud-header h2 {
    font-family: var(--font-heading), system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.solicitud-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.solicitud-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.solicitud-form .form-group input,
.solicitud-form .form-group select,
.solicitud-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    font-family: inherit;
    transition: all 0.2s ease;
}

.solicitud-form .form-group input:focus,
.solicitud-form .form-group select:focus,
.solicitud-form .form-group textarea:focus {
    outline: none;
    border-color: #5e2ca5;
    box-shadow: 0 0 0 3px rgba(94, 44, 165, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.solicitud-form .btn-primary {
    background: linear-gradient(135deg, #5e2ca5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(94, 44, 165, 0.25);
    width: 100%;
}

.solicitud-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(94, 44, 165, 0.35);
}

.form-message {
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-message.success {
    background-color: hsl(120 84% 60% / 0.1);
    color: hsl(120 84% 60%);
    border: 1px solid hsl(120 84% 60% / 0.3);
}

.form-message.error {
    background-color: hsl(0 84% 60% / 0.1);
    color: hsl(0 84% 60%);
    border: 1px solid hsl(0 84% 60% / 0.3);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .section__title {
        font-size: 1.875rem;
    }

    .recursos-container {
        grid-template-columns: 1fr;
    }

    .interactive-grid {
        grid-template-columns: 1fr;
    }
}
