/* ==============================================
   PAGES.CSS -
   ============================================== */

/* ==============================================
   GENERAL PAGE ELEMENTS
   ============================================== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--hp-gray-light) 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 150, 214, 0.02) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--hp-navy);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--hp-gray);
    line-height: 1.6;
    font-weight: 400;
}

/* Service Card Links */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service-card-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.card-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(0, 150, 214, 0.4);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.service-card:hover .card-arrow {
    color: var(--hp-blue);
    transform: translateX(5px);
}

/* ==============================================
   TUTORIALES PAGE - FIXED STYLES
   ============================================== */

/* Page Header */
.tutoriales-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 0;
}

.tutoriales-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.tutoriales-header h1 {
    font-size: 2.5rem;
    color: #333333;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    letter-spacing: normal;
}

.tutoriales-header p {
    font-size: 1.1rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

/* Search and Filters Section */
.search-filters-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.search-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.search-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0096d6;
    box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.1);
}

.filter-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #0096d6;
    box-shadow: 0 0 0 3px rgba(0, 150, 214, 0.1);
}

.results-count {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

/* Tutorials Library */
.tutorials-library {
    background: #ffffff;
    padding: 2rem 0;
    min-height: 60vh;
}

.tutorials-library .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced library header */
.enhanced-library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.library-title-section h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.library-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-btn {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    border-color: #0096d6;
    background: #0096d6;
    color: white;
}

.view-btn:hover:not(.active) {
    border-color: #0096d6;
    background: #f8f9fa;
}

.view-btn i {
    font-size: 1.1rem;
}

/* Grid view for tutorials */
.tutorials-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tutorials-grid-view.hidden {
    display: none !important;
}

/* List view for tutorials */
.tutorials-list-view {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.tutorials-list-view.active {
    display: flex;
}

.tutorials-list-view.hidden {
    display: none !important;
}

.tutorial-list-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tutorial-list-item:hover {
    border-color: #0096d6;
    box-shadow: 0 4px 12px rgba(0, 150, 214, 0.15);
    transform: translateY(-1px);
}

.tutorial-list-thumbnail {
    width: 120px;
    height: 80px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}

.tutorial-list-thumbnail.video {
    background: linear-gradient(135deg, #0096d6 0%, #007bb5 100%);
}

.tutorial-list-thumbnail.document {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tutorial-list-thumbnail.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.tutorial-list-thumbnail .thumbnail-icon {
    font-size: 2rem;
    color: white;
    opacity: 0.9;
}

.tutorial-list-thumbnail.document .thumbnail-icon {
    color: #0096d6;
}

.tutorial-list-duration {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tutorial-list-content {
    flex: 1;
    min-width: 0;
}

.tutorial-list-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.tutorial-list-description {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tutorial-list-badge {
    background: #e7f4fd;
    color: #0096d6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tutorial-list-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.tutorial-list-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tutorial-list-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.tutorial-list-action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tutorial-list-action-btn.play-btn {
    background: #0096d6;
    color: white;
}

.tutorial-list-action-btn.play-btn:hover {
    background: #007bb5;
}

.tutorial-list-action-btn.download-btn {
    background: #28a745;
    color: white;
}

.tutorial-list-action-btn.download-btn:hover {
    background: #218838;
}

.tutorial-grid-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tutorial-grid-card:hover {
    border-color: #0096d6;
    box-shadow: 0 8px 24px rgba(0, 150, 214, 0.15);
    transform: translateY(-2px);
}

.tutorial-thumbnail {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tutorial-thumbnail.video {
    background: linear-gradient(135deg, #0096d6 0%, #007bb5 100%);
}

.tutorial-thumbnail.document {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tutorial-thumbnail.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.thumbnail-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.tutorial-thumbnail.document .thumbnail-icon {
    color: #0096d6;
}

.tutorial-duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tutorial-grid-content {
    padding: 1.5rem;
}

.tutorial-grid-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.tutorial-grid-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.tutorial-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tutorial-category-badge {
    background: #e7f4fd;
    color: #0096d6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tutorial-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
}

.tutorial-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tutorial-grid-actions {
    display: flex;
    gap: 0.5rem;
}

.tutorial-action-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.play-tutorial-btn {
    background: #0096d6;
    color: white;
}

.play-tutorial-btn:hover {
    background: #007bb5;
}

.download-tutorial-btn {
    background: #28a745;
    color: white;
}

.download-tutorial-btn:hover {
    background: #218838;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.no-results p {
    font-size: 1rem;
    margin: 0;
}

/* Admin access link */
.admin-access {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.admin-access-btn {
    background: #0096d6;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 150, 214, 0.3);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-access-btn:hover {
    background: #007bb5;
    transform: scale(1.1);
}

.admin-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.admin-access:hover .admin-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

.video-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-close:hover {
    color: #0096d6;
    transform: scale(1.1);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Loading state */
.loading-tutorials {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0096d6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================================
   RESPONSIVE DESIGN - TUTORIALES
   ============================================== */

@media (max-width: 768px) {
    .tutoriales-header {
        padding: 1.5rem 0;
    }
    
    .tutoriales-header .container {
        padding: 0 1rem;
    }
    
    .tutoriales-header h1 {
        font-size: 2rem;
    }

    .search-container {
        padding: 0 1rem;
    }
    
    .search-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tutorials-library .container {
        padding: 0 1rem;
    }
    
    .enhanced-library-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .tutorials-grid-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tutorial-thumbnail {
        height: 160px;
    }

    .thumbnail-icon {
        font-size: 3rem;
    }

    /* List view responsive */
    .tutorial-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .tutorial-list-thumbnail {
        width: 100%;
        height: 120px;
        align-self: center;
        max-width: 200px;
    }

    .tutorial-list-content {
        text-align: center;
    }

    .tutorial-list-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tutorial-list-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tutorial-list-action-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .admin-access {
        bottom: 1rem;
        right: 1rem;
    }

    .admin-access-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tutoriales-header h1 {
        font-size: 1.75rem;
    }
    
    .search-filters-section {
        padding: 1.5rem 0;
    }

    .search-container {
        padding: 0 0.5rem;
    }

    .tutorials-library {
        padding: 1.5rem 0;
    }

    .tutorials-library .container {
        padding: 0 0.5rem;
    }

    .tutorial-grid-content {
        padding: 1rem;
    }

    .no-results {
        padding: 2rem 1rem;
    }

    .no-results-icon {
        font-size: 3rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-close {
        top: -40px;
        font-size: 1.5rem;
    }

    /* List view mobile */
    .tutorial-list-item {
        padding: 0.75rem;
    }

    .tutorial-list-thumbnail {
        height: 100px;
    }

    .tutorial-list-title {
        font-size: 1.1rem;
    }

    .tutorial-list-description {
        font-size: 0.9rem;
    }

    .tutorial-list-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tutorial-list-action-btn {
        width: 100%;
    }
}

/* ==============================================
   OTHER EXISTING STYLES (keeping the rest)
   ============================================== */

/* Homepage sections */
.additional-services {
    background: var(--hp-gray-light);
    padding: 60px 20px;
    margin-top: 40px;
}

.additional-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: bold;
}

.section-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.additional-card {
    background: white;
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
    text-align: left;
}

.additional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.additional-icon {
    width: 48px;
    height: 48px;
    background: var(--hp-blue-light);
    color: var(--hp-blue) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.additional-icon svg {
    width: 24px;
    height: 24px;
    color: var(--hp-blue) !important;
}

.additional-card:hover .additional-icon {
    background: var(--hp-blue-light);
    color: var(--hp-blue) !important;
}

.additional-title {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.additional-description {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 36px;
    font-weight: 400;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
    font-weight: bold;
}

.contact-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-btn:first-child {
    background: var(--hp-blue);
    color: white;
    border: 1px solid var(--hp-blue);
}

.contact-btn:first-child:hover {
    background: var(--hp-blue-dark);
    color: white;
}

.contact-btn.secondary {
    background: transparent;
    color: var(--hp-blue);
    border: 1px solid var(--hp-blue);
}

.contact-btn.secondary:hover {
    background: var(--hp-blue);
    color: white;
}
    /* Other pages responsive */
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .upload-card {
        padding: 2rem 1rem;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-header {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    /* Otras páginas responsive */
    .tutoriales-hero-title,
    .indicadores-hero-title,
    .alcances-hero-title,
    .seguros-hero-title {
        font-size: 2rem;
    }

    .tutoriales-hero-subtitle,
    .indicadores-hero-subtitle,
    .alcances-hero-subtitle,
    .seguros-hero-subtitle {
        font-size: 1rem;
    }

    .tutoriales-support-grid,
    .indicadores-support-grid,
    .alcances-support-grid,
    .seguros-support-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .seguros-redirect-card,
    .indicadores-redirect-card {
        padding: 1.5rem;
        margin: 1.5rem auto;
        max-width: 90%;
    }

@media (max-width: 480px) {
    /* Homepage sections mobile responsive */
    .additional-services {
        padding: 40px 20px;
    }

    .additional-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .additional-card {
        padding: 24px 20px;
    }

    .contact {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 15px;
    }

    .contact-content h2 {
        font-size: 24px;
    }

    .contact-content p {
        font-size: 15px;
    }

    /* Mesa de Ayuda mobile responsive */
    .redirect-info-card {
        padding: 1rem;
        margin: 1rem auto;
    }

    /* Tutoriales page mobile responsive */
    .tutoriales-services-grid {
        grid-template-columns: 1fr !important;
    }

    .tutorial-categories-grid {
        grid-template-columns: 1fr !important;
    }

    .tutoriales-support-grid {
        flex-direction: column !important;
        align-items: center !important;
    }

    .tutoriales-support-link {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }

    /* Otras páginas mobile */
    .tutoriales-hero,
    .indicadores-hero,
    .alcances-hero,
    .seguros-hero {
        padding: 2rem 1rem;
    }

    .tutoriales-hero-title,
    .indicadores-hero-title,
    .alcances-hero-title,
    .seguros-hero-title {
        font-size: 1.8rem;
    }
}
/* ==============================================
   ALCANCES Y EXCLUSIONES PAGE
   ============================================== */

/* Header Section */
.alcances-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 2rem 0;
}

.alcances-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alcances-header h1 {
    font-size: 2rem;
    color: #333333;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    letter-spacing: normal;
}

.alcances-header p {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

/* Legal Notice */
.legal-notice {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.notice-card {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #0096d6;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.notice-icon {
    width: 48px;
    height: 48px;
    background: #e7f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-icon i {
    font-size: 1.5rem;
    color: #0096d6;
}

.notice-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 0.5rem 0;
}

.notice-content p {
    font-size: 0.95rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #333333;
    margin: 0 0 0.5rem 0;
}

.section-header p {
    font-size: 1rem;
    color: #666666;
    margin: 0;
}

/* Alcances Section */
.alcances-section {
    background: #ffffff;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.alcances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.alcance-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.alcance-item:hover {
    border-color: #0096d6;
    box-shadow: 0 2px 8px rgba(0, 150, 214, 0.1);
}

.alcance-icon {
    width: 64px;
    height: 64px;
    background: #e7f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alcance-icon i {
    font-size: 2rem;
    color: #0096d6;
}

.alcance-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 1rem 0;
}

.alcance-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alcance-content li {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.alcance-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Exclusiones Section */
.exclusiones-section {
    background: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.exclusiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.exclusion-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.exclusion-item:hover {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.exclusion-icon {
    width: 64px;
    height: 64px;
    background: #fdf2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exclusion-icon i {
    font-size: 2rem;
    color: #dc3545;
}

.exclusion-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 1rem 0;
}

.exclusion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exclusion-content li {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.exclusion-content li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

/* Terms Section */
.terms-section {
    background: #ffffff;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.terms-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
}

.terms-card h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 2rem 0;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.terms-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.term-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 3px solid #0096d6;
}

.term-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 0.75rem 0;
}

.term-item p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* Contact Legal Section */
.contact-legal {
    background: #f8f9fa;
    padding: 3rem 0;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: #e7f4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 2.5rem;
    color: #0096d6;
}

.contact-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 0.75rem 0;
}

.contact-content p {
    font-size: 0.95rem;
    color: #666666;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.contact-actions {
    display: flex;
    gap: 1rem;
}

.contact-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn.primary {
    background: #0096d6;
    color: #ffffff;
    border: 1px solid #0096d6;
}

.contact-btn.primary:hover {
    background: #0082b8;
    color: #ffffff;
    text-decoration: none;
}

.contact-btn.secondary {
    background: #ffffff;
    color: #0096d6;
    border: 1px solid #0096d6;
}

.contact-btn.secondary:hover {
    background: #e7f4fd;
    color: #0096d6;
    text-decoration: none;
}

/* ==============================================
   RESPONSIVE DESIGN - ALCANCES Y EXCLUSIONES
   ============================================== */

@media (max-width: 768px) {
    .alcances-header {
        padding: 1.5rem 0;
    }
    
    .alcances-header .container {
        padding: 0 1rem;
    }
    
    .alcances-header h1 {
        font-size: 1.5rem;
    }
    
    .notice-card {
        margin: 0 1rem;
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .alcances-grid,
    .exclusiones-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0 1rem;
    }
    
    .alcance-item,
    .exclusion-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .terms-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .terms-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        margin: 0 1rem;
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        justify-content: center;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .alcances-header h1 {
        font-size: 1.25rem;
    }
    
    .alcances-section,
    .exclusiones-section,
    .terms-section,
    .contact-legal {
        padding: 2rem 0;
    }
    
    .alcances-grid,
    .exclusiones-grid {
        margin: 0 0.5rem;
    }
    
    .alcance-item,
    .exclusion-item {
        padding: 1rem;
    }
    
    .alcance-icon,
    .exclusion-icon {
        width: 48px;
        height: 48px;
    }
    
    .alcance-icon i,
    .exclusion-icon i {
        font-size: 1.5rem;
    }
    
    .terms-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .term-item {
        padding: 1rem;
    }
    
    .contact-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .contact-icon {
        width: 64px;
        height: 64px;
    }
    
    .contact-icon i {
        font-size: 2rem;
    }
}
/* ==============================================
   FAQ PAGE - IMPROVED VERSION
   ============================================== */

/* Search Section */
.faq-search-section {
    background: #f8f9fa;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-search-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 0px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: #0096d6;
    box-shadow: 0 0 0 2px rgba(0, 150, 214, 0.1);
}

.faq-search-input::placeholder {
    color: #666;
}

/* Main FAQ Section */
.faq-section {
    background: #ffffff;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* FAQ Categories */
.faq-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0096d6;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0096d6;
}

/* FAQ Items */
.faq-item {
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #0096d6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 150, 214, 0.1);
}

.faq-item.active {
    border-color: #0096d6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 150, 214, 0.15);
}

/* FAQ Link (Clickable Question) */
.faq-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-link:hover {
    background: rgba(0, 150, 214, 0.02);
}

/* FAQ Question */
.faq-question {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

/* Toggle Indicator */
.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #0096d6;
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #0096d6;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-search-section {
        padding: 1.5rem;
    }
    
    .faq-section {
        padding: 2rem 1rem;
    }
    
    .faq-container {
        gap: 2rem;
    }
    
    .faq-category {
        gap: 1rem;
    }
    
    .faq-category-title {
        font-size: 1.3rem;
    }
    
    .faq-link {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding-right: 0.5rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
    
    .faq-toggle {
        font-size: 1.3rem;
        min-width: 20px;
    }
}

@media (max-width: 480px) {
    .faq-search-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-category-title {
        font-size: 1.2rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}