/* ══════════════════════════════════════════════════
   Index - Landing de Datos Hidrológicos
   ══════════════════════════════════════════════════ */

/* Página */
.erp-page { 
    background: #f4f6f9; 
    min-height: 100vh; 
    padding: 40px 24px 60px; 
}
.erp-page__container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Header página */
.erp-page-header { 
    text-align: center; 
    margin-bottom: 48px; 
}
.erp-page-header__title {
    font-size: 2rem; 
    font-weight: 700; 
    color: #1B365D;
    margin: 0 0 12px; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    gap: 16px;
}
.erp-page-header__title i { 
    font-size: 1.75rem; 
    color: #3273dc; 
}
.erp-page-header__subtitle {
    font-size: 1rem; 
    color: #6c757d; 
    margin: 0;
    font-weight: 400;
}

/* Grid de tarjetas */
.erp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

/* Tarjeta */
.erp-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    box-shadow: 
        0 4px 16px rgba(27, 54, 93, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 32px 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Borde decorativo superior */
.erp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B365D 0%, #3273dc 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-card:hover::before {
    transform: scaleX(1);
}

.erp-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(27, 54, 93, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #1B365D;
}

/* Icono de la tarjeta */
.erp-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-card:hover .erp-card__icon {
    transform: scale(1.1);
}

.erp-card__icon--blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.erp-card__icon--green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.erp-card__icon--cyan {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #0e7490;
}

/* Contenido de la tarjeta */
.erp-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.erp-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1B365D;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.erp-card__description {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Footer de la tarjeta */
.erp-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #e8ecf0;
}

.erp-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3273dc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-card:hover .erp-card__link {
    gap: 12px;
}

.erp-card__link i {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.erp-card:hover .erp-card__link i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .erp-page { 
        padding: 24px 16px; 
    }
    
    .erp-page-header { 
        margin-bottom: 32px; 
    }
    
    .erp-page-header__title { 
        font-size: 1.5rem;
        gap: 12px;
    }
    
    .erp-page-header__title i { 
        font-size: 1.4rem; 
    }
    
    .erp-page-header__subtitle {
        font-size: 0.9375rem;
    }
    
    .erp-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .erp-card {
        padding: 24px 20px;
    }
    
    .erp-card__icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .erp-card__title {
        font-size: 1.125rem;
    }
    
    .erp-card__description {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .erp-page-header__title {
        flex-direction: column;
        gap: 8px;
    }
}
